Commit Graph

344 Commits

Author SHA1 Message Date
e5fdd33a52 fix: Refactored and moved store ports into separate folder
- Added stats service
2025-10-29 01:33:50 +03:00
857212d9ba enetpulse fixture and result fixes 2025-10-28 13:35:36 +03:00
0ffba57ec5 feat: Refactor report generation and management
- Removed detailed event routes from the API.
- Added new report request routes for creating and fetching report requests.
- Introduced new domain models for report requests, including metadata and status handling.
- Implemented report request processing logic, including CSV generation for event interval reports.
- Enhanced company statistics handling with new domain models and service methods.
- Updated repository interfaces and implementations to support new report functionalities.
- Added error handling and logging for report file operations and notifications.
2025-10-28 00:51:52 +03:00
e98477d6cc virtual game provider report 2025-10-25 17:53:36 +03:00
18689ea124 feat: Add EventWithSettings domain model and related conversion functions
- Introduced EventWithSettings and EventWithSettingsRes structs for enhanced event data handling.
- Implemented conversion functions for creating and updating event settings.
- Added support for fetching events with settings from the database.
- Created new report data structures for comprehensive reporting capabilities.
- Implemented event statistics retrieval and filtering by league and sport.
- Added handlers for event statistics endpoints in the web server.
- Introduced DateInterval type for managing time intervals in reports.
2025-10-18 11:50:17 +03:00
e429810ebc Enetpulse fixture and preodds 2025-10-15 16:41:45 +03:00
9cb008225b Enetpulse fixes 2025-10-14 14:21:27 +03:00
a9025ca844 feat: Add number_of_outcomes to odds market queries and models
- Updated SQL queries to include number_of_outcomes in GetAllOdds, GetOddByID, GetOddsByEventID, and GetOddsByMarketID.
- Modified data structures in domain and repository layers to accommodate number_of_outcomes.
- Enhanced event models to track total odd outcomes.
- Introduced new SQL scripts for development data seeding.
2025-10-14 04:39:27 +03:00
3dfa1255b0 Refactor result notification service and remove redundant code
- Removed the CheckAndSendResultNotifications method from the result service.
- Consolidated notification logic into a new notification.go file.
- Updated email and in-app notification formatting to include event processing periods.
- Added error handling for wallet operations to check if wallets are active before processing transfers.
- Introduced new error for disabled wallets.
- Updated cron jobs to comment out unnecessary tasks.
- Added bulk update functionality for bet outcomes by odd IDs in the odd handler.
- Renamed ticket handler methods for clarity and consistency.
- Updated API version in routes.
2025-10-10 14:59:19 +03:00
80129828e0 fix: removed kafka and redis and added integration changes 2025-10-08 12:46:50 +03:00
5fc8540eda Merge remote-tracking branch 'refs/remotes/origin/main' 2025-10-07 13:41:13 +03:00
d997cde387 fix: integration fixes 2025-10-07 13:39:36 +03:00
Asher Samuel
62258b7ecb raffle ticket limit 2025-10-06 14:49:25 +03:00
c00110a503 feat: Enhance league, odds, events and bets functionality
- Updated league handling to ensure valid page size checks and improved error handling for sport ID parsing.
- Introduced new endpoint to update global league settings with comprehensive validation and error logging.
- Refactored odds settings management, including saving, removing, and updating odds settings with enhanced validation.
- Added tenant slug retrieval by token, ensuring proper user and company validation.
- Improved middleware to check for active company status and adjusted route permissions for various endpoints.
- Added SQL script to fix auto-increment desynchronization across multiple tables.
2025-10-05 23:45:31 +03:00
af7c792dee Enetpulse tournament+tournament_stages imlementations + mergeconflict fixes 2025-09-28 18:28:00 +03:00
76bf4ed75a Enetpulse tournament+tournament_stages imlementations 2025-09-28 18:26:34 +03:00
91c929c7a2 Merge remote-tracking branch 'refs/remotes/origin/main' 2025-09-25 21:27:36 +03:00
e49ff366d5 feat: Implement wallet notification system and refactor related services
- Added new notification handling in the wallet service to notify admins when wallet balances are low or insufficient.
- Created a new file for wallet notifications and moved relevant functions from the wallet service to this new file.
- Updated the wallet service to publish wallet events including wallet type.
- Refactored the client code to improve readability and maintainability.
- Enhanced the bet handler to support pagination and status filtering for bets.
- Updated routes and handlers for user search functionality to improve clarity and organization.
- Modified cron job scheduling to comment out unused jobs for clarity.
- Updated the WebSocket broadcast to include wallet type in notifications.
- Adjusted the makefile to include Kafka in the docker-compose setup for local development.
2025-09-25 21:26:24 +03:00
6ceff2843e enetpulse 1st phase repo and cron job implementation 2025-09-25 20:58:25 +03:00
01c7f98a72 Merge branch 'enetpulse' 2025-09-24 21:07:08 +03:00
Asher Samuel
34109b6af4 create raffle ticket with filter 2025-09-22 10:06:30 +03:00
Asher Samuel
ee27ec7f10 add raffle filters 2025-09-21 16:14:08 +03:00
6f5de3a0e5 merge with main 2025-09-18 22:36:30 +03:00
723ca34660 fix: fixed company override settings and raffle routes 2025-09-18 22:34:56 +03:00
3bcd880e90 fix: modified event_id so that its segregated from the betapi id 2025-09-17 20:17:56 +03:00
2875e9b85c fix: top-league not showing up 2025-09-17 15:43:27 +03:00
Asher Samuel
c8edbd07a5 resolve conflict 2025-09-13 21:22:27 +03:00
Asher Samuel
a5dfd6c70d raffle standing and winners per point 2025-09-13 21:06:56 +03:00
ab6c1acdc6 fix veli orchestration error 2025-09-12 20:56:07 +03:00
e5f42f1928 fix: refactor bonus and bonus settings; added welcome bonus 2025-09-12 16:28:39 +03:00
215eb5a1d8 fix: refactoring bonus 2025-09-10 23:27:11 +03:00
5595600ede fix: referral handlers and integration issues 2025-09-09 23:44:02 +03:00
266363a827 Merge branch 'main' into ticket-bet 2025-09-09 19:24:53 +03:00
Asher Samuel
e3a24d6bb1 resolve conflict 2025-09-09 15:24:20 +03:00
e229ac911e fix: refactoring referral 2025-09-08 17:05:09 +03:00
Asher Samuel
d78a100f27 raffle service implementation 2025-09-03 16:06:01 +03:00
6b09c3c8d2 fix: resolved issue on event, odds and creating a bet 2025-09-03 03:16:37 +03:00
6ecc6f0428 Refactor event and league domain models to include default settings, enhance odds handling, improve API routes, fixed get global settings and Incremented API version to 1.0.dev13. 2025-09-02 04:24:37 +03:00
Asher Samuel
89e3d7de78 raffle service structure 2025-09-01 23:47:27 +03:00
0b03bfaa42 Merge branch 'main' into ticket-bet 2025-08-31 13:32:45 +03:00
910d592bef fixes while integrating 2025-08-31 13:30:26 +03:00
fc49eefe40 list all and filter virtual games feature 2025-08-30 20:26:28 +03:00
42788e6f9f Merge branch 'main' into ticket-bet 2025-08-27 21:37:15 +03:00
70f33f1fa9 refresh providers list fix 2025-08-26 22:01:04 +03:00
858fd6ce24 virtual game orchestration 2025-08-26 21:07:12 +03:00
aaf14fedcf fix: global setting, company override settings, bet and ticket fixes for multi tenant 2025-08-25 07:23:55 +03:00
8ca4758917 Merge branch 'main' into ticket-bet 2025-08-23 21:56:31 +03:00
6d74cb8c28 feat: refactoring entire system to be multi-tenant 2025-08-22 12:54:48 +03:00
0779cd35fe report query fixes 2025-08-20 15:56:44 +03:00
6347984102 feat: custom odd and disabling odds 2025-08-19 17:15:31 +03:00
437780f3e9 Merge branch 'main' into ticket-bet 2025-08-18 18:49:58 +03:00
f1a4f5e6f9 Arifpay webhook fixes 2025-08-17 12:13:29 +03:00
5331798009 fix: disabling odds 2025-08-13 14:48:35 +03:00
5615c93fbb feat: added settings routes 2025-08-11 21:10:33 +03:00
696b713699 Merge branch 'main' into ticket-bet 2025-08-08 14:26:27 +03:00
c08b786803 feat: odd and event history 2025-08-07 19:04:54 +03:00
354989e6e1 Merge: resolved conflicts 2025-08-01 20:10:47 +03:00
5815381a21 santimpay + direct depoist 2025-08-01 20:08:57 +03:00
3fb3da6cc8 fix: result log and notification 2025-07-30 16:55:57 +03:00
7d8d824a94 fix: added loggers to the event and result service. Fixes to the notification 2025-07-28 20:35:06 +03:00
d43b12c589 integration issues 2025-07-22 17:39:53 +03:00
6e6ed2c9a9 fix: notifications for win bet and wallet balance low 2025-07-21 04:31:38 +03:00
65bd5ab3f5 fix: added wallet type to wallet and other minor fixes 2025-07-20 22:40:50 +03:00
Asher Samuel
f3e6e8c165 resolved conflict 2025-07-15 15:47:07 +03:00
Asher Samuel
1c3f575195 flag abused odd 2025-07-15 15:39:47 +03:00
Asher Samuel
f63e35fb4e flag multiple bets with same bet outcomes 2025-07-14 23:05:17 +03:00
472e4490f8 fix: web integration issues 2025-07-14 20:52:58 +03:00
Asher Samuel
e3545f3f8c flag too many outcomes 2025-07-14 19:30:37 +03:00
aa4bddef58 feat: branch location list 2025-07-13 13:46:38 +03:00
5614958c5b Merge branch 'ticket-bet' 2025-07-13 03:49:26 +03:00
c83130394b fix: version on route, better logs, error display, cleaning up code 2025-07-13 01:23:08 +03:00
2b9302b10b transaction maker-checker fixes 2025-07-11 15:48:59 +03:00
Asher Samuel
96ea2c8af4 optimizations for cashback 2025-07-10 15:21:34 +03:00
Asher Samuel
b84027ea04 cashback implementation 2025-07-10 08:25:30 +03:00
d1770eceb6 fix: refactored bet to remove unnecessary fields 2025-07-09 21:48:36 +03:00
Asher Samuel
ddf55763d2 fix: small bug 2025-07-04 16:31:42 +03:00
a06d77da01 fix: fixing issues on transaction 2025-07-04 00:09:03 +03:00
beea3ab54e Merge branch 'main' into ticket-bet 2025-07-02 19:41:55 +03:00
c2a9de6671 fix: company filter 2025-07-02 19:41:29 +03:00
c4328dedf0 fix: get bet using cashout id 2025-07-02 17:48:16 +03:00
Asher Samuel
d9f7cde114 create bet with fast code 2025-07-02 16:57:36 +03:00
d678b4e9d3 fix: refactored the transactions into shop_transactions 2025-07-02 03:19:59 +03:00
Asher Samuel
163dae4e44 create bet auto generates fast code 2025-07-01 23:28:07 +03:00
f27a75eb66 Merge branch 'main' into ticket-bet 2025-07-01 14:17:46 +03:00
3e9c707f00 fix: deposit for customer 2025-06-30 18:58:18 +03:00
Asher Samuel
52cfb809a9 referral amount limit 2025-06-30 18:16:07 +03:00
Asher Samuel
8218790292 control over referral settings 2025-06-30 12:23:14 +03:00
Asher Samuel
19b7a151d6 balance amount cap for deposit bonus 2025-06-29 22:57:50 +03:00
3e4e9eead7 fix: added message to wallet_transfers and gave it a detailed view 2025-06-29 21:51:23 +03:00
74941bc535 Merge branch 'main' into ticket-bet 2025-06-29 18:00:47 +03:00
10a49b4571 fix: added message to transfer and more filter routes 2025-06-29 18:00:23 +03:00
Asher Samuel
eca084f7f8 deposit bonus service 2025-06-28 20:43:17 +03:00
d6abaac828 Merge branch 'main' into ticket-bet 2025-06-25 22:48:59 +03:00
4d5c90ab05 feat: bet and branch filters, admin company, customer wallet 2025-06-25 22:47:06 +03:00
b1c3b73d9c issue reporting service 2025-06-24 18:45:34 +03:00
25230e3fcf fetch company and branch by wallet ID methods 2025-06-24 17:41:04 +03:00
bdf057e01d institution service + more PopOK callback 2025-06-22 21:49:16 +03:00
448d8c73c1 Merge branch 'main' into ticket-bet 2025-06-21 22:09:39 +03:00
12855f3690 CSV reports + live metrics + redis service 2025-06-21 21:48:11 +03:00
9ec7d0cfc1 feat: finished the setting service 2025-06-21 17:44:34 +03:00
1e49afc5ee Merge branch 'main' into ticket-bet 2025-06-19 19:12:32 +03:00
b0803c968a fix: moving ticket logic into service 2025-06-19 19:11:19 +03:00
b1a97bc31b game list 2025-06-19 15:04:23 +03:00
7c70b23a3d game list 2025-06-19 15:02:28 +03:00
1c7ae8232c fix: outcome and league optimization 2025-06-19 00:27:39 +03:00
76518fcbd1 Merge branch 'main' into ticket-bet 2025-06-17 20:36:12 +03:00
Asher Samuel
78d351cae9 bet on same bet only twice 2025-06-17 01:17:22 +03:00
cfced1951c Merge branch 'main' into ticket-bet 2025-06-16 21:34:34 +03:00
Asher Samuel
dc2144a91e resolve conflict 2025-06-16 20:04:28 +03:00
a5ea52b993 multi-currency support 2025-06-16 17:54:42 +03:00
1557a3141b fix: transfer not showing online bet issue 2025-06-16 16:24:42 +03:00
2a6e892f5e Merge branch 'main' into ticket-bet 2025-06-12 19:11:35 +03:00
c374fd7a96 feat: removing odds when event is removed 2025-06-12 19:09:19 +03:00
35a03e1959 Merge branch 'main' into ticket-bet 2025-06-12 14:10:13 +03:00
6d5bdd8a56 Chapa webhook + popok fix 2025-06-12 09:40:11 +03:00
edec72dfcd fix: fixed odd and issues while integrating 2025-06-11 23:01:30 +03:00
fbe2dfd5a3 fix: event and league disabling 2025-06-10 06:41:11 +03:00
8f2713b920 duplicate user creation fix + sender balance check during wallet refill 2025-06-09 21:33:58 +03:00
62f7dd24eb fix: integrating issues 2025-06-07 20:54:49 +03:00
0a668a65f1 report_service + wallet_monitoring 2025-06-07 17:52:17 +03:00
c22a1bd6c4 report_service + wallet_monitoring 2025-06-07 17:48:06 +03:00
73c1db14c1 Merge branch 'main' into ticket-bet 2025-06-07 08:15:17 +03:00
efc51e3b72 fix: result and event service fixes 2025-06-07 07:58:39 +03:00
Asher Samuel
9807e8ed14 handler for fetching leagues and update league status 2025-06-06 15:19:42 +03:00
Asher Samuel
d3506fd03a resolve conflict 2025-06-06 03:43:41 +03:00
Asher Samuel
aedefbdb0b league support check from db 2025-06-06 03:36:15 +03:00
bab1c6bb4c Merge branch 'main' into ticket-bet 2025-05-30 19:39:21 +03:00
542400bcaf feat: add the bet winning to user wallet 2025-05-30 19:38:59 +03:00
Asher Samuel
6d6b574c0b fix marge conflict 2025-05-30 01:12:08 +03:00
1b6fbebddf fix: get bet by users for online betting 2025-05-27 14:57:35 +03:00
eafd68d3c2 fix: restricting search 2025-05-23 21:43:34 +03:00
1be3ffdc3c fix: customer auth integration 2025-05-23 18:21:37 +03:00
Asher Samuel
11a70ec1dc fetch events from betfair 2025-05-23 13:09:44 +03:00
16768ad924 fix: Update integration issues 2025-05-23 12:00:04 +03:00
6a06b399c7 fix: notification integration issues 2025-05-22 00:15:30 +03:00
e838fea020 fix: get total 2025-05-20 05:21:04 +03:00
cdc40397b9 fix: date filter 2025-05-19 15:38:52 +03:00
4c6fb73342 integration issues 2025-05-16 22:38:10 +03:00
95fb33c9d4 fix: result service evaluation issues 2025-05-15 01:01:09 +03:00
b7b17fa8d2 create random bet 2025-05-08 07:29:00 +03:00
b4e20a274d basketball and fixes 2025-05-03 20:22:57 +03:00
ae571d51a6 fixed company-id, admin-id optional parameters for creating company and branch 2025-04-30 18:43:46 +03:00
98e30b5051 small fixes and getting it ready for deployment 2025-04-29 21:11:25 +03:00
9e4b0d9942 limiting the crons because of the request limit 2025-04-29 10:35:39 +03:00
e98d75f0bb Merge branch 'ticket-bet' 2025-04-28 20:57:41 +03:00
69c571ac5a fix: show company wallet 2025-04-28 20:21:53 +03:00
208a2d74be integration fixes 2025-04-26 14:48:45 +03:00
dawitel
acf54d4de7 feat: result checker fixed for market flags 2025-04-26 06:07:05 +03:00
Samuel Tariku
14de6859b3 adding result 2025-04-25 15:01:30 +03:00
fa3b6a24d3 Merge branch 'main' into feature/referal 2025-04-23 07:45:41 +03:00
8c536a6d2f company management 2025-04-23 03:44:17 +03:00
991199c3dc events pagination + ticket and bet validation 2025-04-22 03:20:52 +03:00
ff393858d9 Merge branch 'auth' into integrate 2025-04-14 19:49:45 +03:00
d5be4803ae fix market fetching 2025-04-14 19:48:22 +03:00
35b846bcc8 Merge remote-tracking branch 'refs/remotes/origin/auth' into auth 2025-04-14 19:31:05 +03:00
OneTap Technologies
1f154e9faf add filter by market id 2025-04-14 17:44:08 +03:00
OneTap Technologies
d416a40cae fix odd 2025-04-14 16:52:42 +03:00
b4a21a5ddb - 2025-04-14 07:59:23 +03:00
98cb576873 Merge remote-tracking branch 'refs/remotes/origin/auth' into auth 2025-04-13 13:37:13 +03:00
OneTap Technologies
b8d15695a4 adding fi 2025-04-13 10:55:16 +03:00
0879527c9d Merge remote-tracking branch 'refs/remotes/origin/auth' into auth 2025-04-12 16:29:19 +03:00
OneTap Technologies
6c478df2b4 adding upcoming data 2025-04-12 15:55:42 +03:00
OneTap Technologies
1726cfd63b adding upcoming 2025-04-12 14:43:09 +03:00
e7e87a4511 Merge remote-tracking branch 'refs/remotes/origin/auth' into auth 2025-04-12 13:58:33 +03:00
dawitel
02e6f6ee6f feat: popok itegratio 2025-04-12 10:06:56 +03:00
OneTap Technologies
aba4b89bb0 adding getby odd id 2025-04-12 09:27:41 +03:00
dawitel
8670fba6a4 feat: referal completed 2025-04-12 04:12:22 +03:00
dawitel
f796b97afe feat: referal completed 2025-04-12 03:27:50 +03:00
06c6325175 Merge branch 'auth' 2025-04-11 23:07:57 +03:00
1b0a068a02 major fixes while integrating 2025-04-11 21:46:48 +03:00
OneTap Technologies
b90fd84aba adding prematchodd 2025-04-11 17:04:25 +03:00
OneTap Technologies
a282080133 addign odd data 2025-04-11 15:12:55 +03:00
OneTap Technologies
1d6a533f7e addign odd 2025-04-11 13:57:32 +03:00
OneTap Technologies
92250d61a8 event and odd data 2025-04-10 16:42:26 +03:00
2163053d97 some changes 2025-04-10 16:06:05 +03:00
7dd6221f74 additions and small fixes 2025-04-09 15:33:51 +03:00
c9df0b3303 transfer and branch service implementation 2025-04-08 23:18:53 +03:00
cf0e4cba8b Merge branch 'wallet' 2025-04-07 03:47:12 +03:00
6f30fea12c branch management 2025-04-07 03:45:52 +03:00
49a97484c7 Merge branch 'wallet' 2025-04-05 10:37:04 +03:00
675597c093 wallets and transaction routes 2025-04-04 21:51:15 +03:00
7405023336 setting up the wallet service 2025-04-03 23:57:59 +03:00
dawitel
6b52d139d4 feat: admin side ntification creation handler added 2025-04-03 23:00:54 +03:00
cfb1e2b7fe Merge branch 'main' into feature/notification 2025-04-02 10:55:56 +03:00
dawitel
4b06c5386b feat: method impl added for the notfication 2025-04-01 22:10:15 +03:00
32ce4e2509 Merge remote-tracking branch 'origin' into ticket-bet 2025-04-01 22:05:32 +03:00
959390b506 feat: added bet and ticket handlers 2025-04-01 22:03:23 +03:00
lafetz
e105716f50 update db 2025-04-01 16:47:06 +03:00
0c38426549 Merge branch 'main' into ticket-bet 2025-03-31 15:05:20 +03:00
lafetz
ca7aa9d67c fix registration and password reset 2025-03-31 00:25:50 +03:00
60887accd2 bet and ticket crud 2025-03-29 19:11:31 +03:00
lafetz
c8b215cc43 impl auth http layer 2025-03-29 06:25:19 +03:00
731343feef ticket setup 2025-03-28 23:03:25 +03:00
lafetz
ab3f6d4313 init 2025-03-26 23:50:19 +03:00