@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.
64 lines • 3.9 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.creditNoteSchema = void 0;
var schema_1 = require("../schema");
var creditNoteApplication_1 = require("./creditNoteApplication");
var creditNoteLineItem_1 = require("./creditNoteLineItem");
var creditNoteStatus_1 = require("./creditNoteStatus");
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");
var originInvoice_1 = require("./originInvoice");
exports.creditNoteSchema = (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.string)())],
sequenceNumber: ['sequence_number', (0, schema_1.optional)((0, schema_1.number)())],
issueDate: ['issue_date', (0, schema_1.optional)((0, schema_1.string)())],
appliedDate: ['applied_date', (0, schema_1.optional)((0, schema_1.string)())],
status: ['status', (0, schema_1.optional)(creditNoteStatus_1.creditNoteStatusSchema)],
currency: ['currency', (0, schema_1.optional)((0, schema_1.string)())],
memo: ['memo', (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; })),
],
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)())],
appliedAmount: ['applied_amount', (0, schema_1.optional)((0, schema_1.string)())],
remainingAmount: ['remaining_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 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; })))],
applications: [
'applications',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return creditNoteApplication_1.creditNoteApplicationSchema; }))),
],
refunds: ['refunds', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceRefund_1.invoiceRefundSchema; })))],
originInvoices: [
'origin_invoices',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return originInvoice_1.originInvoiceSchema; }))),
]
});
//# sourceMappingURL=creditNote.js.map