@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.
45 lines • 2.25 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.segmentSchema = void 0;
var schema_1 = require("../schema");
var segmentSegmentProperty1Value_1 = require("./containers/segmentSegmentProperty1Value");
var segmentSegmentProperty2Value_1 = require("./containers/segmentSegmentProperty2Value");
var segmentSegmentProperty3Value_1 = require("./containers/segmentSegmentProperty3Value");
var segmentSegmentProperty4Value_1 = require("./containers/segmentSegmentProperty4Value");
var pricingScheme_1 = require("./pricingScheme");
var segmentPrice_1 = require("./segmentPrice");
exports.segmentSchema = (0, schema_1.expandoObject)({
id: ['id', (0, schema_1.optional)((0, schema_1.number)())],
componentId: ['component_id', (0, schema_1.optional)((0, schema_1.number)())],
pricePointId: ['price_point_id', (0, schema_1.optional)((0, schema_1.number)())],
eventBasedBillingMetricId: [
'event_based_billing_metric_id',
(0, schema_1.optional)((0, schema_1.number)()),
],
pricingScheme: ['pricing_scheme', (0, schema_1.optional)(pricingScheme_1.pricingSchemeSchema)],
segmentProperty1Value: [
'segment_property_1_value',
(0, schema_1.optional)(segmentSegmentProperty1Value_1.segmentSegmentProperty1ValueSchema),
],
segmentProperty2Value: [
'segment_property_2_value',
(0, schema_1.optional)(segmentSegmentProperty2Value_1.segmentSegmentProperty2ValueSchema),
],
segmentProperty3Value: [
'segment_property_3_value',
(0, schema_1.optional)(segmentSegmentProperty3Value_1.segmentSegmentProperty3ValueSchema),
],
segmentProperty4Value: [
'segment_property_4_value',
(0, schema_1.optional)(segmentSegmentProperty4Value_1.segmentSegmentProperty4ValueSchema),
],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
updatedAt: ['updated_at', (0, schema_1.optional)((0, schema_1.string)())],
prices: ['prices', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return segmentPrice_1.segmentPriceSchema; })))]
});
//# sourceMappingURL=segment.js.map