@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.
42 lines • 2.69 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.invoiceLineItemSchema = void 0;
var schema_1 = require("../schema");
var invoiceLineItemComponentCostData_1 = require("./invoiceLineItemComponentCostData");
exports.invoiceLineItemSchema = (0, schema_1.expandoObject)({
uid: ['uid', (0, schema_1.optional)((0, schema_1.string)())],
title: ['title', (0, schema_1.optional)((0, schema_1.string)())],
description: ['description', (0, schema_1.optional)((0, schema_1.string)())],
quantity: ['quantity', (0, schema_1.optional)((0, schema_1.string)())],
unitPrice: ['unit_price', (0, schema_1.optional)((0, schema_1.string)())],
subtotalAmount: ['subtotal_amount', (0, schema_1.optional)((0, schema_1.string)())],
discountAmount: ['discount_amount', (0, schema_1.optional)((0, schema_1.string)())],
taxAmount: ['tax_amount', (0, schema_1.optional)((0, schema_1.string)())],
totalAmount: ['total_amount', (0, schema_1.optional)((0, schema_1.string)())],
tieredUnitPrice: ['tiered_unit_price', (0, schema_1.optional)((0, schema_1.boolean)())],
periodRangeStart: ['period_range_start', (0, schema_1.optional)((0, schema_1.string)())],
periodRangeEnd: ['period_range_end', (0, schema_1.optional)((0, schema_1.string)())],
transactionId: ['transaction_id', (0, schema_1.optional)((0, schema_1.number)())],
productId: ['product_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
productVersion: ['product_version', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
componentId: ['component_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
pricePointId: ['price_point_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
billingScheduleItemId: [
'billing_schedule_item_id',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)())),
],
hide: ['hide', (0, schema_1.optional)((0, schema_1.boolean)())],
componentCostData: [
'component_cost_data',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.lazy)(function () { return invoiceLineItemComponentCostData_1.invoiceLineItemComponentCostDataSchema; }))),
],
productPricePointId: ['product_price_point_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
customItem: ['custom_item', (0, schema_1.optional)((0, schema_1.boolean)())],
kind: ['kind', (0, schema_1.optional)((0, schema_1.string)())]
});
//# sourceMappingURL=invoiceLineItem.js.map