Documentation ¶
Index ¶
- type SDK
- func (_m *SDK) AccountBalance(abReq mpesa.AccountBalanceReq) (mpesa.AccountBalanceResp, error)
- func (_m *SDK) B2CPayment(b2cReq mpesa.B2CPaymentReq) (mpesa.B2CPaymentResp, error)
- func (_m *SDK) C2BRegisterURL(c2bReq mpesa.C2BRegisterURLReq) (mpesa.C2BRegisterURLResp, error)
- func (_m *SDK) C2BSimulate(c2bReq mpesa.C2BSimulateReq) (mpesa.C2BSimulateResp, error)
- func (_m *SDK) ExpressQuery(eqReq mpesa.ExpressQueryReq) (mpesa.ExpressQueryResp, error)
- func (_m *SDK) ExpressSimulate(eReq mpesa.ExpressSimulateReq) (mpesa.ExpressSimulateResp, error)
- func (_m *SDK) GenerateQR(qReq mpesa.GenerateQRReq) (mpesa.GenerateQRResp, error)
- func (_m *SDK) RemitTax(rReq mpesa.RemitTaxReq) (mpesa.RemitTaxResp, error)
- func (_m *SDK) Reverse(rReq mpesa.ReverseReq) (mpesa.ReverseResp, error)
- func (_m *SDK) Token() (mpesa.TokenResp, error)
- func (_m *SDK) TransactionStatus(tReq mpesa.TransactionStatusReq) (mpesa.TransactionStatusResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDK ¶
SDK is an autogenerated mock type for the SDK type
func NewSDK ¶
NewSDK creates a new instance of SDK. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SDK) AccountBalance ¶
func (_m *SDK) AccountBalance(abReq mpesa.AccountBalanceReq) (mpesa.AccountBalanceResp, error)
AccountBalance provides a mock function with given fields: abReq
func (*SDK) B2CPayment ¶
func (_m *SDK) B2CPayment(b2cReq mpesa.B2CPaymentReq) (mpesa.B2CPaymentResp, error)
B2CPayment provides a mock function with given fields: b2cReq
func (*SDK) C2BRegisterURL ¶
func (_m *SDK) C2BRegisterURL(c2bReq mpesa.C2BRegisterURLReq) (mpesa.C2BRegisterURLResp, error)
C2BRegisterURL provides a mock function with given fields: c2bReq
func (*SDK) C2BSimulate ¶
func (_m *SDK) C2BSimulate(c2bReq mpesa.C2BSimulateReq) (mpesa.C2BSimulateResp, error)
C2BSimulate provides a mock function with given fields: c2bReq
func (*SDK) ExpressQuery ¶
func (_m *SDK) ExpressQuery(eqReq mpesa.ExpressQueryReq) (mpesa.ExpressQueryResp, error)
ExpressQuery provides a mock function with given fields: eqReq
func (*SDK) ExpressSimulate ¶
func (_m *SDK) ExpressSimulate(eReq mpesa.ExpressSimulateReq) (mpesa.ExpressSimulateResp, error)
ExpressSimulate provides a mock function with given fields: eReq
func (*SDK) GenerateQR ¶
func (_m *SDK) GenerateQR(qReq mpesa.GenerateQRReq) (mpesa.GenerateQRResp, error)
GenerateQR provides a mock function with given fields: qReq
func (*SDK) RemitTax ¶
func (_m *SDK) RemitTax(rReq mpesa.RemitTaxReq) (mpesa.RemitTaxResp, error)
RemitTax provides a mock function with given fields: rReq
func (*SDK) Reverse ¶
func (_m *SDK) Reverse(rReq mpesa.ReverseReq) (mpesa.ReverseResp, error)
Reverse provides a mock function with given fields: rReq
func (*SDK) TransactionStatus ¶
func (_m *SDK) TransactionStatus(tReq mpesa.TransactionStatusReq) (mpesa.TransactionStatusResp, error)
TransactionStatus provides a mock function with given fields: tReq