react-native-unit-components
Version:
Unit React Native components
57 lines (56 loc) • 1.03 kB
text/typescript
import { UNAchCounterparty, UNCents } from '../payment/payments.types';
import { UNTransactionTypes } from './transactions.types';
import { UNDirection } from '../types';
export type UNChargebackTransaction = {
type: UNTransactionTypes.Chargeback
id: number
attributes: {
createdAt: Date
amount: UNCents
direction: UNDirection
balance: UNCents
summary: string
counterparty: UNAchCounterparty
tags?: { [key: string]: 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
}
}
chargeback: {
data: {
type: string
id: number
}
}
receiverAccount: {
data: {
type: string
id: number
}
}
}
};