[PR #44] [MERGED] feat: system transfers #44

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/44
Author: @swift1337
Created: 12/17/2023
Status: Merged
Merged: 12/17/2023
Merged by: @swift1337

Base: developHead: feat/system-transfer


📝 Commits (7)

  • 8eeb76a Support for subtracting negative numbers
  • d798378 Add command for listing balances. Calculate system balances
  • da13f41 Scaffold topup-balance command
  • 2d004fe Implement system topup feature
  • c9ed558 Wire cmd command; fix currency ticker for internal payments
  • a08c221 Fix test cases
  • 8019fb6 Fix money.String() for negative numbers

📊 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

No description provided


🔄 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/44 **Author:** [@swift1337](https://github.com/swift1337) **Created:** 12/17/2023 **Status:** ✅ Merged **Merged:** 12/17/2023 **Merged by:** [@swift1337](https://github.com/swift1337) **Base:** `develop` ← **Head:** `feat/system-transfer` --- ### 📝 Commits (7) - [`8eeb76a`](https://github.com/oxygenpay/oxygen/commit/8eeb76a41575f15454656390e64049fd43aac671) Support for subtracting negative numbers - [`d798378`](https://github.com/oxygenpay/oxygen/commit/d7983783fd10f49d4070e02b2358ae4f87e102e3) Add command for listing balances. Calculate system balances - [`da13f41`](https://github.com/oxygenpay/oxygen/commit/da13f41cde1f2e7333332ddffe2383bf42f070e0) Scaffold topup-balance command - [`2d004fe`](https://github.com/oxygenpay/oxygen/commit/2d004fe17ef86778d6bf3e52b7e26b7fc0d62dd8) Implement system topup feature - [`c9ed558`](https://github.com/oxygenpay/oxygen/commit/c9ed558692c045134eb453ac7c339c6cf3fc75b3) Wire cmd command; fix currency ticker for internal payments - [`a08c221`](https://github.com/oxygenpay/oxygen/commit/a08c2217a6e4b9c6f71959f78d4a1752f99825c6) Fix test cases - [`8019fb6`](https://github.com/oxygenpay/oxygen/commit/8019fb6e8c0d3b4b6944f8286799d85b1716f3ae) Fix money.String() for negative numbers ### 📊 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 _No description provided_ --- <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#44
No description provided.