@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.33 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';
import { billingScheduleSchema } from './billingSchedule';
import { createAllocationPricePointIdSchema, } from './containers/createAllocationPricePointId';
import { creditTypeSchema } from './creditType';
export const createAllocationSchema = 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(lazy(() => billingScheduleSchema)),
],
});
//# sourceMappingURL=createAllocation.js.map