[PR #45] [MERGED] feat: system transfers (#44) #46

Closed
opened 2026-03-03 18:51:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/oxygenpay/oxygen/pull/45
Author: @swift1337
Created: 12/17/2023
Status: Merged
Merged: 12/17/2023
Merged by: @swift1337

Base: mainHead: develop


📝 Commits (2)

📊 Changes

20 files changed (+1052 additions, -33 deletions)

View changed files

cmd/list_balances.go (+89 -0)
📝 cmd/root.go (+4 -0)
cmd/topup_balance.go (+159 -0)
📝 internal/db/repository/balances.sql.go (+45 -0)
📝 internal/db/repository/helpers.go (+0 -1)
📝 internal/db/repository/querier.go (+1 -0)
📝 internal/money/money.go (+29 -7)
📝 internal/money/money_test.go (+23 -1)
📝 internal/service/payment/model.go (+2 -0)
📝 internal/service/payment/service.go (+74 -13)
internal/service/processing/service_topup.go (+118 -0)
internal/service/processing/service_topup_test.go (+156 -0)
📝 internal/service/transaction/model.go (+12 -3)
internal/service/transaction/service_topup.go (+132 -0)
📝 internal/service/transaction/service_update.go (+40 -1)
📝 internal/service/wallet/service_balance.go (+141 -0)
📝 internal/test/must.go (+1 -1)
📝 scripts/queries/balances.sql (+6 -0)
📝 ui-dashboard/src/components/payment-desc-card/payment-desc-card.tsx (+10 -1)
📝 ui-dashboard/src/pages/payments-page/payments-page.tsx (+10 -5)

📄 Description

  • Support for subtracting negative numbers

  • Add command for listing balances. Calculate system balances

  • Scaffold topup-balance command

  • Implement system topup feature

  • Wire cmd command; fix currency ticker for internal payments

  • Fix test cases

  • Fix money.String() for negative numbers


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/oxygenpay/oxygen/pull/45 **Author:** [@swift1337](https://github.com/swift1337) **Created:** 12/17/2023 **Status:** ✅ Merged **Merged:** 12/17/2023 **Merged by:** [@swift1337](https://github.com/swift1337) **Base:** `main` ← **Head:** `develop` --- ### 📝 Commits (2) - [`7dda6a1`](https://github.com/oxygenpay/oxygen/commit/7dda6a1527bbaad303843a4805e8ab01f49e4d4e) feat: system transfers (#44) - [`4ffa753`](https://github.com/oxygenpay/oxygen/commit/4ffa753c6aa999b22c5812dbeef00e9de910827d) Merge branch 'main' into develop ### 📊 Changes **20 files changed** (+1052 additions, -33 deletions) <details> <summary>View changed files</summary> ➕ `cmd/list_balances.go` (+89 -0) 📝 `cmd/root.go` (+4 -0) ➕ `cmd/topup_balance.go` (+159 -0) 📝 `internal/db/repository/balances.sql.go` (+45 -0) 📝 `internal/db/repository/helpers.go` (+0 -1) 📝 `internal/db/repository/querier.go` (+1 -0) 📝 `internal/money/money.go` (+29 -7) 📝 `internal/money/money_test.go` (+23 -1) 📝 `internal/service/payment/model.go` (+2 -0) 📝 `internal/service/payment/service.go` (+74 -13) ➕ `internal/service/processing/service_topup.go` (+118 -0) ➕ `internal/service/processing/service_topup_test.go` (+156 -0) 📝 `internal/service/transaction/model.go` (+12 -3) ➕ `internal/service/transaction/service_topup.go` (+132 -0) 📝 `internal/service/transaction/service_update.go` (+40 -1) 📝 `internal/service/wallet/service_balance.go` (+141 -0) 📝 `internal/test/must.go` (+1 -1) 📝 `scripts/queries/balances.sql` (+6 -0) 📝 `ui-dashboard/src/components/payment-desc-card/payment-desc-card.tsx` (+10 -1) 📝 `ui-dashboard/src/pages/payments-page/payments-page.tsx` (+10 -5) </details> ### 📄 Description * Support for subtracting negative numbers * Add command for listing balances. Calculate system balances * Scaffold topup-balance command * Implement system topup feature * Wire cmd command; fix currency ticker for internal payments * Fix test cases * Fix money.String() for negative numbers --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 18:51:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/oxygen#46
No description provided.