@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.
32 lines • 1.39 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { boolean, expandoObject, lazy, number, optional, } from '../schema';
import { componentCustomPriceSchema, } from './componentCustomPrice';
import { createSubscriptionComponentAllocatedQuantitySchema, } from './containers/createSubscriptionComponentAllocatedQuantity';
import { createSubscriptionComponentComponentIdSchema, } from './containers/createSubscriptionComponentComponentId';
import { createSubscriptionComponentPricePointIdSchema, } from './containers/createSubscriptionComponentPricePointId';
export const createSubscriptionComponentSchema = expandoObject({
componentId: [
'component_id',
optional(createSubscriptionComponentComponentIdSchema),
],
enabled: ['enabled', optional(boolean())],
unitBalance: ['unit_balance', optional(number())],
allocatedQuantity: [
'allocated_quantity',
optional(createSubscriptionComponentAllocatedQuantitySchema),
],
quantity: ['quantity', optional(number())],
pricePointId: [
'price_point_id',
optional(createSubscriptionComponentPricePointIdSchema),
],
customPrice: [
'custom_price',
optional(lazy(() => componentCustomPriceSchema)),
],
});
//# sourceMappingURL=createSubscriptionComponent.js.map