events

package
v0.0.0-...-bba8a77 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetailerPrefix = "Retailer."
	SupplierPrefix = "Supplier."
	CarrierPrefix  = "Carrier."

	// goes on type
	OfferPrefix = "Offer."

	// goes on subject
	SupplierSubject = "Supplier."

	ControllerSource = "Controller" // the main controller emits these for type:Offer.Product type:Reset type:Disconnect type:Offer.Service.Transport
	PassengerSource  = "Passenger"  // the user emits these for type:Order

	ConnectionType = "Connection"
	ResetType      = "Reset"
	DisconnectType = "Disconnect"

	OrderType          = "Order"
	OrderReleasedType  = "Order.OrderStatus.OrderReleased"
	OrderDeliveredType = "Order.OrderStatus.OrderDelivered"

	TransferActionType         = "TransferAction"
	TransferOrderReleasedType  = "TransferAction.ActionStatus.PotentialActionStatus"
	TransferOrderAcceptedType  = "TransferAction.ActionStatus.ActiveActionStatus"
	TransferOrderArrivedType   = "TransferAction.ActionStatus.ArrivedActionStatus"
	TransferOrderCompletedType = "TransferAction.ActionStatus.CompletedActionStatus"

	OfferType          = "Offer"
	InventoryLevelType = "Offer.InventoryLevel"
	ProductOfferType   = "Offer.Product"
	CarrierOfferType   = "Offer.Service.Transport"

	ShipmentCount = 2

	// OrderStatus can be
	OrderReleased  = "OrderReleased"
	OrderDelivered = "OrderDelivered"

	// ActionStatus can be
	ActionStatusCompleted = "CompletedActionStatus"
	ActionStatusArrived   = "ArrivedActionStatus"
	ActionStatusActive    = "ActiveActionStatus"
	ActionStatusPotential = "PotentialActionStatus"

	// Extensions
	ExtCause = "cause"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CarrierOffer

type CarrierOffer struct {
	ToLocation   string `json:"toLocation,omitempty"`
	FromLocation string `json:"fromLocation,omitempty"`
}

type CarrierOfferData

type CarrierOfferData []CarrierOffer

type ConnectionData

type ConnectionData struct {
	System       string `json:"system,omitempty"`
	Organization string `json:"organization,omitempty"`
}

type CustomerOfferData

type CustomerOfferData []ProductOffer

type OfferData

type OfferData struct {
	InventoryLevel int     `json:"inventoryLevel,omitempty"`
	Offer          Product `json:"offer,omitempty"`
}

type OrderData

type OrderData struct {
	Provider    string  `json:"provider,omitempty"`
	OrderStatus string  `json:"orderStatus,omitempty"`
	Customer    string  `json:"customer,omitempty"`
	Offer       Product `json:"offer,omitempty"`
}

type Product

type Product string
const (
	SmallProduct  Product = "small"
	MediumProduct Product = "medium"
	LargeProduct  Product = "large"
)

type ProductOffer

type ProductOffer struct {
	Customer string    `json:"customer,omitempty"`
	Offer    []Product `json:"offer,omitempty"`
}

type TransferActionData

type TransferActionData struct {
	ToLocation   string  `json:"toLocation,omitempty"`
	FromLocation string  `json:"fromLocation,omitempty"`
	ActionStatus string  `json:"actionStatus,omitempty"`
	Offer        Product `json:"offer,omitempty"`
}

Jump to

Keyboard shortcuts

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