routes

package
v0.0.0-...-c0bcdf1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCustomer

func AddCustomer(c *gin.Context)

AddCustomer will add a new customer

func AddInvoice

func AddInvoice(c *gin.Context)

AddInvoice creates a new invoice in the database

func AddOrderItem

func AddOrderItem(c *gin.Context)

AddOrderItem creates a new order_item

func AddPayment

func AddPayment(c *gin.Context)

AddPayment creates a new payment

func AddProduct

func AddProduct(c *gin.Context)

AddProduct creates a new product

func AddShipment

func AddShipment(c *gin.Context)

AddShipment creates a new shipment

func AddStore

func AddStore(c *gin.Context)

AddStore add a new store

func AddUser

func AddUser(c *gin.Context)

AddUser creates a new user

func AuthorizePayment

func AuthorizePayment(m mollie.Client, o *models.Order, orderNumber, baseUrl string) (string, string, error)

func DeleteCustomer

func DeleteCustomer(c *gin.Context)

DeleteCustomer will soft-delete a customer

func DeleteInvoice

func DeleteInvoice(c *gin.Context)

DeleteInvoice will delete the invoice from the database

func DeleteOrder

func DeleteOrder(c *gin.Context)

DeleteOrder deletes an order

func DeleteOrderItem

func DeleteOrderItem(c *gin.Context)

DeleteOrderItem deletes an order_item

func DeletePayment

func DeletePayment(c *gin.Context)

DeletePayment deletes a payment

func DeleteProduct

func DeleteProduct(c *gin.Context)

DeleteProduct deletes a product

func DeleteShipment

func DeleteShipment(c *gin.Context)

DeleteShipment deletes a shipment

func DeleteStore

func DeleteStore(c *gin.Context)

DeleteStore deletes a store

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser deletes a user

func GetAllInvoices

func GetAllInvoices(c *gin.Context)

GetAllInvoices returns all the invoices

func GetAllOrderItems

func GetAllOrderItems(c *gin.Context)

GetAllOrderItems returns all the order_items objects

func GetAllOrders

func GetAllOrders(c *gin.Context)

GetAllOrders return all the orders

func GetAllPayments

func GetAllPayments(c *gin.Context)

GetAllPayments returns all the payments

func GetAllProducts

func GetAllProducts(c *gin.Context)

GetAllProducts returns all the products

func GetAllShipments

func GetAllShipments(c *gin.Context)

GetAllShipments returns all the shipments

func GetAllStores

func GetAllStores(c *gin.Context)

GetAllStores returns all the stores in the database

func GetCustomer

func GetCustomer(c *gin.Context)

GetCustomer will get a single customer

func GetInvoice

func GetInvoice(c *gin.Context)

GetInvoice returns a single invoice given the number

func GetOrder

func GetOrder(c *gin.Context)

GetOrder returns a single order

func GetOrderItem

func GetOrderItem(c *gin.Context)

GetOrderItem return a single order_item

func GetPayment

func GetPayment(c *gin.Context)

GetPayment returns a single payment

func GetProduct

func GetProduct(c *gin.Context)

GetProduct returns a single product

func GetShipment

func GetShipment(c *gin.Context)

GetShipment returns a shipment

func GetStore

func GetStore(c *gin.Context)

GetStore returns a single store

func GetUser

func GetUser(c *gin.Context)

GetUser returns a single user

func NewOrder

func NewOrder(c *gin.Context)

NewOrder creates a new order

func PaymentRedirectURL

func PaymentRedirectURL(c *gin.Context)

PaymentRedirectURL is called when the checkout is completed

func PaymentWebhook

func PaymentWebhook(c *gin.Context)

PaymentWebhook is called when checking the status of the payment

func UpdateCustomer

func UpdateCustomer(c *gin.Context)

UpdateCustomer will update the customer row

func UpdateInvoice

func UpdateInvoice(c *gin.Context)

UpdateInvoice updates the invoice in the database

func UpdateOrder

func UpdateOrder(c *gin.Context)

UpdateOrder updates an order

func UpdateOrderItem

func UpdateOrderItem(c *gin.Context)

UpdateOrderItem updates an order_item

func UpdatePayment

func UpdatePayment(c *gin.Context)

UpdatePayment updates a payment

func UpdateProduct

func UpdateProduct(c *gin.Context)

UpdateProduct updates a product

func UpdateShipment

func UpdateShipment(c *gin.Context)

UpdateShipment updates a shipment

func UpdateStore

func UpdateStore(c *gin.Context)

UpdateStore updates a store

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser updates a user

func Version

func Version(c *gin.Context)

Version returns the APIs version

Types

This section is empty.

Jump to

Keyboard shortcuts

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