Documentation ¶
Index ¶
- func CreateOrder(group *echo.Group, client *mongo.Client, orderService orders.IOrderService, ...)
- func GetOrderByOrderNumber(group *echo.Group, client *mongo.Client, orderService orders.IOrderService, ...)
- func NewOrderController(e *echo.Echo, client *mongo.Client, orderService orders.IOrderService, ...)
- func RejectPayment(group *echo.Group, client *mongo.Client, orderService orders.IOrderService, ...)
- type OrderController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrder ¶
func CreateOrder(group *echo.Group, client *mongo.Client, orderService orders.IOrderService, orderLineService orderlines.IOrderLineService)
CreateOrder godoc @Accept json @Produce json @Param c body order.CreateOrderCommand true "body" @Success 201 {object} orders.Order @Failure 400 {string} string @Failure 500 {string} string @Router /v1/orders/ [post]
func GetOrderByOrderNumber ¶
func GetOrderByOrderNumber(group *echo.Group, client *mongo.Client, orderService orders.IOrderService, orderLineService orderlines.IOrderLineService)
GetOrderByOrderNumber godoc @Accept json @Produce json @Param orderNumber path string true "Order Number" @Success 200 {string} string @Failure 400 {string} string @Failure 500 {string} string @Router /v1/orders/orderNumber/{orderNumber} [get]
func NewOrderController ¶
func NewOrderController(e *echo.Echo, client *mongo.Client, orderService orders.IOrderService, orderLineService orderlines.IOrderLineService, httpErrorHandler middlewares.HttpErrorHandler)
func RejectPayment ¶
func RejectPayment(group *echo.Group, client *mongo.Client, orderService orders.IOrderService, orderLineService orderlines.IOrderLineService)
RejectPayment godoc @Accept json @Produce json @Param orderNumber path string true "Order Number" @Param c body order.RejectOrderPaymentCommand true "body" @Failure 400 {string} string @Failure 500 {string} string @Router /v1/orders/{orderNumber}/reject-payment [put]
Types ¶
type OrderController ¶
type OrderController struct { }