mirror of
https://github.com/KevinMidboe/planetposen-backend.git
synced 2025-10-29 00:10:12 +00:00
* 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
68 lines
1.5 KiB
JSON
68 lines
1.5 KiB
JSON
[
|
|
{
|
|
"model": "customer",
|
|
"pk": 1,
|
|
"fields": {
|
|
"customer_no": "fexQy5Q-UtCgzDxixNw=",
|
|
"email": "kevin.midboe@gmail.com",
|
|
"first_name": "kevin",
|
|
"last_name": "midbøe",
|
|
"street_address": "Schleppegrells gate 18",
|
|
"zip_code": "0556",
|
|
"city": "Oslo"
|
|
}
|
|
},
|
|
{
|
|
"model": "customer",
|
|
"pk": 2,
|
|
"fields": {
|
|
"customer_no": "JEpfvCBrpxa4c1R7S8E=",
|
|
"email": "Maia.Neteland@gmail.com",
|
|
"first_name": "Maia",
|
|
"last_name": "Neteland",
|
|
"street_address": "Mosekollen 14",
|
|
"zip_code": "0752",
|
|
"city": "Oslo"
|
|
}
|
|
},
|
|
{
|
|
"model": "customer",
|
|
"pk": 3,
|
|
"fields": {
|
|
"customer_no": "-M_O4M1mvlu5nIVkeZk=",
|
|
"email": "Aksel.Engeset@gmail.com",
|
|
"first_name": "Aksel",
|
|
"last_name": "Engeset",
|
|
"street_address": "Christian Bloms gate 210",
|
|
"zip_code": "3041",
|
|
"city": "DRAMMEN"
|
|
}
|
|
},
|
|
{
|
|
"model": "customer",
|
|
"pk": 4,
|
|
"fields": {
|
|
"customer_no": "XNHXUnjFK2Q7bqqbDrU=",
|
|
"email": "Thomas.Langemyr@gmail.com",
|
|
"first_name": "Thomas",
|
|
"last_name": "Langemyr",
|
|
"street_address": "Clausenbakken 208",
|
|
"zip_code": "1369",
|
|
"city": "Stabekk"
|
|
}
|
|
},
|
|
{
|
|
"model": "customer",
|
|
"pk": 5,
|
|
"fields": {
|
|
"customer_no": "Z9NB1MGeb_as6vScolY=",
|
|
"email": "Frida.Nilsen@gmail.com",
|
|
"first_name": "Frida",
|
|
"last_name": "Nilsen",
|
|
"street_address": "Jansbråteveien 195",
|
|
"zip_code": "1730",
|
|
"city": "Ise"
|
|
}
|
|
}
|
|
]
|