controllers_v1

package
v0.0.0-...-2c15619 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 {
}

Jump to

Keyboard shortcuts

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