@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.
42 lines • 1.82 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, expandoObject, lazy, number, optional, string, } from '../schema.js';
import { segmentSegmentProperty1ValueSchema, } from './containers/segmentSegmentProperty1Value.js';
import { segmentSegmentProperty2ValueSchema, } from './containers/segmentSegmentProperty2Value.js';
import { segmentSegmentProperty3ValueSchema, } from './containers/segmentSegmentProperty3Value.js';
import { segmentSegmentProperty4ValueSchema, } from './containers/segmentSegmentProperty4Value.js';
import { pricingSchemeSchema } from './pricingScheme.js';
import { segmentPriceSchema } from './segmentPrice.js';
export const segmentSchema = lazy(() => expandoObject({
id: ['id', optional(number())],
componentId: ['component_id', optional(number())],
pricePointId: ['price_point_id', optional(number())],
eventBasedBillingMetricId: [
'event_based_billing_metric_id',
optional(number()),
],
pricingScheme: ['pricing_scheme', optional(pricingSchemeSchema)],
segmentProperty1Value: [
'segment_property_1_value',
optional(segmentSegmentProperty1ValueSchema),
],
segmentProperty2Value: [
'segment_property_2_value',
optional(segmentSegmentProperty2ValueSchema),
],
segmentProperty3Value: [
'segment_property_3_value',
optional(segmentSegmentProperty3ValueSchema),
],
segmentProperty4Value: [
'segment_property_4_value',
optional(segmentSegmentProperty4ValueSchema),
],
createdAt: ['created_at', optional(string())],
updatedAt: ['updated_at', optional(string())],
prices: ['prices', optional(array(segmentPriceSchema))],
}));
//# sourceMappingURL=segment.js.map