dto

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: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failed added in v3.1.0

type Failed struct {
	Name   string
	Reason process.FailedReason
}

Failed state

func (*Failed) MapFrom added in v3.1.0

func (s *Failed) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

type FormParameter added in v3.1.0

type FormParameter struct {
	Key   string
	Value []string
}

FormParameter holds redirect related form data

type PlaceOrderContext added in v3.1.0

type PlaceOrderContext struct {
	Cart       *dto.DecoratedCart
	OrderInfos *PlacedOrderInfos
	State      State
	UUID       string
}

PlaceOrderContext infos

type PlacedOrderInfos added in v3.1.0

type PlacedOrderInfos struct {
	PaymentInfos        []application.PlaceOrderPaymentInfo
	PlacedOrderInfos    []placeorder.PlacedOrderInfo
	Email               string
	PlacedDecoratedCart *dto.DecoratedCart
}

PlacedOrderInfos infos

type PostRedirect added in v3.1.0

type PostRedirect struct {
	Name       string
	URL        string
	Parameters []FormParameter
}

PostRedirect state

func (*PostRedirect) MapFrom added in v3.1.0

func (s *PostRedirect) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

type Redirect added in v3.1.0

type Redirect struct {
	Name string
	URL  string
}

Redirect state

func (*Redirect) MapFrom added in v3.1.0

func (s *Redirect) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

type ShowHTML added in v3.1.0

type ShowHTML struct {
	Name string
	HTML string
}

ShowHTML state

func (*ShowHTML) MapFrom added in v3.1.0

func (s *ShowHTML) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

type ShowIframe added in v3.1.0

type ShowIframe struct {
	Name string
	URL  string
}

ShowIframe state

func (*ShowIframe) MapFrom added in v3.1.0

func (s *ShowIframe) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

type StartPlaceOrderResult added in v3.1.0

type StartPlaceOrderResult struct {
	UUID string
}

StartPlaceOrderResult result of start place order

type State added in v3.1.0

type State interface {
	MapFrom(process.Context)
}

State representation for graphql

type StateMapper added in v3.1.0

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

StateMapper to create dto states from context states

func (*StateMapper) Inject added in v3.1.0

func (sm *StateMapper) Inject(stateProvider StateProvider) *StateMapper

Inject dependencies

func (*StateMapper) Map added in v3.1.0

func (sm *StateMapper) Map(pctx process.Context) (State, error)

Map a context into a state

type StateProvider added in v3.1.0

type StateProvider func() map[string]State

StateProvider returns a state instance

type Success added in v3.1.0

type Success struct {
	Name string
}

Success state

func (*Success) MapFrom added in v3.1.0

func (s *Success) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

type Wait added in v3.1.0

type Wait struct {
	Name string
}

Wait state

func (*Wait) MapFrom added in v3.1.0

func (s *Wait) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

type WaitForCustomer added in v3.1.0

type WaitForCustomer struct {
	Name string
}

WaitForCustomer state

func (*WaitForCustomer) MapFrom added in v3.1.0

func (s *WaitForCustomer) MapFrom(pctx process.Context)

MapFrom the internal process state to the graphQL state fields

Jump to

Keyboard shortcuts

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