mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDK

type SDK struct {
	mock.Mock
}

SDK is an autogenerated mock type for the SDK type

func NewSDK

func NewSDK(t interface {
	mock.TestingT
	Cleanup(func())
}) *SDK

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

func (_m *SDK) Token() (mpesa.TokenResp, error)

Token provides a mock function with given fields:

func (*SDK) TransactionStatus

func (_m *SDK) TransactionStatus(tReq mpesa.TransactionStatusReq) (mpesa.TransactionStatusResp, error)

TransactionStatus provides a mock function with given fields: tReq

Jump to

Keyboard shortcuts

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