File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ import style from './transaction.module.css'
33import Button from 'components/Button'
44import { CreateInvoicePOSTParameters } from 'utils/validators'
55import axios from 'axios'
6+ import { Prisma } from '@prisma/client'
67
78export interface InvoiceData {
89 id ?: string
9- invoiceNumber : string
10+ invoiceNumber : Prisma . Decimal
1011 amount : number
1112 recipientName : string
1213 recipientAddress : string
Original file line number Diff line number Diff line change 1+ import { Decimal } from '@prisma/client/runtime/library'
12import prisma from 'prisma/clientInstance'
23import { Invoice } from '@prisma/client'
34import { RESPONSE_MESSAGES } from 'constants/index'
@@ -6,7 +7,7 @@ export interface CreateInvoiceParams {
67 userId : string
78 transactionId ?: string
89 invoiceNumber : string
9- amount : number
10+ amount : Decimal
1011 description : string
1112 recipientName : string
1213 recipientAddress : string
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ export const parseUpdateUserTimezonePUTRequest = function (params: UpdateUserTim
553553
554554export interface CreateInvoicePOSTParameters {
555555 transactionId : string
556- amount : number
556+ amount : Prisma . Decimal
557557 description : string
558558 recipientName : string
559559 recipientAddress : string
You can’t perform that action at this time.
0 commit comments