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