fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
97 lines • 5.49 kB
JavaScript
;
/* 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.instanceOfUpdateTenantBody = instanceOfUpdateTenantBody;
exports.UpdateTenantBodyFromJSON = UpdateTenantBodyFromJSON;
exports.UpdateTenantBodyFromJSONTyped = UpdateTenantBodyFromJSONTyped;
exports.UpdateTenantBodyToJSON = UpdateTenantBodyToJSON;
exports.UpdateTenantBodyToJSONTyped = UpdateTenantBodyToJSONTyped;
const APIDomainConfiguration_1 = require("./APIDomainConfiguration");
const BillingInfo_1 = require("./BillingInfo");
/**
* Check if a given object implements the UpdateTenantBody interface.
*/
function instanceOfUpdateTenantBody(value) {
return true;
}
function UpdateTenantBodyFromJSON(json) {
return UpdateTenantBodyFromJSONTyped(json, false);
}
function UpdateTenantBodyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'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'],
'domainConfiguration': json['domainConfiguration'] == null ? undefined : (json['domainConfiguration'].map(APIDomainConfiguration_1.APIDomainConfigurationFromJSON)),
'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'],
'managedByTenantId': json['managedByTenantId'] == null ? undefined : json['managedByTenantId'],
};
}
function UpdateTenantBodyToJSON(json) {
return UpdateTenantBodyToJSONTyped(json, false);
}
function UpdateTenantBodyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'name': value['name'],
'email': value['email'],
'signUpDate': value['signUpDate'],
'packageId': value['packageId'],
'paymentFrequency': value['paymentFrequency'],
'billingInfoValid': value['billingInfoValid'],
'billingHandledExternally': value['billingHandledExternally'],
'createdBy': value['createdBy'],
'isSetup': value['isSetup'],
'domainConfiguration': value['domainConfiguration'] == null ? undefined : (value['domainConfiguration'].map(APIDomainConfiguration_1.APIDomainConfigurationToJSON)),
'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'],
'managedByTenantId': value['managedByTenantId'],
};
}
//# sourceMappingURL=UpdateTenantBody.js.map