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.

31 lines 1.68 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.allocateComponentsSchema = void 0; var schema_js_1 = require("../schema.js"); var collectionMethod_js_1 = require("./collectionMethod.js"); var createAllocation_js_1 = require("./createAllocation.js"); var creditType_js_1 = require("./creditType.js"); exports.allocateComponentsSchema = (0, schema_js_1.lazy)(function () { return (0, schema_js_1.expandoObject)({ 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)()), ], allocations: ['allocations', (0, schema_js_1.optional)((0, schema_js_1.array)(createAllocation_js_1.createAllocationSchema))], 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))], paymentCollectionMethod: [ 'payment_collection_method', (0, schema_js_1.optional)(collectionMethod_js_1.collectionMethodSchema), ], initiateDunning: ['initiate_dunning', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], }); }); //# sourceMappingURL=allocateComponents.js.map