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