@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.
82 lines • 5.24 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.proformaInvoiceSchema = void 0;
var schema_1 = require("../schema");
var collectionMethod_1 = require("./collectionMethod");
var invoiceAddress_1 = require("./invoiceAddress");
var invoiceConsolidationLevel_1 = require("./invoiceConsolidationLevel");
var invoiceCustomer_1 = require("./invoiceCustomer");
var invoiceCustomField_1 = require("./invoiceCustomField");
var invoiceLineItem_1 = require("./invoiceLineItem");
var invoiceSeller_1 = require("./invoiceSeller");
var proformaInvoiceCredit_1 = require("./proformaInvoiceCredit");
var proformaInvoiceDiscount_1 = require("./proformaInvoiceDiscount");
var proformaInvoicePayment_1 = require("./proformaInvoicePayment");
var proformaInvoiceRole_1 = require("./proformaInvoiceRole");
var proformaInvoiceStatus_1 = require("./proformaInvoiceStatus");
var proformaInvoiceTax_1 = require("./proformaInvoiceTax");
exports.proformaInvoiceSchema = (0, schema_1.expandoObject)({
uid: ['uid', (0, schema_1.optional)((0, schema_1.string)())],
siteId: ['site_id', (0, schema_1.optional)((0, schema_1.number)())],
customerId: ['customer_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
subscriptionId: ['subscription_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
number: ['number', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
sequenceNumber: ['sequence_number', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
deliveryDate: ['delivery_date', (0, schema_1.optional)((0, schema_1.string)())],
status: ['status', (0, schema_1.optional)(proformaInvoiceStatus_1.proformaInvoiceStatusSchema)],
collectionMethod: ['collection_method', (0, schema_1.optional)(collectionMethod_1.collectionMethodSchema)],
paymentInstructions: ['payment_instructions', (0, schema_1.optional)((0, schema_1.string)())],
currency: ['currency', (0, schema_1.optional)((0, schema_1.string)())],
consolidationLevel: [
'consolidation_level',
(0, schema_1.optional)(invoiceConsolidationLevel_1.invoiceConsolidationLevelSchema),
],
productName: ['product_name', (0, schema_1.optional)((0, schema_1.string)())],
productFamilyName: ['product_family_name', (0, schema_1.optional)((0, schema_1.string)())],
role: ['role', (0, schema_1.optional)(proformaInvoiceRole_1.proformaInvoiceRoleSchema)],
seller: ['seller', (0, schema_1.optional)((0, schema_1.lazy)(function () { return invoiceSeller_1.invoiceSellerSchema; }))],
customer: ['customer', (0, schema_1.optional)((0, schema_1.lazy)(function () { return invoiceCustomer_1.invoiceCustomerSchema; }))],
memo: ['memo', (0, schema_1.optional)((0, schema_1.string)())],
billingAddress: [
'billing_address',
(0, schema_1.optional)((0, schema_1.lazy)(function () { return invoiceAddress_1.invoiceAddressSchema; })),
],
shippingAddress: [
'shipping_address',
(0, schema_1.optional)((0, schema_1.lazy)(function () { return invoiceAddress_1.invoiceAddressSchema; })),
],
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)())],
creditAmount: ['credit_amount', (0, schema_1.optional)((0, schema_1.string)())],
paidAmount: ['paid_amount', (0, schema_1.optional)((0, schema_1.string)())],
refundAmount: ['refund_amount', (0, schema_1.optional)((0, schema_1.string)())],
dueAmount: ['due_amount', (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 invoiceLineItem_1.invoiceLineItemSchema; })))],
discounts: [
'discounts',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return proformaInvoiceDiscount_1.proformaInvoiceDiscountSchema; }))),
],
taxes: ['taxes', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return proformaInvoiceTax_1.proformaInvoiceTaxSchema; })))],
credits: [
'credits',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return proformaInvoiceCredit_1.proformaInvoiceCreditSchema; }))),
],
payments: [
'payments',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return proformaInvoicePayment_1.proformaInvoicePaymentSchema; }))),
],
customFields: [
'custom_fields',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceCustomField_1.invoiceCustomFieldSchema; }))),
],
publicUrl: ['public_url', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))]
});
//# sourceMappingURL=proformaInvoice.js.map