UNPKG

@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.

111 lines 7.6 kB
"use strict"; /** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ exports.__esModule = true; exports.invoiceSchema = void 0; var schema_1 = require("../schema"); var collectionMethod_1 = require("./collectionMethod"); var invoiceAddress_1 = require("./invoiceAddress"); var invoiceAvataxDetails_1 = require("./invoiceAvataxDetails"); var invoiceConsolidationLevel_1 = require("./invoiceConsolidationLevel"); var invoiceCredit_1 = require("./invoiceCredit"); var invoiceCustomer_1 = require("./invoiceCustomer"); var invoiceCustomField_1 = require("./invoiceCustomField"); var invoiceDebit_1 = require("./invoiceDebit"); var invoiceDiscount_1 = require("./invoiceDiscount"); var invoiceDisplaySettings_1 = require("./invoiceDisplaySettings"); var invoiceLineItem_1 = require("./invoiceLineItem"); var invoicePayer_1 = require("./invoicePayer"); var invoicePayment_1 = require("./invoicePayment"); var invoicePreviousBalance_1 = require("./invoicePreviousBalance"); var invoiceRefund_1 = require("./invoiceRefund"); var invoiceRole_1 = require("./invoiceRole"); var invoiceSeller_1 = require("./invoiceSeller"); var invoiceStatus_1 = require("./invoiceStatus"); var invoiceTax_1 = require("./invoiceTax"); exports.invoiceSchema = (0, schema_1.expandoObject)({ id: ['id', (0, schema_1.optional)((0, schema_1.bigint)())], 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)())], transactionTime: ['transaction_time', (0, schema_1.optional)((0, schema_1.string)())], createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())], updatedAt: ['updated_at', (0, schema_1.optional)((0, schema_1.string)())], issueDate: ['issue_date', (0, schema_1.optional)((0, schema_1.string)())], dueDate: ['due_date', (0, schema_1.optional)((0, schema_1.string)())], paidDate: ['paid_date', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))], status: ['status', (0, schema_1.optional)(invoiceStatus_1.invoiceStatusSchema)], role: ['role', (0, schema_1.optional)(invoiceRole_1.invoiceRoleSchema)], parentInvoiceId: ['parent_invoice_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))], collectionMethod: ['collection_method', (0, schema_1.optional)(collectionMethod_1.collectionMethodSchema)], paymentInstructions: ['payment_instructions', (0, schema_1.optional)((0, schema_1.string)())], currency: ['currency', (0, schema_1.optional)((0, schema_1.string)())], consolidationLevel: [ 'consolidation_level', (0, schema_1.optional)(invoiceConsolidationLevel_1.invoiceConsolidationLevelSchema), ], parentInvoiceUid: ['parent_invoice_uid', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))], subscriptionGroupId: ['subscription_group_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))], parentInvoiceNumber: ['parent_invoice_number', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))], groupPrimarySubscriptionId: [ 'group_primary_subscription_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)())), ], productName: ['product_name', (0, schema_1.optional)((0, schema_1.string)())], productFamilyName: ['product_family_name', (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; }))], payer: ['payer', (0, schema_1.optional)((0, schema_1.lazy)(function () { return invoicePayer_1.invoicePayerSchema; }))], recipientEmails: ['recipient_emails', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.string)()))], netTerms: ['net_terms', (0, schema_1.optional)((0, schema_1.number)())], memo: ['memo', (0, schema_1.optional)((0, schema_1.string)())], 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)())], creditAmount: ['credit_amount', (0, schema_1.optional)((0, schema_1.string)())], debitAmount: ['debit_amount', (0, schema_1.optional)((0, schema_1.string)())], refundAmount: ['refund_amount', (0, schema_1.optional)((0, schema_1.string)())], paidAmount: ['paid_amount', (0, schema_1.optional)((0, schema_1.string)())], dueAmount: ['due_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 invoiceLineItem_1.invoiceLineItemSchema; })))], 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; })))], credits: ['credits', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceCredit_1.invoiceCreditSchema; })))], debits: ['debits', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceDebit_1.invoiceDebitSchema; })))], refunds: ['refunds', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceRefund_1.invoiceRefundSchema; })))], payments: ['payments', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoicePayment_1.invoicePaymentSchema; })))], customFields: [ 'custom_fields', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return invoiceCustomField_1.invoiceCustomFieldSchema; }))), ], displaySettings: [ 'display_settings', (0, schema_1.optional)((0, schema_1.lazy)(function () { return invoiceDisplaySettings_1.invoiceDisplaySettingsSchema; })), ], avataxDetails: [ 'avatax_details', (0, schema_1.optional)((0, schema_1.lazy)(function () { return invoiceAvataxDetails_1.invoiceAvataxDetailsSchema; })), ], publicUrl: ['public_url', (0, schema_1.optional)((0, schema_1.string)())], previousBalanceData: [ 'previous_balance_data', (0, schema_1.optional)((0, schema_1.lazy)(function () { return invoicePreviousBalance_1.invoicePreviousBalanceSchema; })), ], publicUrlExpiresOn: ['public_url_expires_on', (0, schema_1.optional)((0, schema_1.string)())] }); //# sourceMappingURL=invoice.js.map