@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.
50 lines • 2.31 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, expandoObject, lazy, number, optional, string, } from '../schema';
import { creditNoteLineItemSchema, } from './creditNoteLineItem';
import { debitNoteRoleSchema } from './debitNoteRole';
import { debitNoteStatusSchema } from './debitNoteStatus';
import { invoiceAddressSchema } from './invoiceAddress';
import { invoiceCustomerSchema } from './invoiceCustomer';
import { invoiceDiscountSchema } from './invoiceDiscount';
import { invoiceRefundSchema } from './invoiceRefund';
import { invoiceSellerSchema } from './invoiceSeller';
import { invoiceTaxSchema } from './invoiceTax';
export const debitNoteSchema = expandoObject({
uid: ['uid', optional(string())],
siteId: ['site_id', optional(number())],
customerId: ['customer_id', optional(number())],
subscriptionId: ['subscription_id', optional(number())],
number: ['number', optional(number())],
sequenceNumber: ['sequence_number', optional(number())],
originCreditNoteUid: ['origin_credit_note_uid', optional(string())],
originCreditNoteNumber: ['origin_credit_note_number', optional(string())],
issueDate: ['issue_date', optional(string())],
appliedDate: ['applied_date', optional(string())],
dueDate: ['due_date', optional(string())],
status: ['status', optional(debitNoteStatusSchema)],
memo: ['memo', optional(string())],
role: ['role', optional(debitNoteRoleSchema)],
currency: ['currency', optional(string())],
seller: ['seller', optional(lazy(() => invoiceSellerSchema))],
customer: ['customer', optional(lazy(() => invoiceCustomerSchema))],
billingAddress: [
'billing_address',
optional(lazy(() => invoiceAddressSchema)),
],
shippingAddress: [
'shipping_address',
optional(lazy(() => invoiceAddressSchema)),
],
lineItems: [
'line_items',
optional(array(lazy(() => creditNoteLineItemSchema))),
],
discounts: ['discounts', optional(array(lazy(() => invoiceDiscountSchema)))],
taxes: ['taxes', optional(array(lazy(() => invoiceTaxSchema)))],
refunds: ['refunds', optional(array(lazy(() => invoiceRefundSchema)))],
});
//# sourceMappingURL=debitNote.js.map