usecases

package
v0.0.0-...-9c5febd Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 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 CustomerMessengerResponse

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

CustomerMessengerResponse object to response

func (CustomerMessengerResponse) OnResponse

OnResponse register new chatID to customer messenger

type CustomerMessengerUseCase

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

CustomerMessengerUseCase object

func NewCustomerMessengerUseCase

func NewCustomerMessengerUseCase(repo storage.Storager, msgr messenger.Messenger) CustomerMessengerUseCase

NewCustomerMessengerUseCase constructor

func (CustomerMessengerUseCase) ListenChat

func (u CustomerMessengerUseCase) ListenChat()

ListenChat listen messengers chat

type PlaceOrderResponse

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

PlaceOrderResponse response data

func (PlaceOrderResponse) OnResponse

func (r PlaceOrderResponse) OnResponse(phone, orderLink, description string)

OnResponse send order message through messenger via registered phone number

Jump to

Keyboard shortcuts

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