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.

48 lines 3.16 kB
"use strict"; /** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ exports.__esModule = true; exports.allocationSchema = void 0; var schema_1 = require("../schema"); var allocationPreviousQuantity_1 = require("./containers/allocationPreviousQuantity"); var allocationQuantity_1 = require("./containers/allocationQuantity"); var creditType_1 = require("./creditType"); var intervalUnit_1 = require("./intervalUnit"); var paymentForAllocation_1 = require("./paymentForAllocation"); exports.allocationSchema = (0, schema_1.expandoObject)({ allocationId: ['allocation_id', (0, schema_1.optional)((0, schema_1.number)())], componentId: ['component_id', (0, schema_1.optional)((0, schema_1.number)())], componentHandle: ['component_handle', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))], subscriptionId: ['subscription_id', (0, schema_1.optional)((0, schema_1.number)())], quantity: ['quantity', (0, schema_1.optional)(allocationQuantity_1.allocationQuantitySchema)], previousQuantity: [ 'previous_quantity', (0, schema_1.optional)(allocationPreviousQuantity_1.allocationPreviousQuantitySchema), ], memo: ['memo', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))], timestamp: ['timestamp', (0, schema_1.optional)((0, schema_1.string)())], createdAt: ['created_at', (0, schema_1.optional)((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)())], pricePointId: ['price_point_id', (0, schema_1.optional)((0, schema_1.number)())], pricePointName: ['price_point_name', (0, schema_1.optional)((0, schema_1.string)())], pricePointHandle: ['price_point_handle', (0, schema_1.optional)((0, schema_1.string)())], 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)())], accrueCharge: ['accrue_charge', (0, schema_1.optional)((0, schema_1.boolean)())], initiateDunning: ['initiate_dunning', (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))], payment: [ 'payment', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.lazy)(function () { return paymentForAllocation_1.paymentForAllocationSchema; }))), ], expiresAt: ['expires_at', (0, schema_1.optional)((0, schema_1.string)())], usedQuantity: ['used_quantity', (0, schema_1.optional)((0, schema_1.bigint)())], chargeId: ['charge_id', (0, schema_1.optional)((0, schema_1.bigint)())] }); //# sourceMappingURL=allocation.js.map