mock

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 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 FakeServiceWhatsapp

type FakeServiceWhatsapp struct {
	PhoneNumberVerificationCodeFn func(
		ctx context.Context,
		to string,
		code string,
		marketingMessage string,
	) (bool, error)

	WellnessCardActivationDependantFn func(
		ctx context.Context,
		to string,
		memberName string,
		cardName string,
		marketingMessage string,
	) (bool, error)

	WellnessCardActivationPrincipalFn func(
		ctx context.Context,
		to string,
		memberName string,
		cardName string,
		minorAgeThreshold string,
		marketingMessage string,
	) (bool, error)

	BillNotificationFn func(
		ctx context.Context,
		to string,
		productName string,
		billingPeriod string,
		billAmount string,
		paymentInstruction string,
		marketingMessage string,
	) (bool, error)

	VirtualCardsFn func(
		ctx context.Context,
		to string,
		wellnessCardFamily string,
		virtualCardLink string,
		marketingMessage string,
	) (bool, error)

	VisitStartFn func(
		ctx context.Context,
		to string,
		memberName string,
		benefitName string,
		locationName string,
		startTime string,
		balance string,
		marketingMessage string,
	) (bool, error)

	ClaimNotificationFn func(
		ctx context.Context,
		to string,
		claimReference string,
		claimTypeParenthesized string,
		provider string,
		visitType string,
		claimTime string,
		marketingMessage string,
	) (bool, error)

	PreauthApprovalFn func(
		ctx context.Context,
		to string,
		currency string,
		amount string,
		benefit string,
		provider string,
		member string,
		careContact string,
		marketingMessage string,
	) (bool, error)

	PreauthRequestFn func(
		ctx context.Context,
		to string,
		currency string,
		amount string,
		benefit string,
		provider string,
		requestTime string,
		member string,
		careContact string,
		marketingMessage string,
	) (bool, error)

	SladeOTPFn func(
		ctx context.Context,
		to string,
		name string,
		otp string,
		marketingMessage string,
	) (bool, error)

	SaveTwilioCallbackResponseFn func(
		ctx context.Context,
		data dto.Message,
	) error

	MakeTwilioRequestFn func(
		ctx context.Context,
		method string,
		urlPath string,
		content url.Values,
		target interface{},
	) error

	TemporaryPINFn func(
		ctx context.Context,
		to string,
		message string,
	) (bool, error)
}

FakeServiceWhatsapp defines the interactions with the whatsapp service

func (*FakeServiceWhatsapp) BillNotification

func (f *FakeServiceWhatsapp) BillNotification(
	ctx context.Context,
	to string,
	productName string,
	billingPeriod string,
	billAmount string,
	paymentInstruction string,
	marketingMessage string,
) (bool, error)

BillNotification ...

func (*FakeServiceWhatsapp) ClaimNotification

func (f *FakeServiceWhatsapp) ClaimNotification(
	ctx context.Context,
	to string,
	claimReference string,
	claimTypeParenthesized string,
	provider string,
	visitType string,
	claimTime string,
	marketingMessage string,
) (bool, error)

ClaimNotification ...

func (*FakeServiceWhatsapp) MakeTwilioRequest

func (f *FakeServiceWhatsapp) MakeTwilioRequest(
	ctx context.Context,
	method string,
	urlPath string,
	content url.Values,
	target interface{},
) error

MakeTwilioRequest ...

func (*FakeServiceWhatsapp) PhoneNumberVerificationCode

func (f *FakeServiceWhatsapp) PhoneNumberVerificationCode(
	ctx context.Context,
	to string,
	code string,
	marketingMessage string,
) (bool, error)

PhoneNumberVerificationCode ...

func (*FakeServiceWhatsapp) PreauthApproval

func (f *FakeServiceWhatsapp) PreauthApproval(
	ctx context.Context,
	to string,
	currency string,
	amount string,
	benefit string,
	provider string,
	member string,
	careContact string,
	marketingMessage string,
) (bool, error)

PreauthApproval ...

func (*FakeServiceWhatsapp) PreauthRequest

func (f *FakeServiceWhatsapp) PreauthRequest(
	ctx context.Context,
	to string,
	currency string,
	amount string,
	benefit string,
	provider string,
	requestTime string,
	member string,
	careContact string,
	marketingMessage string,
) (bool, error)

PreauthRequest ...

func (*FakeServiceWhatsapp) SaveTwilioCallbackResponse

func (f *FakeServiceWhatsapp) SaveTwilioCallbackResponse(
	ctx context.Context,
	data dto.Message,
) error

SaveTwilioCallbackResponse ...

func (*FakeServiceWhatsapp) SladeOTP

func (f *FakeServiceWhatsapp) SladeOTP(
	ctx context.Context,
	to string,
	name string,
	otp string,
	marketingMessage string,
) (bool, error)

SladeOTP ...

func (*FakeServiceWhatsapp) TemporaryPIN

func (f *FakeServiceWhatsapp) TemporaryPIN(
	ctx context.Context,
	to string,
	message string,
) (bool, error)

TemporaryPIN ...

func (*FakeServiceWhatsapp) VirtualCards

func (f *FakeServiceWhatsapp) VirtualCards(
	ctx context.Context,
	to string,
	wellnessCardFamily string,
	virtualCardLink string,
	marketingMessage string,
) (bool, error)

VirtualCards ...

func (*FakeServiceWhatsapp) VisitStart

func (f *FakeServiceWhatsapp) VisitStart(
	ctx context.Context,
	to string,
	memberName string,
	benefitName string,
	locationName string,
	startTime string,
	balance string,
	marketingMessage string,
) (bool, error)

VisitStart ...

func (*FakeServiceWhatsapp) WellnessCardActivationDependant

func (f *FakeServiceWhatsapp) WellnessCardActivationDependant(
	ctx context.Context,
	to string,
	memberName string,
	cardName string,
	marketingMessage string,
) (bool, error)

WellnessCardActivationDependant ...

func (*FakeServiceWhatsapp) WellnessCardActivationPrincipal

func (f *FakeServiceWhatsapp) WellnessCardActivationPrincipal(
	ctx context.Context,
	to string,
	memberName string,
	cardName string,
	minorAgeThreshold string,
	marketingMessage string,
) (bool, error)

WellnessCardActivationPrincipal ...

Jump to

Keyboard shortcuts

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