edi

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LinkCover ISC endpoint to link user cover
	LinkCover = "internal/link_cover"

	// CoverLinkingStatusCompleted ...
	CoverLinkingStatusCompleted = "coverlinking completed"
)

internal apis definitions

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceEDIImpl

type ServiceEDIImpl struct {
	EdiExt extension.ISCClientExtension
	// contains filtered or unexported fields
}

ServiceEDIImpl represents EDI usecases

func (*ServiceEDIImpl) GetSladerData added in v0.0.23

func (e *ServiceEDIImpl) GetSladerData(ctx context.Context, phoneNumber string) (*[]apiclient.MarketingData, error)

GetSladerData calls the `edi service` to fetch the details of a particular slader It searches by the phoneNumber

func (*ServiceEDIImpl) LinkCover

func (e *ServiceEDIImpl) LinkCover(
	ctx context.Context,
	phoneNumber string,
	uid string,
	pushToken []string,
) (*http.Response, error)

LinkCover calls the `EDI` service to link a cover to a converted, verified slade member user profile.

func (*ServiceEDIImpl) LinkEDIMemberCover added in v0.0.23

func (e *ServiceEDIImpl) LinkEDIMemberCover(
	ctx context.Context,
	phoneNumber string,
	membernumber string,
	payersladecode int,
) (*http.Response, error)

LinkEDIMemberCover calls the `edi` service to autolink a cover for a slader who gets text messages from EDI and clicks on the provided link to download Be.Well. After the slader creates an account, a cover should be automatically appended to the profile.

type ServiceEdi

type ServiceEdi interface {
	LinkCover(
		ctx context.Context,
		phoneNumber string,
		uid string,
		pushToken []string,
	) (*http.Response, error)

	GetSladerData(ctx context.Context, phoneNumber string) (*[]apiclient.MarketingData, error)

	LinkEDIMemberCover(
		ctx context.Context,
		phoneNumber string,
		membernumber string,
		payersladecode int,
	) (*http.Response, error)
}

ServiceEdi defines the business logic required to interact with EDI

func NewEdiService

NewEdiService returns a new instance of edi implementations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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