@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.
34 lines • 1.99 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.allocationPreviewSchema = void 0;
var schema_1 = require("../schema");
var allocationPreviewDirection_1 = require("./allocationPreviewDirection");
var allocationPreviewItem_1 = require("./allocationPreviewItem");
var allocationPreviewLineItem_1 = require("./allocationPreviewLineItem");
exports.allocationPreviewSchema = (0, schema_1.expandoObject)({
startDate: ['start_date', (0, schema_1.optional)((0, schema_1.string)())],
endDate: ['end_date', (0, schema_1.optional)((0, schema_1.string)())],
subtotalInCents: ['subtotal_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
totalTaxInCents: ['total_tax_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
totalDiscountInCents: ['total_discount_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
totalInCents: ['total_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
direction: ['direction', (0, schema_1.optional)(allocationPreviewDirection_1.allocationPreviewDirectionSchema)],
prorationScheme: ['proration_scheme', (0, schema_1.optional)((0, schema_1.string)())],
lineItems: [
'line_items',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return allocationPreviewLineItem_1.allocationPreviewLineItemSchema; }))),
],
accrueCharge: ['accrue_charge', (0, schema_1.optional)((0, schema_1.boolean)())],
allocations: [
'allocations',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return allocationPreviewItem_1.allocationPreviewItemSchema; }))),
],
periodType: ['period_type', (0, schema_1.optional)((0, schema_1.string)())],
existingBalanceInCents: ['existing_balance_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())]
});
//# sourceMappingURL=allocationPreview.js.map