diff options
author | Mateus Cruz <mateuscolvr@gmail.com> | 2024-02-06 02:56:02 -0300 |
---|---|---|
committer | Mateus Cruz <mateuscolvr@gmail.com> | 2024-02-06 02:56:02 -0300 |
commit | db882cae080d3820f1723a711398c21db27f826a (patch) | |
tree | 521898630757be1b8056539d919ded3aa69a66ba /lib/operation.ml | |
parent | 7c92898c8f0adb4a6014ce5f434a7d862a0cdc57 (diff) |
small refactor
Diffstat (limited to 'lib/operation.ml')
-rw-r--r-- | lib/operation.ml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/operation.ml b/lib/operation.ml index 54962fd..2e681f8 100644 --- a/lib/operation.ml +++ b/lib/operation.ml @@ -18,6 +18,12 @@ module TransactionType = struct ;; end +type client = + { id : int + ; mov_limit : int + ; balance : int + } + type transaction_payload = { value : int ; description : string @@ -28,8 +34,6 @@ type transaction_op = | `Debit of transaction_payload ] -type t = Balance of { client_id : int } - type transaction = { id : int ; client_id : int |