@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.
46 lines • 2.69 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 componentCustomPrice_js_1 = require("./componentCustomPrice.js");
var createAllocationPricePointId_js_1 = require("./containers/createAllocationPricePointId.js");
var downgradeCreditCreditType_js_1 = require("./downgradeCreditCreditType.js");
var upgradeChargeCreditType_js_1 = require("./upgradeChargeCreditType.js");
exports.createAllocationSchema = (0, schema_js_1.lazy)(function () {
return (0, schema_js_1.expandoObject)({
quantity: ['quantity', (0, schema_js_1.number)()],
decimalQuantity: ['decimal_quantity', (0, schema_js_1.optional)((0, schema_js_1.string)())],
previousQuantity: ['previous_quantity', (0, schema_js_1.optional)((0, schema_js_1.number)())],
decimalPreviousQuantity: ['decimal_previous_quantity', (0, schema_js_1.optional)((0, schema_js_1.string)())],
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)())],
downgradeCredit: [
'downgrade_credit',
(0, schema_js_1.optional)((0, schema_js_1.nullable)(downgradeCreditCreditType_js_1.downgradeCreditCreditTypeSchema)),
],
upgradeCharge: [
'upgrade_charge',
(0, schema_js_1.optional)((0, schema_js_1.nullable)(upgradeChargeCreditType_js_1.upgradeChargeCreditTypeSchema)),
],
accrueCharge: ['accrue_charge', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
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)],
customPrice: ['custom_price', (0, schema_js_1.optional)(componentCustomPrice_js_1.componentCustomPriceSchema)],
});
});
//# sourceMappingURL=createAllocation.js.map