Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MPayment ¶
type MPayment interface { CreditWallet(request MPaymentRequest) MPaymentResponse DebitWallet(request MPaymentRequest) MPaymentResponse }
type MPaymentRequest ¶
type MPaymentResponse ¶
type ProviderResponse ¶
type Request ¶
type Request struct { Name string `json:"name,omitempty"` MobileNumber string `json:"phoneNumber"` Amount float64 `json:"amount,omitempty"` MNO string `json:"mno,omitempty"` Type string `json:"type"` // contains filtered or unexported fields }
func NewReqeust ¶
func NewReqeust() *Request
func (*Request) GetNetwork ¶
func (*Request) GetReceiveToken ¶
func (*Request) GetReferenceID ¶
type Response ¶
func NewResponse ¶
func NewResponse(data ProviderResponse, err error) *Response
func (*Response) GetNetworkID ¶
func (*Response) GetResponseData ¶
func (response *Response) GetResponseData() interface{}
func (*Response) GetTransactionID ¶
type TransferRequest ¶
func NewTransferRequest ¶
func NewTransferRequest() *TransferRequest
Click to show internal directories.
Click to hide internal directories.