email

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: OSL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaceOrderServiceAdapter

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

PlaceOrderServiceAdapter provides an implementation of the Service as email adapter

TODO - this example adapter need to be implemented

func (*PlaceOrderServiceAdapter) CancelCustomerOrder

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

CancelCustomerOrder cancels a customer order

func (*PlaceOrderServiceAdapter) CancelGuestOrder

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

CancelGuestOrder cancels a guest order

func (*PlaceOrderServiceAdapter) Inject

func (e *PlaceOrderServiceAdapter) Inject(logger flamingo.Logger, config *struct {
	EmailAddress string `inject:"config:commerce.cart.emailAdapter.emailAddress"`
})

Inject dependencies

func (*PlaceOrderServiceAdapter) PlaceCustomerCart

func (e *PlaceOrderServiceAdapter) PlaceCustomerCart(ctx context.Context, identity auth.Identity, cart *cartDomain.Cart, payment *placeorder.Payment) (placeorder.PlacedOrderInfos, error)

PlaceCustomerCart places a customer cart as order email

func (*PlaceOrderServiceAdapter) PlaceGuestCart

PlaceGuestCart places a guest cart as order email

func (*PlaceOrderServiceAdapter) ReserveOrderID

func (e *PlaceOrderServiceAdapter) 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