@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.
34 lines • 1.75 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { anyOf, isMappedValueValidForSchema, lazy, } from '../../schema.js';
import { createComponentPricePointSchema, } from '../createComponentPricePoint.js';
import { createPrepaidUsageComponentPricePointSchema, } from '../createPrepaidUsageComponentPricePoint.js';
export const createComponentPricePointRequestPricePointSchema = lazy(() => anyOf([
createComponentPricePointSchema,
createPrepaidUsageComponentPricePointSchema,
]));
export 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) {
return isMappedValueValidForSchema(value, createComponentPricePointSchema);
}
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) {
return isMappedValueValidForSchema(value, createPrepaidUsageComponentPricePointSchema);
}
CreateComponentPricePointRequestPricePoint.isCreatePrepaidUsageComponentPricePoint = isCreatePrepaidUsageComponentPricePoint;
})(CreateComponentPricePointRequestPricePoint || (CreateComponentPricePointRequestPricePoint = {}));
//# sourceMappingURL=createComponentPricePointRequestPricePoint.js.map