mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
fix: (payment ) store fractional payment intent amounts
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
-- Widen PaymentIntent.amountMinor from integer to double precision so fractional
|
||||
-- charge amounts (e.g. 1700.49 after ETB->DJF FX conversion) mirror the
|
||||
-- edr_payment.payment_intent.amount_minor source of truth instead of truncating.
|
||||
ALTER TABLE "passenger"."PaymentIntent" ALTER COLUMN "amountMinor" SET DATA TYPE DOUBLE PRECISION;
|
||||
@@ -621,7 +621,7 @@ model PaymentMethod {
|
||||
model PaymentIntent {
|
||||
id String @id @default(uuid())
|
||||
bookingId String @unique
|
||||
amountMinor Int
|
||||
amountMinor Float
|
||||
currency String @default("ETB")
|
||||
method PaymentMethodType
|
||||
provider String?
|
||||
|
||||
Reference in New Issue
Block a user