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.

26 lines (22 loc) 902 B
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { bigint, expandoObject, number, optional, Schema } from '../schema'; export interface InvoicePrePayment { /** The subscription id for the prepayment account */ subscriptionId?: number; /** The amount in cents of the prepayment that was created as a result of this payment. */ amountInCents?: bigint; /** The total balance of the prepayment account for this subscription including any prior prepayments */ endingBalanceInCents?: bigint; [key: string]: unknown; } export const invoicePrePaymentSchema: Schema<InvoicePrePayment> = expandoObject( { subscriptionId: ['subscription_id', optional(number())], amountInCents: ['amount_in_cents', optional(bigint())], endingBalanceInCents: ['ending_balance_in_cents', optional(bigint())], } );