UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

99 lines 5.39 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * fastcomments * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCreateTenantBody = instanceOfCreateTenantBody; exports.CreateTenantBodyFromJSON = CreateTenantBodyFromJSON; exports.CreateTenantBodyFromJSONTyped = CreateTenantBodyFromJSONTyped; exports.CreateTenantBodyToJSON = CreateTenantBodyToJSON; exports.CreateTenantBodyToJSONTyped = CreateTenantBodyToJSONTyped; const APIDomainConfiguration_1 = require("./APIDomainConfiguration"); const BillingInfo_1 = require("./BillingInfo"); /** * Check if a given object implements the CreateTenantBody interface. */ function instanceOfCreateTenantBody(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('domainConfiguration' in value) || value['domainConfiguration'] === undefined) return false; return true; } function CreateTenantBodyFromJSON(json) { return CreateTenantBodyFromJSONTyped(json, false); } function CreateTenantBodyFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'domainConfiguration': (json['domainConfiguration'].map(APIDomainConfiguration_1.APIDomainConfigurationFromJSON)), 'email': json['email'] == null ? undefined : json['email'], 'signUpDate': json['signUpDate'] == null ? undefined : json['signUpDate'], 'packageId': json['packageId'] == null ? undefined : json['packageId'], 'paymentFrequency': json['paymentFrequency'] == null ? undefined : json['paymentFrequency'], 'billingInfoValid': json['billingInfoValid'] == null ? undefined : json['billingInfoValid'], 'billingHandledExternally': json['billingHandledExternally'] == null ? undefined : json['billingHandledExternally'], 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'], 'isSetup': json['isSetup'] == null ? undefined : json['isSetup'], 'billingInfo': json['billingInfo'] == null ? undefined : (0, BillingInfo_1.BillingInfoFromJSON)(json['billingInfo']), 'stripeCustomerId': json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'], 'stripeSubscriptionId': json['stripeSubscriptionId'] == null ? undefined : json['stripeSubscriptionId'], 'stripePlanId': json['stripePlanId'] == null ? undefined : json['stripePlanId'], 'enableProfanityFilter': json['enableProfanityFilter'] == null ? undefined : json['enableProfanityFilter'], 'enableSpamFilter': json['enableSpamFilter'] == null ? undefined : json['enableSpamFilter'], 'removeUnverifiedComments': json['removeUnverifiedComments'] == null ? undefined : json['removeUnverifiedComments'], 'unverifiedCommentsTTLms': json['unverifiedCommentsTTLms'] == null ? undefined : json['unverifiedCommentsTTLms'], 'commentsRequireApproval': json['commentsRequireApproval'] == null ? undefined : json['commentsRequireApproval'], 'autoApproveCommentOnVerification': json['autoApproveCommentOnVerification'] == null ? undefined : json['autoApproveCommentOnVerification'], 'sendProfaneToSpam': json['sendProfaneToSpam'] == null ? undefined : json['sendProfaneToSpam'], 'deAnonIpAddr': json['deAnonIpAddr'] == null ? undefined : json['deAnonIpAddr'], 'meta': json['meta'] == null ? undefined : json['meta'], }; } function CreateTenantBodyToJSON(json) { return CreateTenantBodyToJSONTyped(json, false); } function CreateTenantBodyToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'domainConfiguration': (value['domainConfiguration'].map(APIDomainConfiguration_1.APIDomainConfigurationToJSON)), 'email': value['email'], 'signUpDate': value['signUpDate'], 'packageId': value['packageId'], 'paymentFrequency': value['paymentFrequency'], 'billingInfoValid': value['billingInfoValid'], 'billingHandledExternally': value['billingHandledExternally'], 'createdBy': value['createdBy'], 'isSetup': value['isSetup'], 'billingInfo': (0, BillingInfo_1.BillingInfoToJSON)(value['billingInfo']), 'stripeCustomerId': value['stripeCustomerId'], 'stripeSubscriptionId': value['stripeSubscriptionId'], 'stripePlanId': value['stripePlanId'], 'enableProfanityFilter': value['enableProfanityFilter'], 'enableSpamFilter': value['enableSpamFilter'], 'removeUnverifiedComments': value['removeUnverifiedComments'], 'unverifiedCommentsTTLms': value['unverifiedCommentsTTLms'], 'commentsRequireApproval': value['commentsRequireApproval'], 'autoApproveCommentOnVerification': value['autoApproveCommentOnVerification'], 'sendProfaneToSpam': value['sendProfaneToSpam'], 'deAnonIpAddr': value['deAnonIpAddr'], 'meta': value['meta'], }; } //# sourceMappingURL=CreateTenantBody.js.map