/**
 * AdvancedBilling
 *
 * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

import { expandoObject, Schema, string } from '../schema.js';

/** Example schema for an `change_invoice_collection_method` event */
export interface ChangeInvoiceCollectionMethodEventData {
  /** The previous collection method of the invoice. */
  fromCollectionMethod: string;
  /** The new collection method of the invoice. */
  toCollectionMethod: string;
  [key: string]: unknown;
}

export const changeInvoiceCollectionMethodEventDataSchema: Schema<ChangeInvoiceCollectionMethodEventData> = expandoObject(
  {
    fromCollectionMethod: ['from_collection_method', string()],
    toCollectionMethod: ['to_collection_method', string()],
  }
);
