react-native-unit-components
Version:
Unit React Native components
49 lines (47 loc) • 1.08 kB
text/typescript
import { UNDirection, UNOrg } from '../types';
import { UNCents, UNPaymentStatus, UNPaymentType, UNRelationshipsAccount, UNRelationshipsCustomer, UNRelationshipsRecurringPayment, UNRelationshipsTransaction } from './payments.types';
export type UNBookPayment = {
type: UNPaymentType.BookPayment
id: string
attributes: {
createdAt: Date
amount: UNCents
direction: UNDirection
description: string
status: UNPaymentStatus
reason?: string
tags?: { [key: string]: string }
}
relationships: {
account: {
data: UNRelationshipsAccount
}
customer?: {
data: UNRelationshipsCustomer
}
customers?: {
data: UNRelationshipsCustomer[]
}
transaction?: {
data: UNRelationshipsTransaction
}
counterpartyAccount: {
data: {
type: string
id: number
}
}
counterpartyCustomer: {
data: {
type: string
id: number
}
}
recurringPayment?: {
data: UNRelationshipsRecurringPayment
}
org?: {
data: UNOrg
}
}
}