@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.19 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.CreateComponentPricePointsRequestPricePoints = exports.createComponentPricePointsRequestPricePointsSchema = void 0;
var schema_1 = require("../../schema");
var createComponentPricePoint_1 = require("../createComponentPricePoint");
var createPrepaidUsageComponentPricePoint_1 = require("../createPrepaidUsageComponentPricePoint");
exports.createComponentPricePointsRequestPricePointsSchema = (0, schema_1.anyOf)([createComponentPricePoint_1.createComponentPricePointSchema, createPrepaidUsageComponentPricePoint_1.createPrepaidUsageComponentPricePointSchema]);
var CreateComponentPricePointsRequestPricePoints;
(function (CreateComponentPricePointsRequestPricePoints) {
/**
* 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;
}
CreateComponentPricePointsRequestPricePoints.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;
}
CreateComponentPricePointsRequestPricePoints.isCreatePrepaidUsageComponentPricePoint = isCreatePrepaidUsageComponentPricePoint;
})(CreateComponentPricePointsRequestPricePoints = exports.CreateComponentPricePointsRequestPricePoints || (exports.CreateComponentPricePointsRequestPricePoints = {}));
//# sourceMappingURL=createComponentPricePointsRequestPricePoints.js.map