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.

46 lines (42 loc) 1.31 kB
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { boolean, expandoObject, lazy, nullable, Schema, string, } from '../schema'; import { CreditNote, creditNoteSchema } from './creditNote'; /** Example schema for an `void_invoice` event */ export interface VoidInvoiceEventData { creditNoteAttributes: CreditNote | null; /** The memo provided during invoice voiding. */ memo: string | null; /** The amount of the void. */ appliedAmount: string | null; /** The time the refund was applied, in ISO 8601 format, i.e. "2019-06-07T17:20:06Z" */ transactionTime: string | null; /** If true, the invoice is an advance invoice. */ isAdvanceInvoice: boolean; /** The reason for the void. */ reason: string; [key: string]: unknown; } export const voidInvoiceEventDataSchema: Schema<VoidInvoiceEventData> = expandoObject( { creditNoteAttributes: [ 'credit_note_attributes', nullable(lazy(() => creditNoteSchema)), ], memo: ['memo', nullable(string())], appliedAmount: ['applied_amount', nullable(string())], transactionTime: ['transaction_time', nullable(string())], isAdvanceInvoice: ['is_advance_invoice', boolean()], reason: ['reason', string()], } );