@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.34 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { boolean, expandoObject, lazy, nullable, number, optional, string, } from '../schema.js';
import { billingScheduleSchema } from './billingSchedule.js';
import { createAllocationPricePointIdSchema, } from './containers/createAllocationPricePointId.js';
import { creditTypeSchema } from './creditType.js';
export const createAllocationSchema = lazy(() => expandoObject({
quantity: ['quantity', number()],
componentId: ['component_id', optional(number())],
memo: ['memo', optional(string())],
prorationDowngradeScheme: [
'proration_downgrade_scheme',
optional(string()),
],
prorationUpgradeScheme: ['proration_upgrade_scheme', optional(string())],
accrueCharge: ['accrue_charge', optional(boolean())],
downgradeCredit: ['downgrade_credit', optional(nullable(creditTypeSchema))],
upgradeCharge: ['upgrade_charge', optional(nullable(creditTypeSchema))],
initiateDunning: ['initiate_dunning', optional(boolean())],
pricePointId: [
'price_point_id',
optional(nullable(createAllocationPricePointIdSchema)),
],
billingSchedule: ['billing_schedule', optional(billingScheduleSchema)],
}));
//# sourceMappingURL=createAllocation.js.map