mock

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeServiceEngagement

type FakeServiceEngagement struct {
	PublishKYCNudgeFn            func(ctx context.Context, uid string, payload feedlib.Nudge) (*http.Response, error)
	PublishKYCFeedItemFn         func(ctx context.Context, uid string, payload feedlib.Item) (*http.Response, error)
	ResolveDefaultNudgeByTitleFn func(ctx context.Context, UID string, flavour feedlib.Flavour, nudgeTitle string) error
	SendMailFn                   func(ctx context.Context, email string, message string, subject string) error
	SendAlertToSupplierFn        func(ctx context.Context, input dto.EmailNotificationPayload) error
	NotifySupplierOnSuspensionFn func(ctx context.Context, input dto.EmailNotificationPayload) error
	NotifyAdminsFn               func(ctx context.Context, input dto.EmailNotificationPayload) error
	GenerateAndSendOTPFn         func(
		ctx context.Context,
		phone string,
		appID *string,
	) (*profileutils.OtpResponse, error)

	SendRetryOTPFn func(
		ctx context.Context,
		msisdn string,
		retryStep int,
		appID *string,
	) (*profileutils.OtpResponse, error)

	VerifyOTPFn func(ctx context.Context, phone, OTP string) (bool, error)

	VerifyEmailOTPFn func(ctx context.Context, email, OTP string) (bool, error)

	SendSMSFn func(ctx context.Context, phoneNumbers []string, message string) error
}

FakeServiceEngagement is an `engagement` service mock .

func (*FakeServiceEngagement) GenerateAndSendOTP

func (f *FakeServiceEngagement) GenerateAndSendOTP(
	ctx context.Context,
	phone string,
	appID *string,
) (*profileutils.OtpResponse, error)

GenerateAndSendOTP ...

func (*FakeServiceEngagement) NotifyAdmins

NotifyAdmins ...

func (*FakeServiceEngagement) NotifySupplierOnSuspension

func (f *FakeServiceEngagement) NotifySupplierOnSuspension(ctx context.Context, input dto.EmailNotificationPayload) error

NotifySupplierOnSuspension ...

func (*FakeServiceEngagement) PublishKYCFeedItem

func (f *FakeServiceEngagement) PublishKYCFeedItem(
	ctx context.Context,
	uid string,
	payload feedlib.Item,
) (*http.Response, error)

PublishKYCFeedItem ...

func (*FakeServiceEngagement) PublishKYCNudge

func (f *FakeServiceEngagement) PublishKYCNudge(
	ctx context.Context,
	uid string,
	payload feedlib.Nudge,
) (*http.Response, error)

PublishKYCNudge ...

func (*FakeServiceEngagement) ResolveDefaultNudgeByTitle

func (f *FakeServiceEngagement) ResolveDefaultNudgeByTitle(
	ctx context.Context,
	UID string,
	flavour feedlib.Flavour,
	nudgeTitle string,
) error

ResolveDefaultNudgeByTitle ...

func (*FakeServiceEngagement) SendAlertToSupplier

func (f *FakeServiceEngagement) SendAlertToSupplier(ctx context.Context, input dto.EmailNotificationPayload) error

SendAlertToSupplier ...

func (*FakeServiceEngagement) SendMail

func (f *FakeServiceEngagement) SendMail(
	ctx context.Context,
	email string,
	message string,
	subject string,
) error

SendMail ...

func (*FakeServiceEngagement) SendRetryOTP

func (f *FakeServiceEngagement) SendRetryOTP(
	ctx context.Context,
	msisdn string,
	retryStep int,
	appID *string,
) (*profileutils.OtpResponse, error)

SendRetryOTP ...

func (*FakeServiceEngagement) SendSMS

func (f *FakeServiceEngagement) SendSMS(ctx context.Context, phoneNumbers []string, message string) error

SendSMS ...

func (*FakeServiceEngagement) VerifyEmailOTP

func (f *FakeServiceEngagement) VerifyEmailOTP(ctx context.Context, email, OTP string) (bool, error)

VerifyEmailOTP ...

func (*FakeServiceEngagement) VerifyOTP

func (f *FakeServiceEngagement) VerifyOTP(ctx context.Context, phone, OTP string) (bool, error)

VerifyOTP ...

Jump to

Keyboard shortcuts

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