Commit graph

53 commits

Author SHA1 Message Date
Sérgio Salgado
a558410796 fix: only change customerId in presence of an anonymous customer 2022-04-04 16:35:44 +01:00
Sérgio Salgado
00adc25d15 fix: add customerId to the list of updatable fields 2022-03-31 22:06:05 +01:00
Nikola Ubavic
025acc73e2 fix: adress score error message 2022-03-15 20:19:15 +01:00
André Sá
288920b927 feat: add extra (optional) logging 2022-03-09 17:14:42 +00:00
André Sá
2b4e531367 refactor: add transaction ID to stale errors 2022-02-02 14:19:02 +00:00
Sérgio Salgado
72610e7376 fix: cashout flow out of reach catch 2022-01-25 15:59:32 +00:00
Sérgio Salgado
ae8c86a6a7 feat: ciphertrace cashout flow 2022-01-25 15:59:31 +00:00
Rafael Taranto
7164e1105b Merge pull request #943 from chaotixkilla/fix-transaction-filter-missing-cancelled
Fix transaction search filters
2021-11-24 17:43:16 +00:00
Taranto
0ad2ee362a Merge remote-tracking branch 'upstream/release-7.5.0' into chore/merge-release-into-dev 2021-11-24 14:53:50 +00:00
Sérgio Salgado
66f79481a2 fix: add operator cancel error as cancelled tx state 2021-11-21 22:06:00 +00:00
Rafael Taranto
e500a58734 Merge pull request #877 from SiIky/fix/9KDH1LMm/customer_transactions_history_query
fix: expired column in customer transactions history
2021-11-14 23:40:09 +00:00
André Sá
168192b708 fix: expired column in customer transactions history 2021-10-13 19:27:42 +01:00
José Oliveira
75e8bf0b15 fix: properly check old txs dispense confirmation 2021-10-04 07:31:17 +01:00
csrapr
346d539960 Fix: fix rare concurrency bug on cashOut 2021-10-04 07:31:17 +01:00
Sérgio Salgado
96fa94fde6 fix: backend dynamic bill array usage 2021-09-13 18:53:53 +01:00
Sérgio Salgado
3c1a58da4a feat: start working on backend support for dynamic cassette number
fix: multiple small fixes to both the front and back-end multi-cassette support
2021-09-13 18:53:53 +01:00
Sérgio Salgado
0a3b78f75e feat: makeChange function supporting multiple cassettes 2021-09-13 18:53:51 +01:00
Sérgio Salgado
b0fa62a9f3 feat: add discount source column to transaction tables
fix: move individual discounts to phone code response instead of poller
2021-09-07 17:26:36 +01:00
Taranto
ba4117173e chore: undo $ prepend on queries 2021-07-22 12:15:45 +01:00
csrapr
e6059be8d2 Chore: refactor to use new schema changing queries 2021-07-22 12:15:45 +01:00
José Oliveira
ea44478b48 chore: update big number package 2021-07-05 11:10:24 +01:00
José Oliveira
9d646ca29d fix: properly check old txs dispense confirmation 2021-06-24 00:39:30 +01:00
Liordino Neto
852bf7b089 feat: created the search component
style: added spec styles

fix: fixed font color on search input

style: added box-shadow to the search component

feat: added local search functionality to the search component

feat: integrated search component into the transactions page

feat: allow multiple filter selection on the search component

fix: let the user select only one filter for each type

feat: added chips for the selected filters on the transactions page

feat: added the remove function on the filter chips

style: styled items according to spec

refactor: simplified search component (moved logic to the outside)

feat: added transaction filters to the gql query

feat: added a 'clear all filters' button

feat: added a filters query

feat: added a gql query for the transaction filters

fix: fixed the transactions gql query so it haves the same options as
the transaction filters

feat: added a 'loading' feature to the search box (shown while loading
the filters)

fix: fetch transactions and filters separately in the transactions page

fix: style export

fix: packages

fix: transaction conflicts
2021-06-23 15:29:41 +01:00
csrapr
4f12bcf4cf Chore: move tx code into atomic function 2021-05-22 18:17:45 +01:00
csrapr
8cd1389de3 Feat: upgrade pg-promise and fix breaking changes 2021-05-22 18:17:45 +01:00
csrapr
db315490d9 Fix: fix rare concurrency bug on cashOut 2021-04-14 18:04:26 +01:00
Cesar
558317e9f3 Feat: implement per operator settings cache
Fix: fix linter-found issues

Chore: move findOperatorId to own middleware file

Chore: delete old routes.js file and rename new-routes.js to routes.js

Fix: PR fixes
2021-03-19 14:04:31 +00:00
csrapr
0d6349dbf4 Chore: fix regressions caused by rebase 2021-02-05 18:59:11 +00:00
Cesar
c16e47af96 Feat: change column "detail" in database to use jsonb 2021-02-05 18:59:11 +00:00
Cesar
d73520c0c0 Feat: save cash balance notifications in DB
Feat: add "detail" row in notifications table migration

This makes searching for specific notifications in the
code like cashbox number easier because we don't need
to scrub the notification message column anymore to search
for notifications relating the cashbox 1 for example.

Feat: clear notifications on cash cassette balance update
2021-02-05 18:59:11 +00:00
Cesar
c457faab40 Chore: make notification center UI
Chore: fiatBalancesNotify refactor

Chore: removed now-unused code in some files

Feat: change column "detail" in database to use jsonb

Chore: add notification center background and button

Chore: notifications screen scaffolding

Fix: change position of notification UI

Feat: join backend and frontend

Feat: notification icons and machine names

Feat: add clear all button, stripe overlay on invalid notification

Fix: rework notification styles

Feat: use popper to render notifications

Feat: make notification center UI

Fix: fix css on notification center

Fix: fix invalidateNotification

Chore: apply PR requested changes

Fix: PR fixes

Fix: make toggleable body/root styles be handled by react

Chore: delete old notifier file

Fix: undo variable name changes for cryptobalance notifs
2021-02-04 15:48:23 +00:00
Cesar
196a05549f Feat: save cash balance notifications in DB
Feat: add "detail" row in notifications table migration

This makes searching for specific notifications in the
code like cashbox number easier because we don't need
to scrub the notification message column anymore to search
for notifications relating the cashbox 1 for example.

Feat: clear notifications on cash cassette balance update
2021-02-04 15:48:23 +00:00
Sérgio Salgado
9808a67945 feat: add coin filtering to cashout polling 2021-01-18 15:31:20 +00:00
Taranto
1cc3c820b5 fix: pr fixes 2020-03-23 19:10:58 +01:00
Taranto
fa69d2a030 hotfix: add fudge factor 2020-03-23 19:10:58 +01:00
Taranto
47e5e95332 fix: prevent trading on tx rollback 2020-03-20 15:53:29 +01:00
Rafael Taranto
9ca3e88495 Add expired status to cash-out txs 2019-07-25 18:37:19 +01:00
Rafael Taranto
3dd7503e45 Fix ratchet errors on commission and ticker 2019-03-05 17:59:10 +01:00
Josh Harvey
e7ef9d0753 Merge in release and fix conflicts 2019-03-03 13:06:55 +01:00
Fabio Cigliano
578a39a721 log raw ticker price within tx 2019-03-02 14:40:29 +01:00
Fabio Cigliano
5815a606f2 rewoking getCommissionPercentage function 2019-03-02 14:40:29 +01:00
Fabio Cigliano
03279c8d2c tx.commission_percentage added 2019-03-02 14:40:29 +01:00
Rafael Taranto
9364eb5132 Fix cash-out exchange behavior for 'rejected' tx
A TX on the 'rejected' state should still be watched for authorization.

This fixes the bug where delayed cash-out confirmations would not
trigger a exchange sell command.
2019-03-02 14:28:27 +01:00
Rafael Taranto
809bf5a2a9 Add sms/email notifications on transactions (#198)
* Add sms/email notifications on transactions

* Add configuration for transaction notification

* Add notification on provision address error

* Remove unneeded noop from promises
2018-11-06 13:49:12 +01:00
Rafael Taranto
38aa006ecc Add device_id to cash_out_actions table (#164)
If a costumer originates a cashOut transaction at one device, and then
redeemed at a different device, the wrong machine would have bills debited from it.

With device_id being saved at the cash_out_actions table the bills can
be properly reconciled.
2018-09-22 23:38:31 +01:00
Rafael Taranto
1a8ef31d39 Add db error consts file (#165)
* Add db error consts file

* Fixed typo in comment
2018-09-22 23:38:31 +01:00
Rafael Taranto
4e287d1ecb Improve cash out monitor transaction handling (#159)
Made the queries from 'monitorLiveIncoming' and 'monitorStaleIncoming'
return mutually exclusive records from the db.

Both this methods are polled and perform the same actions on the
records. As a result, transaction erros were prone to happen.
2018-09-22 23:36:02 +01:00
Fabio Cigliano
f90357804a Dispense error status code fix (#142)
* 7.0.1

* add cash_out_txs.error_code to updateable fields
2018-08-24 17:30:25 +03:00
Josh Harvey
9d6f3e6d9b reduce stale tx period to 1 day 2018-06-17 11:48:53 +01:00
Josh Harvey
d1712ce1ce Add layer2 address separately 2018-06-04 16:34:46 +03:00