@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.
29 lines • 1.38 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.js';
import { componentCustomPriceSchema, } from './componentCustomPrice.js';
import { createSubscriptionComponentAllocatedQuantitySchema, } from './containers/createSubscriptionComponentAllocatedQuantity.js';
import { createSubscriptionComponentComponentIdSchema, } from './containers/createSubscriptionComponentComponentId.js';
import { createSubscriptionComponentPricePointIdSchema, } from './containers/createSubscriptionComponentPricePointId.js';
export const createSubscriptionComponentSchema = lazy(() => 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(componentCustomPriceSchema)],
}));
//# sourceMappingURL=createSubscriptionComponent.js.map