merchant

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package merchant represents our merchant apis and especially types.

Index

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) Balance

func (s *Service) Balance(c *gin.Context)

func (*Service) BillInquiry

func (s *Service) BillInquiry(c *gin.Context)

func (*Service) BillPayment

func (s *Service) BillPayment(c *gin.Context)

func (*Service) CardTransfer

func (s *Service) CardTransfer(c *gin.Context)

func (*Service) CashIn

func (s *Service) CashIn(c *gin.Context)

func (*Service) CashOut

func (s *Service) CashOut(c *gin.Context)

func (*Service) ChangePIN

func (s *Service) ChangePIN(c *gin.Context)

func (*Service) EBS

func (s *Service) EBS(c *gin.Context)

EBS is an EBS compatible endpoint! Well. it really just works as a reverse proxy with db and nothing more!

func (*Service) GenerateVoucher

func (s *Service) GenerateVoucher(c *gin.Context)

GenerateVoucher for non-card based transactions

func (*Service) IsAlive

func (s *Service) IsAlive(c *gin.Context)

func (*Service) IsAliveWrk

func (s *Service) IsAliveWrk(c *gin.Context)

IsAliveWrk is for testing only. We want to bypass our middleware checks and move up directly to ebs FIXME #68

func (*Service) MiniStatement

func (s *Service) MiniStatement(c *gin.Context)

func (*Service) Purchase

func (s *Service) Purchase(c *gin.Context)

func (*Service) Refund

func (s *Service) Refund(c *gin.Context)

Refund requests a refund for supported refund services in ebs merchant. Currnetly, it is not working FIXME issue #68

func (*Service) Statement

func (s *Service) Statement(c *gin.Context)

Statement for non-card based transactions

func (*Service) ToAccount

func (s *Service) ToAccount(c *gin.Context)

func (*Service) TopUpPayment

func (s *Service) TopUpPayment(c *gin.Context)

TopUpPayment to perform electricity and telecos topups

func (*Service) VoucherCashIn

func (s *Service) VoucherCashIn(c *gin.Context)

VoucherCashIn for non-card based transactions

func (*Service) VoucherCashOut

func (s *Service) VoucherCashOut(c *gin.Context)

VoucherCashOut for non-card based transactions

func (*Service) WorkingKey

func (s *Service) WorkingKey(c *gin.Context)

Jump to

Keyboard shortcuts

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