@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.
45 lines • 2.96 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.allocationPreviewItemSchema = void 0;
var schema_js_1 = require("../schema.js");
var allocationPreviewItemPreviousQuantity_js_1 = require("./containers/allocationPreviewItemPreviousQuantity.js");
var allocationPreviewItemQuantity_js_1 = require("./containers/allocationPreviewItemQuantity.js");
var creditType_js_1 = require("./creditType.js");
var intervalUnit_js_1 = require("./intervalUnit.js");
exports.allocationPreviewItemSchema = (0, schema_js_1.lazy)(function () {
return (0, schema_js_1.expandoObject)({
componentId: ['component_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
subscriptionId: ['subscription_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
quantity: ['quantity', (0, schema_js_1.optional)(allocationPreviewItemQuantity_js_1.allocationPreviewItemQuantitySchema)],
previousQuantity: [
'previous_quantity',
(0, schema_js_1.optional)(allocationPreviewItemPreviousQuantity_js_1.allocationPreviewItemPreviousQuantitySchema),
],
memo: ['memo', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
timestamp: ['timestamp', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
prorationUpgradeScheme: ['proration_upgrade_scheme', (0, schema_js_1.optional)((0, schema_js_1.string)())],
prorationDowngradeScheme: [
'proration_downgrade_scheme',
(0, schema_js_1.optional)((0, schema_js_1.string)()),
],
accrueCharge: ['accrue_charge', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
upgradeCharge: ['upgrade_charge', (0, schema_js_1.optional)((0, schema_js_1.nullable)(creditType_js_1.creditTypeSchema))],
downgradeCredit: [
'downgrade_credit',
(0, schema_js_1.optional)((0, schema_js_1.nullable)(creditType_js_1.creditTypeSchema)),
],
pricePointId: ['price_point_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
interval: ['interval', (0, schema_js_1.optional)((0, schema_js_1.number)())],
intervalUnit: ['interval_unit', (0, schema_js_1.optional)((0, schema_js_1.nullable)(intervalUnit_js_1.intervalUnitSchema))],
previousPricePointId: ['previous_price_point_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
pricePointHandle: ['price_point_handle', (0, schema_js_1.optional)((0, schema_js_1.string)())],
pricePointName: ['price_point_name', (0, schema_js_1.optional)((0, schema_js_1.string)())],
componentHandle: ['component_handle', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
});
});
//# sourceMappingURL=allocationPreviewItem.js.map