Documentation ¶
Index ¶
- type PlaceOrderLoggerAdapter
- func (e *PlaceOrderLoggerAdapter) CancelCustomerOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos, ...) error
- func (e *PlaceOrderLoggerAdapter) CancelGuestOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos) error
- func (e *PlaceOrderLoggerAdapter) Inject(logger flamingo.Logger, config ...)
- func (e *PlaceOrderLoggerAdapter) PlaceCustomerCart(ctx context.Context, auth auth.Identity, cart *cartDomain.Cart, ...) (placeorder.PlacedOrderInfos, error)
- func (e *PlaceOrderLoggerAdapter) PlaceGuestCart(ctx context.Context, cart *cartDomain.Cart, payment *placeorder.Payment) (placeorder.PlacedOrderInfos, error)
- func (e *PlaceOrderLoggerAdapter) ReserveOrderID(ctx context.Context, cart *cartDomain.Cart) (string, error)
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 ¶
func (e *PlaceOrderLoggerAdapter) PlaceCustomerCart(ctx context.Context, auth auth.Identity, cart *cartDomain.Cart, payment *placeorder.Payment) (placeorder.PlacedOrderInfos, error)
PlaceCustomerCart places a customer cart as order email
func (*PlaceOrderLoggerAdapter) PlaceGuestCart ¶
func (e *PlaceOrderLoggerAdapter) PlaceGuestCart(ctx context.Context, cart *cartDomain.Cart, payment *placeorder.Payment) (placeorder.PlacedOrderInfos, error)
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
Click to show internal directories.
Click to hide internal directories.