Skip to content

Commit 834bc67

Browse files
Add new Address functionality added
1 parent beab140 commit 834bc67

File tree

2 files changed

+405
-1
lines changed

2 files changed

+405
-1
lines changed

data.json

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,16 @@
19241924
"state": "Madhya Pradesh",
19251925
"pinCode": "452002",
19261926
"address": "Indore"
1927+
},
1928+
{
1929+
"name": "Jack Hill",
1930+
"email": "jack@gmail.com",
1931+
"phone": "12345",
1932+
"street": "11th road",
1933+
"address": "Mumbai",
1934+
"state": "Maharastra",
1935+
"pinCode": "452003",
1936+
"city": "Mumbai"
19271937
}
19281938
]
19291939
},
@@ -2435,6 +2445,218 @@
24352445
},
24362446
"paymentMethod": "card",
24372447
"status": "pending"
2448+
},
2449+
{
2450+
"id": "3802",
2451+
"items": [
2452+
{
2453+
"id": "92dd",
2454+
"title": "Fish Steak",
2455+
"description": "Quality fish steak, suitable for grilling, baking, or pan-searing.",
2456+
"category": "groceries",
2457+
"price": 14.99,
2458+
"discountPercentage": 7,
2459+
"rating": 4.83,
2460+
"stock": 99,
2461+
"tags": [
2462+
"seafood"
2463+
],
2464+
"sku": "XNIH1MTA",
2465+
"weight": 8,
2466+
"dimensions": {
2467+
"width": 20.14,
2468+
"height": 8.4,
2469+
"depth": 10.01
2470+
},
2471+
"warrantyInformation": "1 year warranty",
2472+
"shippingInformation": "Ships in 1 month",
2473+
"availabilityStatus": "In Stock",
2474+
"reviews": [
2475+
{
2476+
"rating": 5,
2477+
"comment": "Great value for money!",
2478+
"date": "2024-05-23T08:56:21.620Z",
2479+
"reviewerName": "Michael Johnson",
2480+
"reviewerEmail": "michael.johnson@x.dummyjson.com"
2481+
},
2482+
{
2483+
"rating": 4,
2484+
"comment": "Would buy again!",
2485+
"date": "2024-05-23T08:56:21.620Z",
2486+
"reviewerName": "Julian Newton",
2487+
"reviewerEmail": "julian.newton@x.dummyjson.com"
2488+
},
2489+
{
2490+
"rating": 5,
2491+
"comment": "Excellent quality!",
2492+
"date": "2024-05-23T08:56:21.620Z",
2493+
"reviewerName": "Lila Hudson",
2494+
"reviewerEmail": "lila.hudson@x.dummyjson.com"
2495+
}
2496+
],
2497+
"returnPolicy": "30 days return policy",
2498+
"minimumOrderQuantity": 49,
2499+
"meta": {
2500+
"createdAt": "2024-05-23T08:56:21.620Z",
2501+
"updatedAt": "2024-05-23T08:56:21.620Z",
2502+
"barcode": "4250692197342",
2503+
"qrCode": "https://dummyjson.com/public/qr-code.png"
2504+
},
2505+
"images": [
2506+
"https://cdn.dummyjson.com/products/images/groceries/Fish%20Steak/1.png"
2507+
],
2508+
"thumbnail": "https://cdn.dummyjson.com/products/images/groceries/Fish%20Steak/thumbnail.png",
2509+
"quantity": 1,
2510+
"user": "cb1b"
2511+
}
2512+
],
2513+
"totalAmount": 14.99,
2514+
"totalItems": 1,
2515+
"user": {
2516+
"id": "cb1b",
2517+
"email": "test@123.com",
2518+
"password": "Murtaza123",
2519+
"addresses": [
2520+
{
2521+
"name": "Murtaza ",
2522+
"email": "murtazashabbir14@gmail.com",
2523+
"phone": "7869558609",
2524+
"street": "1109 - Noorani Nagar - Near M.Shabbir bhai Khergonewala",
2525+
"city": "Indore",
2526+
"state": "Madhya Pradesh",
2527+
"pinCode": "452002",
2528+
"address": "Indore"
2529+
},
2530+
{
2531+
"name": "Jack Hill",
2532+
"email": "jack@gmail.com",
2533+
"phone": "12345",
2534+
"street": "11th road",
2535+
"address": "Mumbai",
2536+
"state": "Maharastra",
2537+
"pinCode": "452003",
2538+
"city": "Mumbai"
2539+
}
2540+
]
2541+
},
2542+
"selectedAddress": {
2543+
"name": "Jack Hill",
2544+
"email": "jack@gmail.com",
2545+
"phone": "12345",
2546+
"street": "11th road",
2547+
"address": "Mumbai",
2548+
"state": "Maharastra",
2549+
"pinCode": "452003",
2550+
"city": "Mumbai"
2551+
},
2552+
"paymentMethod": "card",
2553+
"status": "pending"
2554+
},
2555+
{
2556+
"id": "5c73",
2557+
"items": [
2558+
{
2559+
"id": "7d4d",
2560+
"title": "Cooking Oil",
2561+
"description": "Versatile cooking oil suitable for frying, sautéing, and various culinary applications.",
2562+
"category": "groceries",
2563+
"price": 4.99,
2564+
"discountPercentage": 18.89,
2565+
"rating": 4.01,
2566+
"stock": 22,
2567+
"tags": [
2568+
"cooking essentials"
2569+
],
2570+
"sku": "Q6ZP1UY8",
2571+
"weight": 8,
2572+
"dimensions": {
2573+
"width": 8.18,
2574+
"height": 27.45,
2575+
"depth": 27.88
2576+
},
2577+
"warrantyInformation": "Lifetime warranty",
2578+
"shippingInformation": "Ships in 1 month",
2579+
"availabilityStatus": "In Stock",
2580+
"reviews": [
2581+
{
2582+
"rating": 5,
2583+
"comment": "Would buy again!",
2584+
"date": "2024-05-23T08:56:21.620Z",
2585+
"reviewerName": "Mason Parker",
2586+
"reviewerEmail": "mason.parker@x.dummyjson.com"
2587+
},
2588+
{
2589+
"rating": 3,
2590+
"comment": "Poor quality!",
2591+
"date": "2024-05-23T08:56:21.620Z",
2592+
"reviewerName": "Jonathan Pierce",
2593+
"reviewerEmail": "jonathan.pierce@x.dummyjson.com"
2594+
},
2595+
{
2596+
"rating": 5,
2597+
"comment": "Would buy again!",
2598+
"date": "2024-05-23T08:56:21.620Z",
2599+
"reviewerName": "Alexander Hernandez",
2600+
"reviewerEmail": "alexander.hernandez@x.dummyjson.com"
2601+
}
2602+
],
2603+
"returnPolicy": "60 days return policy",
2604+
"minimumOrderQuantity": 2,
2605+
"meta": {
2606+
"createdAt": "2024-05-23T08:56:21.620Z",
2607+
"updatedAt": "2024-05-23T08:56:21.620Z",
2608+
"barcode": "6707669443381",
2609+
"qrCode": "https://dummyjson.com/public/qr-code.png"
2610+
},
2611+
"images": [
2612+
"https://cdn.dummyjson.com/products/images/groceries/Cooking%20Oil/1.png"
2613+
],
2614+
"thumbnail": "https://cdn.dummyjson.com/products/images/groceries/Cooking%20Oil/thumbnail.png",
2615+
"quantity": 1,
2616+
"user": "cb1b"
2617+
}
2618+
],
2619+
"totalAmount": 4.99,
2620+
"totalItems": 1,
2621+
"user": {
2622+
"id": "cb1b",
2623+
"email": "test@123.com",
2624+
"password": "Murtaza123",
2625+
"addresses": [
2626+
{
2627+
"name": "Murtaza ",
2628+
"email": "murtazashabbir14@gmail.com",
2629+
"phone": "7869558609",
2630+
"street": "1109 - Noorani Nagar - Near M.Shabbir bhai Khergonewala",
2631+
"city": "Indore",
2632+
"state": "Madhya Pradesh",
2633+
"pinCode": "452002",
2634+
"address": "Indore"
2635+
},
2636+
{
2637+
"name": "Jack Hill",
2638+
"email": "jack@gmail.com",
2639+
"phone": "12345",
2640+
"street": "11th road",
2641+
"address": "Mumbai",
2642+
"state": "Maharastra",
2643+
"pinCode": "452003",
2644+
"city": "Mumbai"
2645+
}
2646+
]
2647+
},
2648+
"selectedAddress": {
2649+
"name": "Murtaza ",
2650+
"email": "murtazashabbir14@gmail.com",
2651+
"phone": "7869558609",
2652+
"street": "1109 - Noorani Nagar - Near M.Shabbir bhai Khergonewala",
2653+
"city": "Indore",
2654+
"state": "Madhya Pradesh",
2655+
"pinCode": "452002",
2656+
"address": "Indore"
2657+
},
2658+
"paymentMethod": "card",
2659+
"status": "pending"
24382660
}
24392661
]
24402662
}

0 commit comments

Comments
 (0)