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