Skip to content

Commit

Permalink
chore: add new property to transaction object
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayata Suenaga committed Sep 11, 2023
1 parent 38c3e94 commit 46ea92c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/types/onyx/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ type Comment = {
comment?: string;
};

type Geometry = {
coordinates: number[][];
type: 'LineString';
};

type Route = {
distance: number;
geometry: Geometry;
};

type Routes = Record<string, Route>;

type Transaction = {
transactionID: string;
amount: number;
Expand All @@ -25,6 +37,7 @@ type Transaction = {
source?: string;
state?: ValueOf<typeof CONST.IOU.RECEIPT_STATE>;
};
routes: Routes;
};

export default Transaction;

0 comments on commit 46ea92c

Please sign in to comment.