@maxio-com/advanced-billing-sdk
Version:
Ultimate billing and pricing flexibility for B2B SaaS. Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.
36 lines • 2.16 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.CreateComponentPricePointRequestPricePoint = exports.createComponentPricePointRequestPricePointSchema = void 0;
var schema_1 = require("../../schema");
var createComponentPricePoint_1 = require("../createComponentPricePoint");
var createPrepaidUsageComponentPricePoint_1 = require("../createPrepaidUsageComponentPricePoint");
exports.createComponentPricePointRequestPricePointSchema = (0, schema_1.anyOf)([createComponentPricePoint_1.createComponentPricePointSchema, createPrepaidUsageComponentPricePoint_1.createPrepaidUsageComponentPricePointSchema]);
var CreateComponentPricePointRequestPricePoint;
(function (CreateComponentPricePointRequestPricePoint) {
/**
* Validation method to narrow down union type to CreateComponentPricePoint type case.
*
* This is Create Component Price Point case.
*/
function isCreateComponentPricePoint(value) {
var validationResult = (0, schema_1.validateAndMap)(value, createComponentPricePoint_1.createComponentPricePointSchema);
return validationResult.errors === false;
}
CreateComponentPricePointRequestPricePoint.isCreateComponentPricePoint = isCreateComponentPricePoint;
/**
* Validation method to narrow down union type to CreatePrepaidUsageComponentPricePoint type case.
*
* This is Create Prepaid Usage Component Price Point case.
*/
function isCreatePrepaidUsageComponentPricePoint(value) {
var validationResult = (0, schema_1.validateAndMap)(value, createPrepaidUsageComponentPricePoint_1.createPrepaidUsageComponentPricePointSchema);
return validationResult.errors === false;
}
CreateComponentPricePointRequestPricePoint.isCreatePrepaidUsageComponentPricePoint = isCreatePrepaidUsageComponentPricePoint;
})(CreateComponentPricePointRequestPricePoint = exports.CreateComponentPricePointRequestPricePoint || (exports.CreateComponentPricePointRequestPricePoint = {}));
//# sourceMappingURL=createComponentPricePointRequestPricePoint.js.map