From 46ea92c5e52d5245f9b1835ff2d5c07beab83424 Mon Sep 17 00:00:00 2001 From: Hayata Suenaga Date: Mon, 11 Sep 2023 13:12:43 +0800 Subject: [PATCH] chore: add new property to transaction object --- src/types/onyx/Transaction.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/types/onyx/Transaction.ts b/src/types/onyx/Transaction.ts index 9e6cd603472f..17e3e8b5f429 100644 --- a/src/types/onyx/Transaction.ts +++ b/src/types/onyx/Transaction.ts @@ -6,6 +6,18 @@ type Comment = { comment?: string; }; +type Geometry = { + coordinates: number[][]; + type: 'LineString'; +}; + +type Route = { + distance: number; + geometry: Geometry; +}; + +type Routes = Record; + type Transaction = { transactionID: string; amount: number; @@ -25,6 +37,7 @@ type Transaction = { source?: string; state?: ValueOf; }; + routes: Routes; }; export default Transaction;