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.

31 lines (27 loc) 1.02 kB
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { expandoObject, lazy, nullable, optional, Schema } from '../schema.js'; import { CalendarBillingSnapDay, calendarBillingSnapDaySchema, } from './containers/calendarBillingSnapDay.js'; import { FirstChargeType, firstChargeTypeSchema } from './firstChargeType.js'; /** (Optional). Cannot be used when also specifying next_billing_at */ export interface CalendarBilling { /** A day of month that subscription will be processed on. Can be 1 up to 28 or 'end'. */ snapDay?: CalendarBillingSnapDay | null; calendarBillingFirstCharge?: FirstChargeType; [key: string]: unknown; } export const calendarBillingSchema: Schema<CalendarBilling> = lazy(() => expandoObject({ snapDay: ['snap_day', optional(nullable(calendarBillingSnapDaySchema))], calendarBillingFirstCharge: [ 'calendar_billing_first_charge', optional(firstChargeTypeSchema), ], }) );