Documentation ¶
Index ¶
- type Failed
- type FormParameter
- type PaymentRequestAPI
- type PlaceOrderContext
- type PlacedOrderInfos
- type PostRedirect
- type Redirect
- type ShowHTML
- type ShowIframe
- type ShowWalletPayment
- type StartPlaceOrderResult
- type State
- type StateMapper
- type StateProvider
- type Success
- type Wait
- type WaitForCustomer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormParameter ¶
FormParameter holds redirect related form data
type PaymentRequestAPI ¶
type PaymentRequestAPI struct { MethodData string Details string Options string MerchantValidationURL *string CompleteURL string }
PaymentRequestAPI holds all data needed to create a PaymentRequest
type PlaceOrderContext ¶
type PlaceOrderContext struct { Cart *dto.DecoratedCart OrderInfos *PlacedOrderInfos State State UUID string }
PlaceOrderContext infos
type PlacedOrderInfos ¶
type PlacedOrderInfos struct { PaymentInfos []application.PlaceOrderPaymentInfo PlacedOrderInfos []placeorder.PlacedOrderInfo Email string PlacedDecoratedCart *dto.DecoratedCart }
PlacedOrderInfos infos
type PostRedirect ¶
type PostRedirect struct { Name string URL string Parameters []FormParameter }
PostRedirect state
func (*PostRedirect) MapFrom ¶
func (s *PostRedirect) MapFrom(pctx process.Context)
MapFrom the internal process state to the graphQL state fields
type ShowIframe ¶
ShowIframe state
func (*ShowIframe) MapFrom ¶
func (s *ShowIframe) MapFrom(pctx process.Context)
MapFrom the internal process state to the graphQL state fields
type ShowWalletPayment ¶
type ShowWalletPayment struct { Name string PaymentMethod string PaymentRequestAPI PaymentRequestAPI }
ShowWalletPayment state
func (*ShowWalletPayment) MapFrom ¶
func (s *ShowWalletPayment) MapFrom(pctx process.Context)
MapFrom the internal process state to the graphQL state fields
type StartPlaceOrderResult ¶
type StartPlaceOrderResult struct {
UUID string
}
StartPlaceOrderResult result of start place order
type StateMapper ¶
type StateMapper struct {
// contains filtered or unexported fields
}
StateMapper to create dto states from context states
func (*StateMapper) Inject ¶
func (sm *StateMapper) Inject(stateProvider StateProvider) *StateMapper
Inject dependencies
type StateProvider ¶
StateProvider returns a state instance
type WaitForCustomer ¶
type WaitForCustomer struct {
Name string
}
WaitForCustomer state
func (*WaitForCustomer) MapFrom ¶
func (s *WaitForCustomer) MapFrom(pctx process.Context)
MapFrom the internal process state to the graphQL state fields