@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.
25 lines • 1.43 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, bigint, boolean, expandoObject, lazy, optional, string, } from '../schema.js';
import { allocationPreviewDirectionSchema, } from './allocationPreviewDirection.js';
import { allocationPreviewItemSchema, } from './allocationPreviewItem.js';
import { allocationPreviewLineItemSchema, } from './allocationPreviewLineItem.js';
export const allocationPreviewSchema = lazy(() => expandoObject({
startDate: ['start_date', optional(string())],
endDate: ['end_date', optional(string())],
subtotalInCents: ['subtotal_in_cents', optional(bigint())],
totalTaxInCents: ['total_tax_in_cents', optional(bigint())],
totalDiscountInCents: ['total_discount_in_cents', optional(bigint())],
totalInCents: ['total_in_cents', optional(bigint())],
direction: ['direction', optional(allocationPreviewDirectionSchema)],
prorationScheme: ['proration_scheme', optional(string())],
lineItems: ['line_items', optional(array(allocationPreviewLineItemSchema))],
accrueCharge: ['accrue_charge', optional(boolean())],
allocations: ['allocations', optional(array(allocationPreviewItemSchema))],
periodType: ['period_type', optional(string())],
existingBalanceInCents: ['existing_balance_in_cents', optional(bigint())],
}));
//# sourceMappingURL=allocationPreview.js.map