handler

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeneficiaryHandler

type BeneficiaryHandler struct {
	// contains filtered or unexported fields
}

BeneficiaryHandler handles HTTP requests for beneficiary operations.

func NewBeneficiaryHandler

func NewBeneficiaryHandler(beneficiaryService *service.BeneficiaryService) *BeneficiaryHandler

NewBeneficiaryHandler creates a new beneficiary handler.

func (*BeneficiaryHandler) AddBeneficiary

func (h *BeneficiaryHandler) AddBeneficiary(w http.ResponseWriter, r *http.Request)

AddBeneficiary handles POST /api/v1/beneficiaries

func (*BeneficiaryHandler) DeleteBeneficiary

func (h *BeneficiaryHandler) DeleteBeneficiary(w http.ResponseWriter, r *http.Request)

DeleteBeneficiary handles DELETE /api/v1/beneficiaries/:id

func (*BeneficiaryHandler) GetBeneficiary

func (h *BeneficiaryHandler) GetBeneficiary(w http.ResponseWriter, r *http.Request)

GetBeneficiary handles GET /api/v1/beneficiaries/:id

func (*BeneficiaryHandler) ListBeneficiaries

func (h *BeneficiaryHandler) ListBeneficiaries(w http.ResponseWriter, r *http.Request)

ListBeneficiaries handles GET /api/v1/beneficiaries

func (*BeneficiaryHandler) UpdateBeneficiary

func (h *BeneficiaryHandler) UpdateBeneficiary(w http.ResponseWriter, r *http.Request)

UpdateBeneficiary handles PUT /api/v1/beneficiaries/:id

type UPIDepositHandler

type UPIDepositHandler struct {
	// contains filtered or unexported fields
}

UPIDepositHandler handles HTTP requests for UPI deposit operations.

func NewUPIDepositHandler

func NewUPIDepositHandler(upiService *service.UPIDepositService) *UPIDepositHandler

NewUPIDepositHandler creates a new UPI deposit handler.

func (*UPIDepositHandler) GetDeposit

func (h *UPIDepositHandler) GetDeposit(w http.ResponseWriter, r *http.Request)

GetDeposit handles GET /api/v1/deposits/upi/{id}

func (*UPIDepositHandler) GetWalletUPIDetails

func (h *UPIDepositHandler) GetWalletUPIDetails(w http.ResponseWriter, r *http.Request)

GetWalletUPIDetails handles GET /api/v1/wallets/{id}/upi

func (*UPIDepositHandler) InitiateDeposit

func (h *UPIDepositHandler) InitiateDeposit(w http.ResponseWriter, r *http.Request)

InitiateDeposit handles POST /api/v1/wallets/{id}/deposit/upi

func (*UPIDepositHandler) ListDeposits

func (h *UPIDepositHandler) ListDeposits(w http.ResponseWriter, r *http.Request)

ListDeposits handles GET /api/v1/deposits/upi

type VirtualCardHandler

type VirtualCardHandler struct {
	// contains filtered or unexported fields
}

VirtualCardHandler handles HTTP requests for virtual card operations.

func NewVirtualCardHandler

func NewVirtualCardHandler(cardService *service.VirtualCardService) *VirtualCardHandler

NewVirtualCardHandler creates a new virtual card handler.

func (*VirtualCardHandler) CancelCard

func (h *VirtualCardHandler) CancelCard(w http.ResponseWriter, r *http.Request)

CancelCard handles DELETE /api/v1/cards/:id

func (*VirtualCardHandler) CreateCard

func (h *VirtualCardHandler) CreateCard(w http.ResponseWriter, r *http.Request)

CreateCard handles POST /api/v1/wallets/:walletId/cards

func (*VirtualCardHandler) FreezeCard

func (h *VirtualCardHandler) FreezeCard(w http.ResponseWriter, r *http.Request)

FreezeCard handles POST /api/v1/cards/:id/freeze

func (*VirtualCardHandler) GetCard

GetCard handles GET /api/v1/cards/:id

func (*VirtualCardHandler) ListCards

func (h *VirtualCardHandler) ListCards(w http.ResponseWriter, r *http.Request)

ListCards handles GET /api/v1/wallets/:walletId/cards

func (*VirtualCardHandler) RevealCardDetails

func (h *VirtualCardHandler) RevealCardDetails(w http.ResponseWriter, r *http.Request)

RevealCardDetails handles GET /api/v1/cards/:id/reveal

func (*VirtualCardHandler) UnfreezeCard

func (h *VirtualCardHandler) UnfreezeCard(w http.ResponseWriter, r *http.Request)

UnfreezeCard handles POST /api/v1/cards/:id/unfreeze

func (*VirtualCardHandler) UpdateCardLimits

func (h *VirtualCardHandler) UpdateCardLimits(w http.ResponseWriter, r *http.Request)

UpdateCardLimits handles PATCH /api/v1/cards/:id/limits

type WalletHandler

type WalletHandler struct {
	// contains filtered or unexported fields
}

WalletHandler handles HTTP requests for wallet operations.

func NewWalletHandler

func NewWalletHandler(walletService *service.WalletService) *WalletHandler

NewWalletHandler creates a new wallet handler.

func (*WalletHandler) ActivateWallet

func (h *WalletHandler) ActivateWallet(w http.ResponseWriter, r *http.Request)

ActivateWallet handles POST /api/v1/wallets/:id/activate

func (*WalletHandler) CloseWallet

func (h *WalletHandler) CloseWallet(w http.ResponseWriter, r *http.Request)

CloseWallet handles POST /api/v1/wallets/:id/close

func (*WalletHandler) CreateWallet

func (h *WalletHandler) CreateWallet(w http.ResponseWriter, r *http.Request)

CreateWallet handles POST /api/v1/wallets

func (*WalletHandler) CreateWalletInternal

func (h *WalletHandler) CreateWalletInternal(w http.ResponseWriter, r *http.Request)

CreateWalletInternal handles POST /internal/v1/wallets (internal endpoint) This endpoint is called by the identity service to create wallets during user registration.

func (*WalletHandler) FreezeWallet

func (h *WalletHandler) FreezeWallet(w http.ResponseWriter, r *http.Request)

FreezeWallet handles POST /api/v1/wallets/:id/freeze

func (*WalletHandler) GetWallet

func (h *WalletHandler) GetWallet(w http.ResponseWriter, r *http.Request)

GetWallet handles GET /api/v1/wallets/:id

func (*WalletHandler) GetWalletBalance

func (h *WalletHandler) GetWalletBalance(w http.ResponseWriter, r *http.Request)

GetWalletBalance handles GET /api/v1/wallets/:id/balance

func (*WalletHandler) GetWalletInfo

func (h *WalletHandler) GetWalletInfo(w http.ResponseWriter, r *http.Request)

GetWalletInfo handles GET /internal/v1/wallets/:id/info (internal endpoint) This endpoint returns wallet information including ownership for authorization checks.

func (*WalletHandler) GetWalletLimits

func (h *WalletHandler) GetWalletLimits(w http.ResponseWriter, r *http.Request)

GetWalletLimits handles GET /api/v1/wallets/:id/limits

func (*WalletHandler) ListMyWallets

func (h *WalletHandler) ListMyWallets(w http.ResponseWriter, r *http.Request)

ListMyWallets handles GET /api/v1/wallets - lists wallets for authenticated user

func (*WalletHandler) ListUserWallets

func (h *WalletHandler) ListUserWallets(w http.ResponseWriter, r *http.Request)

ListUserWallets handles GET /api/v1/users/:userId/wallets

func (*WalletHandler) ProcessDeposit

func (h *WalletHandler) ProcessDeposit(w http.ResponseWriter, r *http.Request)

ProcessDeposit handles POST /internal/v1/wallets/deposit (internal endpoint) This endpoint is called by the transaction service to credit deposits to wallets.

func (*WalletHandler) ProcessTransfer

func (h *WalletHandler) ProcessTransfer(w http.ResponseWriter, r *http.Request)

ProcessTransfer handles POST /internal/v1/wallets/transfer (internal endpoint) This endpoint is called by the transaction service to execute wallet-to-wallet transfers.

func (*WalletHandler) UnfreezeWallet

func (h *WalletHandler) UnfreezeWallet(w http.ResponseWriter, r *http.Request)

UnfreezeWallet handles POST /api/v1/wallets/:id/unfreeze

func (*WalletHandler) UpdateWalletLimits

func (h *WalletHandler) UpdateWalletLimits(w http.ResponseWriter, r *http.Request)

UpdateWalletLimits handles PUT /api/v1/wallets/:id/limits

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL