@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.
37 lines • 2.21 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.invoiceTaxSchema = void 0;
var schema_js_1 = require("../schema.js");
var invoiceTaxBreakout_js_1 = require("./invoiceTaxBreakout.js");
var invoiceTaxComponentBreakout_js_1 = require("./invoiceTaxComponentBreakout.js");
var proformaInvoiceTaxSourceType_js_1 = require("./proformaInvoiceTaxSourceType.js");
exports.invoiceTaxSchema = (0, schema_js_1.lazy)(function () {
return (0, schema_js_1.expandoObject)({
uid: ['uid', (0, schema_js_1.optional)((0, schema_js_1.string)())],
title: ['title', (0, schema_js_1.optional)((0, schema_js_1.string)())],
description: ['description', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
sourceType: ['source_type', (0, schema_js_1.optional)(proformaInvoiceTaxSourceType_js_1.proformaInvoiceTaxSourceTypeSchema)],
sourceId: ['source_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
percentage: ['percentage', (0, schema_js_1.optional)((0, schema_js_1.string)())],
taxableAmount: ['taxable_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
taxAmount: ['tax_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
transactionId: ['transaction_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
lineItemBreakouts: [
'line_item_breakouts',
(0, schema_js_1.optional)((0, schema_js_1.array)(invoiceTaxBreakout_js_1.invoiceTaxBreakoutSchema)),
],
taxComponentBreakouts: [
'tax_component_breakouts',
(0, schema_js_1.optional)((0, schema_js_1.array)(invoiceTaxComponentBreakout_js_1.invoiceTaxComponentBreakoutSchema)),
],
euVat: ['eu_vat', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
type: ['type', (0, schema_js_1.optional)((0, schema_js_1.string)())],
taxExemptAmount: ['tax_exempt_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
});
});
//# sourceMappingURL=invoiceTax.js.map