@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 • 1.82 kB
TypeScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { Schema } from '../schema.js';
import { InvoiceEventPayment } from './containers/invoiceEventPayment.js';
import { InvoiceConsolidationLevel } from './invoiceConsolidationLevel.js';
/** Example schema for an `apply_payment` event */
export interface ApplyPaymentEventData {
consolidationLevel: InvoiceConsolidationLevel;
/** The payment memo */
memo: string;
/** The full, original amount of the payment transaction as a string in full units. Incoming payments can be split amongst several invoices, which will result in a `applied_amount` less than the `original_amount`. Example: A $100.99 payment, of which $40.11 is applied to this invoice, will have an `original_amount` of `"100.99"`. */
originalAmount: string;
/** The amount of the payment applied to this invoice. Incoming payments can be split amongst several invoices, which will result in a `applied_amount` less than the `original_amount`. Example: A $100.99 payment, of which $40.11 is applied to this invoice, will have an `applied_amount` of `"40.11"`. */
appliedAmount: string;
/** The time the payment was applied, in ISO 8601 format, i.e. "2019-06-07T17:20:06Z" */
transactionTime: string;
/** A nested data structure detailing the method of payment */
paymentMethod: InvoiceEventPayment;
/** The Chargify id of the original payment */
transactionId?: number;
parentInvoiceNumber?: number | null;
remainingPrepaymentAmount?: string | null;
prepayment?: boolean;
external?: boolean;
[key: string]: unknown;
}
export declare const applyPaymentEventDataSchema: Schema<ApplyPaymentEventData>;
//# sourceMappingURL=applyPaymentEventData.d.ts.map