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