react-native-unit-components
Version:
Unit React Native components
52 lines (51 loc) • 1.06 kB
text/typescript
import { UNMerchant, UNRichMerchantData } from './transactions.types';
import { UNCents } from '../payment/payments.types';
import { UNDirection } from '../types';
import { UNTransactionTypes } from './transactions.types';
export type UNPurchaseTransaction = {
type: UNTransactionTypes.Purchase
id: number
attributes: {
cardNetwork: string
cardLast4Digits: string
createdAt: Date
amount: UNCents
direction: UNDirection
balance: UNCents
summary: string
interchange?: number | null
networkTransactionId?: string
richMerchantData?: UNRichMerchantData
paymentMethod?: string
merchant?: UNMerchant
recurring: boolean
}
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
}
}
}
};