mock

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 3 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 {
	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
	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) ResolveDefaultNudgeByTitle

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

ResolveDefaultNudgeByTitle ...

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