Documentation ¶
Overview ¶
Package merchant represents our merchant apis and especially types.
Index ¶
- type Service
- func (s *Service) Balance(c *gin.Context)
- func (s *Service) BillInquiry(c *gin.Context)
- func (s *Service) BillPayment(c *gin.Context)
- func (s *Service) CardTransfer(c *gin.Context)
- func (s *Service) CashIn(c *gin.Context)
- func (s *Service) CashOut(c *gin.Context)
- func (s *Service) ChangePIN(c *gin.Context)
- func (s *Service) EBS(c *gin.Context)
- func (s *Service) GenerateVoucher(c *gin.Context)
- func (s *Service) IsAlive(c *gin.Context)
- func (s *Service) IsAliveWrk(c *gin.Context)
- func (s *Service) MiniStatement(c *gin.Context)
- func (s *Service) Purchase(c *gin.Context)
- func (s *Service) Refund(c *gin.Context)
- func (s *Service) Statement(c *gin.Context)
- func (s *Service) ToAccount(c *gin.Context)
- func (s *Service) TopUpPayment(c *gin.Context)
- func (s *Service) VoucherCashIn(c *gin.Context)
- func (s *Service) VoucherCashOut(c *gin.Context)
- func (s *Service) WorkingKey(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Redis *redis.Client Db *gorm.DB IP string Logger *logrus.Logger NoebsConfig ebs_fields.NoebsConfig }
Service is a generic struct to hold all application-level data
func (*Service) BillInquiry ¶
func (*Service) BillPayment ¶
func (*Service) CardTransfer ¶
func (*Service) EBS ¶
EBS is an EBS compatible endpoint! Well. it really just works as a reverse proxy with db and nothing more!
func (*Service) GenerateVoucher ¶
GenerateVoucher for non-card based transactions
func (*Service) IsAliveWrk ¶
IsAliveWrk is for testing only. We want to bypass our middleware checks and move up directly to ebs FIXME #68
func (*Service) MiniStatement ¶
func (*Service) Refund ¶
Refund requests a refund for supported refund services in ebs merchant. Currnetly, it is not working FIXME issue #68
func (*Service) TopUpPayment ¶
TopUpPayment to perform electricity and telecos topups
func (*Service) VoucherCashIn ¶
VoucherCashIn for non-card based transactions
func (*Service) VoucherCashOut ¶
VoucherCashOut for non-card based transactions