Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTransactionResponse ¶
type CreateTransactionResponse struct {
Transaction Transaction `json:"transaction"`
}
type CreateWalletRequest ¶
type CreateWalletResponse ¶
type CreateWalletResponse struct {
Wallet Wallet `json:"wallet"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type Transaction ¶
type Transaction struct { ID int64 `json:"id"` TransactionRef string `json:"transaction_ref"` TransactionType string `json:"transaction_type"` Amount string `json:"amount"` Secretkey string `json:"secretkey"` TransactionStatus string `json:"transaction_status"` TransactionDescription string `json:"transaction_description"` WalletID int32 `json:"wallet_id"` }
type TransactionHandler ¶
type TransactionHandler struct {
// contains filtered or unexported fields
}
func NewTransactionHandler ¶
func NewTransactionHandler(svc TransactionService) *TransactionHandler
func (*TransactionHandler) Register ¶
func (t *TransactionHandler) Register(r *mux.Router)
type TransactionService ¶
type TransactionService interface {
Create(ctx context.Context, transactionRef string, transactionType string, amount string, secretkey string, transactionStatus string, transactionDescription string, walletID int32) (internal.Transaction, error)
}
TransactionService ...
type UpdateWalletRequest ¶
type UpdateWalletRequest struct {
IsActive string `json:"is_active"`
}
type Wallet ¶
type Wallet struct { ID int64 `json:"id"` WalletNumber string `json:"wallet_number"` IsActive string `json:"is_active"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` Secretkey string `json:"secretkey"` Bvn string `json:"bvn"` Currency string `json:"currency"` }
type WalletHandler ¶
type WalletHandler struct {
// contains filtered or unexported fields
}
func NewWalletHandler ¶
func NewWalletHandler(svc WalletService) *WalletHandler
func (*WalletHandler) Register ¶
func (w *WalletHandler) Register(r *mux.Router)
type WalletService ¶
Click to show internal directories.
Click to hide internal directories.