Documentation
¶
Index ¶
- type TransactionHandler
- func (h *TransactionHandler) AutoCategorizeTransaction(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) CompleteUPIDeposit(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) CreateDeposit(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) CreateTransfer(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) CreateWithdrawal(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) ExportStatementCSV(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) ExportStatementPDF(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) GetSpendingSummary(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) GetStatementJSON(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) GetTransaction(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) InitiateUPIDeposit(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) ListWalletTransactions(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) ProcessTransfer(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) ReverseTransaction(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) SearchAllTransactions(w http.ResponseWriter, r *http.Request)
- func (h *TransactionHandler) UpdateTransactionCategory(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionHandler ¶
type TransactionHandler struct {
// contains filtered or unexported fields
}
TransactionHandler handles HTTP requests for transaction operations.
func NewTransactionHandler ¶
func NewTransactionHandler(transactionService *service.TransactionService, walletClient *service.WalletClient) *TransactionHandler
NewTransactionHandler creates a new transaction handler.
func (*TransactionHandler) AutoCategorizeTransaction ¶
func (h *TransactionHandler) AutoCategorizeTransaction(w http.ResponseWriter, r *http.Request)
AutoCategorizeTransaction handles POST /api/v1/transactions/:id/auto-categorize
func (*TransactionHandler) CompleteUPIDeposit ¶
func (h *TransactionHandler) CompleteUPIDeposit(w http.ResponseWriter, r *http.Request)
CompleteUPIDeposit handles POST /api/v1/transactions/deposit/upi/complete
func (*TransactionHandler) CreateDeposit ¶
func (h *TransactionHandler) CreateDeposit(w http.ResponseWriter, r *http.Request)
CreateDeposit handles POST /api/v1/transactions/deposit
func (*TransactionHandler) CreateTransfer ¶
func (h *TransactionHandler) CreateTransfer(w http.ResponseWriter, r *http.Request)
CreateTransfer handles POST /api/v1/transactions/transfer
func (*TransactionHandler) CreateWithdrawal ¶
func (h *TransactionHandler) CreateWithdrawal(w http.ResponseWriter, r *http.Request)
CreateWithdrawal handles POST /api/v1/transactions/withdrawal
func (*TransactionHandler) ExportStatementCSV ¶
func (h *TransactionHandler) ExportStatementCSV(w http.ResponseWriter, r *http.Request)
ExportStatementCSV handles GET /api/v1/wallets/:walletId/statements/csv
func (*TransactionHandler) ExportStatementPDF ¶
func (h *TransactionHandler) ExportStatementPDF(w http.ResponseWriter, r *http.Request)
ExportStatementPDF handles GET /api/v1/wallets/:walletId/statements/pdf
func (*TransactionHandler) GetSpendingSummary ¶
func (h *TransactionHandler) GetSpendingSummary(w http.ResponseWriter, r *http.Request)
GetSpendingSummary handles GET /api/v1/wallets/:walletId/spending-summary
func (*TransactionHandler) GetStatementJSON ¶
func (h *TransactionHandler) GetStatementJSON(w http.ResponseWriter, r *http.Request)
GetStatementJSON handles GET /api/v1/wallets/:walletId/statements/json Returns statement data in JSON format for frontend rendering
func (*TransactionHandler) GetTransaction ¶
func (h *TransactionHandler) GetTransaction(w http.ResponseWriter, r *http.Request)
GetTransaction handles GET /api/v1/transactions/:id
func (*TransactionHandler) InitiateUPIDeposit ¶
func (h *TransactionHandler) InitiateUPIDeposit(w http.ResponseWriter, r *http.Request)
InitiateUPIDeposit handles POST /api/v1/transactions/deposit/upi
func (*TransactionHandler) ListWalletTransactions ¶
func (h *TransactionHandler) ListWalletTransactions(w http.ResponseWriter, r *http.Request)
ListWalletTransactions handles GET /api/v1/wallets/:walletId/transactions
func (*TransactionHandler) ProcessTransfer ¶
func (h *TransactionHandler) ProcessTransfer(w http.ResponseWriter, r *http.Request)
ProcessTransfer handles POST /internal/v1/transactions/:id/process (internal endpoint) This endpoint processes a pending transfer transaction by executing the wallet-to-wallet transfer.
func (*TransactionHandler) ReverseTransaction ¶
func (h *TransactionHandler) ReverseTransaction(w http.ResponseWriter, r *http.Request)
ReverseTransaction handles POST /api/v1/transactions/:id/reverse
func (*TransactionHandler) SearchAllTransactions ¶
func (h *TransactionHandler) SearchAllTransactions(w http.ResponseWriter, r *http.Request)
SearchAllTransactions handles GET /api/v1/admin/transactions/search (admin operation)
func (*TransactionHandler) UpdateTransactionCategory ¶
func (h *TransactionHandler) UpdateTransactionCategory(w http.ResponseWriter, r *http.Request)
UpdateTransactionCategory handles PATCH /api/v1/transactions/:id/category