order

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: 5 Imported by: 0

README

Order Module

The order module offers a domain model for orders to be used to list orders of a customer.

Usage

Show orders of a customer

The module offers a data controller "customerorders" to get all orders of the current authenticated user/customer:

orders = data("customerorders")

Ports

The module offers a port that needs to be implemented to fetch customer orders CustomerIdentityOrderService.

The module comes with an adapter for the port:

  • FakeAdapter: Just returns some dummy orders - useful for local testing
possible configurations
  order:
    # use fake adapter for order fetching
    useFakeAdapter: true

Documentation

Index

Constants

View Source
const (
	// LogKey defines the module log category key
	LogKey = "order"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module definition of the order module

func (*Module) Configure

func (m *Module) Configure(injector *dingo.Injector)

Configure DI

func (*Module) FlamingoLegacyConfigAlias

func (m *Module) FlamingoLegacyConfigAlias() map[string]string

FlamingoLegacyConfigAlias maps legacy config entries to new ones

func (*Module) Inject

func (m *Module) Inject(
	config *struct {
		UseFakeAdapter bool `inject:"config:commerce.order.useFakeAdapter,optional"`
	},
)

Inject dependencies

Directories

Path Synopsis
infrastructure
interfaces

Jump to

Keyboard shortcuts

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