@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.
53 lines • 3.29 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.debitNoteSchema = void 0;
var schema_1 = require("../schema");
var creditNoteLineItem_1 = require("./creditNoteLineItem");
var debitNoteRole_1 = require("./debitNoteRole");
var debitNoteStatus_1 = require("./debitNoteStatus");
var invoiceAddress_1 = require("./invoiceAddress");
var invoiceCustomer_1 = require("./invoiceCustomer");
var invoiceDiscount_1 = require("./invoiceDiscount");
var invoiceRefund_1 = require("./invoiceRefund");
var invoiceSeller_1 = require("./invoiceSeller");
var invoiceTax_1 = require("./invoiceTax");
exports.debitNoteSchema = (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.number)())],
subscriptionId: ['subscription_id', (0, schema_1.optional)((0, schema_1.number)())],
number: ['number', (0, schema_1.optional)((0, schema_1.number)())],
sequenceNumber: ['sequence_number', (0, schema_1.optional)((0, schema_1.number)())],
originCreditNoteUid: ['origin_credit_note_uid', (0, schema_1.optional)((0, schema_1.string)())],
originCreditNoteNumber: ['origin_credit_note_number', (0, schema_1.optional)((0, schema_1.string)())],
issueDate: ['issue_date', (0, schema_1.optional)((0, schema_1.string)())],
appliedDate: ['applied_date', (0, schema_1.optional)((0, schema_1.string)())],
dueDate: ['due_date', (0, schema_1.optional)((0, schema_1.string)())],
status: ['status', (0, schema_1.optional)(debitNoteStatus_1.debitNoteStatusSchema)],
memo: ['memo', (0, schema_1.optional)((0, schema_1.string)())],
role: ['role', (0, schema_1.optional)(debitNoteRole_1.debitNoteRoleSchema)],
currency: ['currency', (0, schema_1.optional)((0, schema_1.string)())],
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; }))],
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; })),
],
lineItems: [
'line_items',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return creditNoteLineItem_1.creditNoteLineItemSchema; }))),
],
discounts: ['discounts', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceDiscount_1.invoiceDiscountSchema; })))],
taxes: ['taxes', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceTax_1.invoiceTaxSchema; })))],
refunds: ['refunds', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceRefund_1.invoiceRefundSchema; })))]
});
//# sourceMappingURL=debitNote.js.map