import { UNCents } from '../payment/payments.types';
import { UNDirection } from '../types';
import { UNTransactionTypes } from './transactions.types';

export type UNAccountLowBalanceClosureTransaction = {
  type: UNTransactionTypes.AccountLowBalanceClosure
  id: number
  attributes: {
    createdAt: Date
    amount: UNCents
    direction: UNDirection
    balance: UNCents
    summary: string
  }
  relationships: {
    account: {
      data: {
        type: string
        id: number
      }
    }
    customer?: {
      data: {
        type: string
        id: number
      }
    }
    customers?: {
      data: [
        {
          type: 'customer'
          id: string
        }
      ]
    }
    org?: {
      data: {
        type: string
        id: number
      }
    }
  }
}; 