processors

package
v0.0.0-...-61222dd Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name         string
	Fn           func(senderID, template string, args []string)
	MenuPattern  string
	MenuTemplate string
	IsMenu       bool
}

type FacebookStateProcessor

type FacebookStateProcessor struct {
	// contains filtered or unexported fields
}

func (*FacebookStateProcessor) Init

func (p *FacebookStateProcessor) Init() error

func (*FacebookStateProcessor) Process

func (*FacebookStateProcessor) ProcessOrderCreated

func (p *FacebookStateProcessor) ProcessOrderCreated(cartID, orderHash, email string) error

type IStateProcessor

type IStateProcessor interface {
	Init() error
	Process(req *api_request.CustomerRequest) error
	ProcessOrderCreated(cartID, orderHash, email string) error
}

func NewFacebookStateProcessor

func NewFacebookStateProcessor(cfg *config.Application, stateService services.IStateService,
	shopemaaService services.IShopemaaService, messenger *messenger.Messenger) (IStateProcessor, error)

func NewTwilioStateProcessor

func NewTwilioStateProcessor(cfg *config.Application, stateService services.IStateService, shopemaaService services.IShopemaaService,
	twilioService services.ITwilioService) (IStateProcessor, error)

type TwilioStateProcessor

type TwilioStateProcessor struct {
	// contains filtered or unexported fields
}

func (*TwilioStateProcessor) Init

func (p *TwilioStateProcessor) Init() error

func (*TwilioStateProcessor) Process

func (*TwilioStateProcessor) ProcessOrderCreated

func (p *TwilioStateProcessor) ProcessOrderCreated(cartID, orderHash, email string) error

Jump to

Keyboard shortcuts

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