@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.
35 lines • 2 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.invoiceTaxSchema = void 0;
var schema_1 = require("../schema");
var invoiceTaxBreakout_1 = require("./invoiceTaxBreakout");
var invoiceTaxComponentBreakout_1 = require("./invoiceTaxComponentBreakout");
var proformaInvoiceTaxSourceType_1 = require("./proformaInvoiceTaxSourceType");
exports.invoiceTaxSchema = (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.nullable)((0, schema_1.string)()))],
sourceType: ['source_type', (0, schema_1.optional)(proformaInvoiceTaxSourceType_1.proformaInvoiceTaxSourceTypeSchema)],
sourceId: ['source_id', (0, schema_1.optional)((0, schema_1.number)())],
percentage: ['percentage', (0, schema_1.optional)((0, schema_1.string)())],
taxableAmount: ['taxable_amount', (0, schema_1.optional)((0, schema_1.string)())],
taxAmount: ['tax_amount', (0, schema_1.optional)((0, schema_1.string)())],
transactionId: ['transaction_id', (0, schema_1.optional)((0, schema_1.number)())],
lineItemBreakouts: [
'line_item_breakouts',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceTaxBreakout_1.invoiceTaxBreakoutSchema; }))),
],
taxComponentBreakouts: [
'tax_component_breakouts',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceTaxComponentBreakout_1.invoiceTaxComponentBreakoutSchema; }))),
],
euVat: ['eu_vat', (0, schema_1.optional)((0, schema_1.boolean)())],
type: ['type', (0, schema_1.optional)((0, schema_1.string)())],
taxExemptAmount: ['tax_exempt_amount', (0, schema_1.optional)((0, schema_1.string)())]
});
//# sourceMappingURL=invoiceTax.js.map