Documentation
¶
Index ¶
- Constants
- type ServiceEDIImpl
- func (e *ServiceEDIImpl) GetSladerData(ctx context.Context, phoneNumber string) (*[]apiclient.MarketingData, error)
- func (e *ServiceEDIImpl) LinkCover(ctx context.Context, phoneNumber string, uid string, pushToken []string) (*http.Response, error)
- func (e *ServiceEDIImpl) LinkEDIMemberCover(ctx context.Context, phoneNumber string, membernumber string, ...) (*http.Response, error)
- type ServiceEdi
Constants ¶
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 ¶
func NewEdiService( edi extension.ISCClientExtension, r repository.OnboardingRepository, ) ServiceEdi
NewEdiService returns a new instance of edi implementations