UNPKG

@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.

33 lines 1.82 kB
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { anyOf, validateAndMap } from '../../schema'; import { createComponentPricePointSchema, } from '../createComponentPricePoint'; import { createPrepaidUsageComponentPricePointSchema, } from '../createPrepaidUsageComponentPricePoint'; export const createComponentPricePointsRequestPricePointsSchema = anyOf([createComponentPricePointSchema, createPrepaidUsageComponentPricePointSchema]); export 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) { const validationResult = validateAndMap(value, 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) { const validationResult = validateAndMap(value, createPrepaidUsageComponentPricePointSchema); return validationResult.errors === false; } CreateComponentPricePointsRequestPricePoints.isCreatePrepaidUsageComponentPricePoint = isCreatePrepaidUsageComponentPricePoint; })(CreateComponentPricePointsRequestPricePoints || (CreateComponentPricePointsRequestPricePoints = {})); //# sourceMappingURL=createComponentPricePointsRequestPricePoints.js.map