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