add btc details invoice relation
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { InvoiceBtcDetails } from './InvoiceBtcDetails';
|
||||
import type { InvoiceMoneroDetails } from './InvoiceMoneroDetails';
|
||||
import type { InvoicePayment } from './InvoicePayment';
|
||||
import type { InvoiceReason } from './InvoiceReason';
|
||||
@@ -14,5 +15,6 @@ export type Invoice = {
|
||||
expectedTotalAtomic: string;
|
||||
createdAt: string;
|
||||
moneroDetails?: InvoiceMoneroDetails | null;
|
||||
btcDetails?: InvoiceBtcDetails | null;
|
||||
payments?: InvoicePayment[];
|
||||
};
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export type InvoiceBtcDetails = {
|
||||
id: string;
|
||||
fiatPerBtcAtCreation: number;
|
||||
requiredConfirmations: number;
|
||||
};
|
||||
@@ -1,7 +1,9 @@
|
||||
export enum PaymentMethod {
|
||||
Xmr = 'xmr'
|
||||
Xmr = 'xmr',
|
||||
Btc = 'btc'
|
||||
}
|
||||
|
||||
export const paymentMethodCryptoCurrency: Record<PaymentMethod, string> = {
|
||||
[PaymentMethod.Xmr]: 'XMR'
|
||||
[PaymentMethod.Xmr]: 'XMR',
|
||||
[PaymentMethod.Btc]: 'BTC'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user