logger

package
v0.0.0-...-bb92df6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: OSL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaceOrderLoggerAdapter

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

PlaceOrderLoggerAdapter provides an implementation of the Service as email adapter

func (*PlaceOrderLoggerAdapter) CancelCustomerOrder

func (e *PlaceOrderLoggerAdapter) CancelCustomerOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos, auth auth.Identity) error

CancelCustomerOrder cancels a customer order

func (*PlaceOrderLoggerAdapter) CancelGuestOrder

func (e *PlaceOrderLoggerAdapter) CancelGuestOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos) error

CancelGuestOrder cancels a guest order

func (*PlaceOrderLoggerAdapter) Inject

func (e *PlaceOrderLoggerAdapter) Inject(logger flamingo.Logger,
	config *struct {
		UseFlamingoLog bool   `inject:"config:commerce.cart.placeOrderLogger.useFlamingoLog,optional"`
		LogAsFile      bool   `inject:"config:commerce.cart.placeOrderLogger.logAsFile,optional"`
		LogDirectory   string `inject:"config:commerce.cart.placeOrderLogger.logDirectory,optional"`
	})

Inject dependencies

func (*PlaceOrderLoggerAdapter) PlaceCustomerCart

PlaceCustomerCart places a customer cart as order email

func (*PlaceOrderLoggerAdapter) PlaceGuestCart

PlaceGuestCart places a guest cart as order email

func (*PlaceOrderLoggerAdapter) ReserveOrderID

func (e *PlaceOrderLoggerAdapter) ReserveOrderID(ctx context.Context, cart *cartDomain.Cart) (string, error)

ReserveOrderID returns the reserved order id

Jump to

Keyboard shortcuts

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