Documentation ¶
Index ¶
- type FakeServiceEngagement
- func (f *FakeServiceEngagement) GenerateAndSendOTP(ctx context.Context, phone string, appID *string) (*profileutils.OtpResponse, error)
- func (f *FakeServiceEngagement) NotifyAdmins(ctx context.Context, input dto.EmailNotificationPayload) error
- func (f *FakeServiceEngagement) NotifySupplierOnSuspension(ctx context.Context, input dto.EmailNotificationPayload) error
- func (f *FakeServiceEngagement) PublishKYCFeedItem(ctx context.Context, uid string, payload feedlib.Item) (*http.Response, error)
- func (f *FakeServiceEngagement) PublishKYCNudge(ctx context.Context, uid string, payload feedlib.Nudge) (*http.Response, error)
- func (f *FakeServiceEngagement) ResolveDefaultNudgeByTitle(ctx context.Context, UID string, flavour feedlib.Flavour, nudgeTitle string) error
- func (f *FakeServiceEngagement) SendAlertToSupplier(ctx context.Context, input dto.EmailNotificationPayload) error
- func (f *FakeServiceEngagement) SendMail(ctx context.Context, email string, message string, subject string) error
- func (f *FakeServiceEngagement) SendRetryOTP(ctx context.Context, msisdn string, retryStep int, appID *string) (*profileutils.OtpResponse, error)
- func (f *FakeServiceEngagement) SendSMS(ctx context.Context, phoneNumbers []string, message string) error
- func (f *FakeServiceEngagement) VerifyEmailOTP(ctx context.Context, email, OTP string) (bool, error)
- func (f *FakeServiceEngagement) VerifyOTP(ctx context.Context, phone, OTP string) (bool, error)
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 ¶
func (f *FakeServiceEngagement) NotifyAdmins(ctx context.Context, input dto.EmailNotificationPayload) error
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 ...
Click to show internal directories.
Click to hide internal directories.