react-native-unit-components
Version:
Unit React Native components
43 lines (42 loc) • 760 B
text/typescript
import { UNCents } from '../payment/payments.types';
import { UNTransactionTypes } from './transactions.types';
import { UNDirection } from '../types';
export type UNAdjustmentTransaction = {
type: UNTransactionTypes.Adjustment
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
}
}
}
};