@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.
54 lines • 3.83 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.creditNoteSchema = void 0;
var schema_js_1 = require("../schema.js");
var creditNoteApplication_js_1 = require("./creditNoteApplication.js");
var creditNoteLineItem_js_1 = require("./creditNoteLineItem.js");
var creditNoteStatus_js_1 = require("./creditNoteStatus.js");
var invoiceAddress_js_1 = require("./invoiceAddress.js");
var invoiceCustomer_js_1 = require("./invoiceCustomer.js");
var invoiceDiscount_js_1 = require("./invoiceDiscount.js");
var invoiceRefund_js_1 = require("./invoiceRefund.js");
var invoiceSeller_js_1 = require("./invoiceSeller.js");
var invoiceTax_js_1 = require("./invoiceTax.js");
var originInvoice_js_1 = require("./originInvoice.js");
exports.creditNoteSchema = (0, schema_js_1.lazy)(function () {
return (0, schema_js_1.expandoObject)({
uid: ['uid', (0, schema_js_1.optional)((0, schema_js_1.string)())],
siteId: ['site_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
customerId: ['customer_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
subscriptionId: ['subscription_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
number: ['number', (0, schema_js_1.optional)((0, schema_js_1.string)())],
sequenceNumber: ['sequence_number', (0, schema_js_1.optional)((0, schema_js_1.number)())],
issueDate: ['issue_date', (0, schema_js_1.optional)((0, schema_js_1.string)())],
appliedDate: ['applied_date', (0, schema_js_1.optional)((0, schema_js_1.string)())],
status: ['status', (0, schema_js_1.optional)(creditNoteStatus_js_1.creditNoteStatusSchema)],
currency: ['currency', (0, schema_js_1.optional)((0, schema_js_1.string)())],
memo: ['memo', (0, schema_js_1.optional)((0, schema_js_1.string)())],
seller: ['seller', (0, schema_js_1.optional)(invoiceSeller_js_1.invoiceSellerSchema)],
customer: ['customer', (0, schema_js_1.optional)(invoiceCustomer_js_1.invoiceCustomerSchema)],
billingAddress: ['billing_address', (0, schema_js_1.optional)(invoiceAddress_js_1.invoiceAddressSchema)],
shippingAddress: ['shipping_address', (0, schema_js_1.optional)(invoiceAddress_js_1.invoiceAddressSchema)],
subtotalAmount: ['subtotal_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
discountAmount: ['discount_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
taxAmount: ['tax_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
totalAmount: ['total_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
appliedAmount: ['applied_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
remainingAmount: ['remaining_amount', (0, schema_js_1.optional)((0, schema_js_1.string)())],
lineItems: ['line_items', (0, schema_js_1.optional)((0, schema_js_1.array)(creditNoteLineItem_js_1.creditNoteLineItemSchema))],
discounts: ['discounts', (0, schema_js_1.optional)((0, schema_js_1.array)(invoiceDiscount_js_1.invoiceDiscountSchema))],
taxes: ['taxes', (0, schema_js_1.optional)((0, schema_js_1.array)(invoiceTax_js_1.invoiceTaxSchema))],
applications: [
'applications',
(0, schema_js_1.optional)((0, schema_js_1.array)(creditNoteApplication_js_1.creditNoteApplicationSchema)),
],
refunds: ['refunds', (0, schema_js_1.optional)((0, schema_js_1.array)(invoiceRefund_js_1.invoiceRefundSchema))],
originInvoices: ['origin_invoices', (0, schema_js_1.optional)((0, schema_js_1.array)(originInvoice_js_1.originInvoiceSchema))],
});
});
//# sourceMappingURL=creditNote.js.map