@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.
35 lines • 1.75 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.createSubscriptionComponentSchema = void 0;
var schema_1 = require("../schema");
var componentCustomPrice_1 = require("./componentCustomPrice");
var createSubscriptionComponentAllocatedQuantity_1 = require("./containers/createSubscriptionComponentAllocatedQuantity");
var createSubscriptionComponentComponentId_1 = require("./containers/createSubscriptionComponentComponentId");
var createSubscriptionComponentPricePointId_1 = require("./containers/createSubscriptionComponentPricePointId");
exports.createSubscriptionComponentSchema = (0, schema_1.expandoObject)({
componentId: [
'component_id',
(0, schema_1.optional)(createSubscriptionComponentComponentId_1.createSubscriptionComponentComponentIdSchema),
],
enabled: ['enabled', (0, schema_1.optional)((0, schema_1.boolean)())],
unitBalance: ['unit_balance', (0, schema_1.optional)((0, schema_1.number)())],
allocatedQuantity: [
'allocated_quantity',
(0, schema_1.optional)(createSubscriptionComponentAllocatedQuantity_1.createSubscriptionComponentAllocatedQuantitySchema),
],
quantity: ['quantity', (0, schema_1.optional)((0, schema_1.number)())],
pricePointId: [
'price_point_id',
(0, schema_1.optional)(createSubscriptionComponentPricePointId_1.createSubscriptionComponentPricePointIdSchema),
],
customPrice: [
'custom_price',
(0, schema_1.optional)((0, schema_1.lazy)(function () { return componentCustomPrice_1.componentCustomPriceSchema; })),
]
});
//# sourceMappingURL=createSubscriptionComponent.js.map