UNPKG

@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.

50 lines 3.54 kB
"use strict"; /** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ Object.defineProperty(exports, "__esModule", { value: true }); exports.allocationSchema = void 0; var schema_js_1 = require("../schema.js"); var allocationPreviousQuantity_js_1 = require("./containers/allocationPreviousQuantity.js"); var allocationQuantity_js_1 = require("./containers/allocationQuantity.js"); var creditType_js_1 = require("./creditType.js"); var intervalUnit_js_1 = require("./intervalUnit.js"); var paymentForAllocation_js_1 = require("./paymentForAllocation.js"); exports.allocationSchema = (0, schema_js_1.lazy)(function () { return (0, schema_js_1.expandoObject)({ allocationId: ['allocation_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], componentId: ['component_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], componentHandle: ['component_handle', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], subscriptionId: ['subscription_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], quantity: ['quantity', (0, schema_js_1.optional)(allocationQuantity_js_1.allocationQuantitySchema)], previousQuantity: [ 'previous_quantity', (0, schema_js_1.optional)(allocationPreviousQuantity_js_1.allocationPreviousQuantitySchema), ], 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.string)())], createdAt: ['created_at', (0, schema_js_1.optional)((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)()), ], pricePointId: ['price_point_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], pricePointName: ['price_point_name', (0, schema_js_1.optional)((0, schema_js_1.string)())], pricePointHandle: ['price_point_handle', (0, schema_js_1.optional)((0, schema_js_1.string)())], 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)())], 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)())], 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))], payment: ['payment', (0, schema_js_1.optional)((0, schema_js_1.nullable)(paymentForAllocation_js_1.paymentForAllocationSchema))], expiresAt: ['expires_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], usedQuantity: ['used_quantity', (0, schema_js_1.optional)((0, schema_js_1.bigint)())], chargeId: ['charge_id', (0, schema_js_1.optional)((0, schema_js_1.bigint)())], }); }); //# sourceMappingURL=allocation.js.map