@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.
35 lines • 1.38 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 { createInvoiceAddressSchema, } from './createInvoiceAddress';
import { createInvoiceCouponSchema, } from './createInvoiceCoupon';
import { createInvoiceItemSchema, } from './createInvoiceItem';
import { createInvoiceStatusSchema, } from './createInvoiceStatus';
export const createInvoiceSchema = expandoObject({
lineItems: [
'line_items',
optional(array(lazy(() => createInvoiceItemSchema))),
],
issueDate: ['issue_date', optional(string())],
netTerms: ['net_terms', optional(number())],
paymentInstructions: ['payment_instructions', optional(string())],
memo: ['memo', optional(string())],
sellerAddress: [
'seller_address',
optional(lazy(() => createInvoiceAddressSchema)),
],
billingAddress: [
'billing_address',
optional(lazy(() => createInvoiceAddressSchema)),
],
shippingAddress: [
'shipping_address',
optional(lazy(() => createInvoiceAddressSchema)),
],
coupons: ['coupons', optional(array(lazy(() => createInvoiceCouponSchema)))],
status: ['status', optional(createInvoiceStatusSchema)],
});
//# sourceMappingURL=createInvoice.js.map