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

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

export interface DunnerData {
  state: string;
  subscriptionId: number;
  revenueAtRiskInCents: bigint;
  createdAt: string;
  attempts: number;
  lastAttemptedAt: string;
  [key: string]: unknown;
}

export const dunnerDataSchema: Schema<DunnerData> = expandoObject({
  state: ['state', string()],
  subscriptionId: ['subscription_id', number()],
  revenueAtRiskInCents: ['revenue_at_risk_in_cents', bigint()],
  createdAt: ['created_at', string()],
  attempts: ['attempts', number()],
  lastAttemptedAt: ['last_attempted_at', string()],
});
