@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.
61 lines • 2.72 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 { creditNoteApplicationSchema, } from './creditNoteApplication';
import { creditNoteLineItemSchema, } from './creditNoteLineItem';
import { creditNoteStatusSchema } from './creditNoteStatus';
import { invoiceAddressSchema } from './invoiceAddress';
import { invoiceCustomerSchema } from './invoiceCustomer';
import { invoiceDiscountSchema } from './invoiceDiscount';
import { invoiceRefundSchema } from './invoiceRefund';
import { invoiceSellerSchema } from './invoiceSeller';
import { invoiceTaxSchema } from './invoiceTax';
import { originInvoiceSchema } from './originInvoice';
export const creditNoteSchema = expandoObject({
uid: ['uid', optional(string())],
siteId: ['site_id', optional(number())],
customerId: ['customer_id', optional(number())],
subscriptionId: ['subscription_id', optional(number())],
number: ['number', optional(string())],
sequenceNumber: ['sequence_number', optional(number())],
issueDate: ['issue_date', optional(string())],
appliedDate: ['applied_date', optional(string())],
status: ['status', optional(creditNoteStatusSchema)],
currency: ['currency', optional(string())],
memo: ['memo', optional(string())],
seller: ['seller', optional(lazy(() => invoiceSellerSchema))],
customer: ['customer', optional(lazy(() => invoiceCustomerSchema))],
billingAddress: [
'billing_address',
optional(lazy(() => invoiceAddressSchema)),
],
shippingAddress: [
'shipping_address',
optional(lazy(() => invoiceAddressSchema)),
],
subtotalAmount: ['subtotal_amount', optional(string())],
discountAmount: ['discount_amount', optional(string())],
taxAmount: ['tax_amount', optional(string())],
totalAmount: ['total_amount', optional(string())],
appliedAmount: ['applied_amount', optional(string())],
remainingAmount: ['remaining_amount', optional(string())],
lineItems: [
'line_items',
optional(array(lazy(() => creditNoteLineItemSchema))),
],
discounts: ['discounts', optional(array(lazy(() => invoiceDiscountSchema)))],
taxes: ['taxes', optional(array(lazy(() => invoiceTaxSchema)))],
applications: [
'applications',
optional(array(lazy(() => creditNoteApplicationSchema))),
],
refunds: ['refunds', optional(array(lazy(() => invoiceRefundSchema)))],
originInvoices: [
'origin_invoices',
optional(array(lazy(() => originInvoiceSchema))),
],
});
//# sourceMappingURL=creditNote.js.map