mirror of
https://github.com/KevinMidboe/planetposen-backend.git
synced 2025-10-29 16:30:13 +00:00
Improvements to order, product, checkout & added shipping (#2)
* planet_id variable casing consistent with database field Renames all clientId variables to planet_id * Store stripe json response from latest payment & charge webhook Also added db seed file for stripe payments * Image support! Can now add, update & delete images from products Images moved away from product schema to it's own table. Accepts a images string and relates it to a product. Does not store the images or verify the existance. * Instead of deleting a product set field unlisted to true Endpoints with current inventory checks for unlisted = false * order_id & customer_no gets enhanced base64 function for generating id * Implemented shipping for orders using Post tracking api Added CRUD for making changes to a order's shippment. Split shipping table into shipment_courier, shipment & shipment_event. * Updated and add product & product_sku functions updated * Cart increment funciton checks stock before updating * Endpoint for getting product audit log using 91pluss trigger Read more about usage here: https://wiki.postgresql.org/wiki/Audit_trigger_91plus * On stripe charge successfull send email to user with planetposen-mail * More product seed data, linting & formatting * Log file at /var/log/planetposen_logs & rotate max 3 files 100MB each This will prob throw a error if folder does not exist, run: `(sudo) mkdir -p /var/log/planetposen_logs`. * All endpoints now prefixed with /api/v1 * Linting
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"model": "customer",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"customer_no": "7CB9A6B8-A526-4836-BF4E-67E1075F8B83",
|
||||
"customer_no": "fexQy5Q-UtCgzDxixNw=",
|
||||
"email": "kevin.midboe@gmail.com",
|
||||
"first_name": "kevin",
|
||||
"last_name": "midbøe",
|
||||
@@ -16,7 +16,7 @@
|
||||
"model": "customer",
|
||||
"pk": 2,
|
||||
"fields": {
|
||||
"customer_no": "FFF49A98-0A2F-437D-9069-9664ADB2FFFE",
|
||||
"customer_no": "JEpfvCBrpxa4c1R7S8E=",
|
||||
"email": "Maia.Neteland@gmail.com",
|
||||
"first_name": "Maia",
|
||||
"last_name": "Neteland",
|
||||
@@ -29,7 +29,7 @@
|
||||
"model": "customer",
|
||||
"pk": 3,
|
||||
"fields": {
|
||||
"customer_no": "DFC94AB1-9BB6-4ECF-8747-3E12751892AB",
|
||||
"customer_no": "-M_O4M1mvlu5nIVkeZk=",
|
||||
"email": "Aksel.Engeset@gmail.com",
|
||||
"first_name": "Aksel",
|
||||
"last_name": "Engeset",
|
||||
@@ -42,7 +42,7 @@
|
||||
"model": "customer",
|
||||
"pk": 4,
|
||||
"fields": {
|
||||
"customer_no": "E235456D-C884-4828-BB0F-5065056BD57A",
|
||||
"customer_no": "XNHXUnjFK2Q7bqqbDrU=",
|
||||
"email": "Thomas.Langemyr@gmail.com",
|
||||
"first_name": "Thomas",
|
||||
"last_name": "Langemyr",
|
||||
@@ -55,7 +55,7 @@
|
||||
"model": "customer",
|
||||
"pk": 5,
|
||||
"fields": {
|
||||
"customer_no": "3C1C1952-87E3-46A8-8B22-383B2F566E26",
|
||||
"customer_no": "Z9NB1MGeb_as6vScolY=",
|
||||
"email": "Frida.Nilsen@gmail.com",
|
||||
"first_name": "Frida",
|
||||
"last_name": "Nilsen",
|
||||
|
||||
Reference in New Issue
Block a user