@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.
40 lines • 2.58 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.allocationPreviewItemSchema = void 0;
var schema_1 = require("../schema");
var allocationPreviewItemPreviousQuantity_1 = require("./containers/allocationPreviewItemPreviousQuantity");
var allocationPreviewItemQuantity_1 = require("./containers/allocationPreviewItemQuantity");
var creditType_1 = require("./creditType");
var intervalUnit_1 = require("./intervalUnit");
exports.allocationPreviewItemSchema = (0, schema_1.expandoObject)({
componentId: ['component_id', (0, schema_1.optional)((0, schema_1.number)())],
subscriptionId: ['subscription_id', (0, schema_1.optional)((0, schema_1.number)())],
quantity: ['quantity', (0, schema_1.optional)(allocationPreviewItemQuantity_1.allocationPreviewItemQuantitySchema)],
previousQuantity: [
'previous_quantity',
(0, schema_1.optional)(allocationPreviewItemPreviousQuantity_1.allocationPreviewItemPreviousQuantitySchema),
],
memo: ['memo', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
timestamp: ['timestamp', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
prorationUpgradeScheme: ['proration_upgrade_scheme', (0, schema_1.optional)((0, schema_1.string)())],
prorationDowngradeScheme: [
'proration_downgrade_scheme',
(0, schema_1.optional)((0, schema_1.string)()),
],
accrueCharge: ['accrue_charge', (0, schema_1.optional)((0, schema_1.boolean)())],
upgradeCharge: ['upgrade_charge', (0, schema_1.optional)((0, schema_1.nullable)(creditType_1.creditTypeSchema))],
downgradeCredit: ['downgrade_credit', (0, schema_1.optional)((0, schema_1.nullable)(creditType_1.creditTypeSchema))],
pricePointId: ['price_point_id', (0, schema_1.optional)((0, schema_1.number)())],
interval: ['interval', (0, schema_1.optional)((0, schema_1.number)())],
intervalUnit: ['interval_unit', (0, schema_1.optional)((0, schema_1.nullable)(intervalUnit_1.intervalUnitSchema))],
previousPricePointId: ['previous_price_point_id', (0, schema_1.optional)((0, schema_1.number)())],
pricePointHandle: ['price_point_handle', (0, schema_1.optional)((0, schema_1.string)())],
pricePointName: ['price_point_name', (0, schema_1.optional)((0, schema_1.string)())],
componentHandle: ['component_handle', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))]
});
//# sourceMappingURL=allocationPreviewItem.js.map