From f24e585b6408761f3034239cbb427526df739a54 Mon Sep 17 00:00:00 2001 From: medina5 Date: Thu, 23 Oct 2025 16:31:29 +0200 Subject: [PATCH] commande --- commande.md | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++ exercice2.md | 2 + 2 files changed, 127 insertions(+) create mode 100644 commande.md diff --git a/commande.md b/commande.md new file mode 100644 index 0000000..2ff5a77 --- /dev/null +++ b/commande.md @@ -0,0 +1,125 @@ +```json + { + "id": 21614714519, + "storeId": 47488, + "channelId": 32637, + "reference": "51943582-A", + "storeReference": null, + "isTest": false, + "acknowledgedAt": null, + "createdAt": "2025-10-16T17:36:13+02:00", + "updatedAt": "2025-10-16T17:44:28+02:00", + "status": "waiting_shipment", + "anonymized": false, + "payment": { + "shippingAmount": 40, + "productAmount": 5299.99, + "totalAmount": 5339.99, + "currency": "EUR", + "method": "", + "taxMode": "undefined" + }, + "shipment": { + "type": null, + "carrier": "Livraison suivie contre signature", + "trackingNumber": "", + "trackingLink": "", + "returnInfo": { + "carrier": null, + "trackingNumber": null + } + }, + "additionalFields": { + "fulfilled_by": "merchant", + "order_status": "SHIPPING", + "shipping_tax": "3.33", + "payment_workflow": "PAY_ON_ACCEPTANCE", + "shipping_type_code": "STANDARD_SIGNATURE_MKP", + "fulfillment_center_code": "DEFAULT" + }, + "latestShipDate": "2025-10-22 23:59:59", + "errors": [ + ], + "itemsReferencesAliases": { + }, + "fulfilledBy": "store", + "items": [ + { + "id": 22761407116, + "reference": "C23053U10MD", + "status": "", + "quantity": 1, + "price": 79.99, + "commission": 24, + "taxAmount": 13.33, + "ecotaxAmount": 0, + "channelReference": "51943582-A-1", + "additionalFields": { + "eco-contributions": "FR019519_10LPCZ|3.34,FR276267_01LTLV|,FR276267_01LTLV|,FR015248_11OWVR|", + "eco-contributions-amount": "3.34", + "eco-contributions-producer-ids": "FR019519_10LPCZ|FR276267_01LTLV|FR276267_01LTLV|FR015248_11OWVR", + "warranty-list": "2-ans", + "shipping_price": 20 + }, + "name": "VTT Tout-Suspendu Cannondale Habit Carbon 1 Sram GX Eagle AXS 12V 29″ Bleu Sonic", + "image": "https://embed.widencdn.net/img/dorelrl/zgwtlbkale/1700px@1x/C23_C23053U_Habit_Crb_1_SNB_PD.webp?color=F6F6F6&q=99" + } + ], + "commission": 24, + "shippingAddress": { + "firstName": "", + "lastName": "", + "company": "", + "street": "", + "street2": "", + "other": "", + "postalCode": "69008", + "city": "", + "country": "FR", + "phone": "", + "mobilePhone": "", + "province": "", + "email": "reaj9js99wn.dwp0bb6fb@notification.mirakl.net", + "relayId": "" + }, + "billingAddress": { + "firstName": "", + "lastName": "", + "company": "", + "street": "", + "street2": "", + "other": "", + "postalCode": "69008", + "city": "", + "country": "FR", + "phone": "", + "mobilePhone": "", + "province": "", + "email": "reaj9js99wn.dwp0bb6fb@notification.mirakl.net" + }, + "_links": { + "self": { + "href": "/v1/store/47488/order/21614714519" + }, + "store": { + "href": "/v1/store/47488" + } + }, + "_embedded": { + "channel": { + "id": 32637, + "name": "but", + "_links": { + "self": { + "href": "/v1/channel/32637" + }, + "image": { + "href": "https://assets.shopping-feed.com/channel/logo/but.png" + } + } + }, + "tag": [ + ] + } +} +``` diff --git a/exercice2.md b/exercice2.md index 3584050..92c5243 100644 --- a/exercice2.md +++ b/exercice2.md @@ -23,6 +23,8 @@ Faire une recherche db.commandes.find() ``` +Voir un document [commande](commande.md) + 1. le document dont la référence est 51943385-B 2. Extraire la liste des "status" distincts.