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

import { expandoObject, lazy, optional, Schema } from '../schema.js';
import { BillingManifest, billingManifestSchema } from './billingManifest.js';

export interface SubscriptionPreview {
  currentBillingManifest?: BillingManifest;
  nextBillingManifest?: BillingManifest;
  [key: string]: unknown;
}

export const subscriptionPreviewSchema: Schema<SubscriptionPreview> = lazy(() =>
  expandoObject({
    currentBillingManifest: [
      'current_billing_manifest',
      optional(billingManifestSchema),
    ],
    nextBillingManifest: [
      'next_billing_manifest',
      optional(billingManifestSchema),
    ],
  })
);
