diff --git a/src/test/retail/local-retail.spec.ts b/src/test/retail/local-retail.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..94d07543f1aed7ed24af81234bcaa775288f5f0e --- /dev/null +++ b/src/test/retail/local-retail.spec.ts @@ -0,0 +1,136 @@ +import "reflect-metadata"; +import { describe, it, expect, beforeAll, jest } from "@jest/globals"; + +import { container } from "../../inversify/inversify.config"; +import { GCLController } from "../../gcl/gcl.controller"; +import HttpClient from "../../httpclient/http.service"; +import SearchRequestFromUI from "./request-from-ui/search.request.json"; +import SearchResponseToUI from "./response-to-ui/response.search.json"; +import SearchResponseFromPS from "./response-from-ps/search.response.json"; + +import SelectResponseFromPS from "./response-from-ps/select.response.json"; +import SelectResponseToUI from "./response-to-ui/response.select.json"; +import SelectRequestFromUI from "./request-from-ui/select.request.json"; + +import InitResponseFromPS from "./response-from-ps/init.response.json"; +import InitResponseToUI from "./response-to-ui/response.init.json"; +import InitRequestFromUI from "./request-from-ui/init.request.json"; + +import ConfirmResponseFromPS from "./response-from-ps/confirm.response.json"; +import ConfirmReponseToUI from "./response-to-ui/response.confirm.json"; +import ConfirmRequestFromUI from "./request-from-ui/confirm.request.json"; + +import StatusResponseFromPS from "./response-from-ps/status.response.json"; +import StatusResponseToUI from "./response-to-ui/response.status.json"; +import StatusRequestFromUI from "./request-from-ui/status.request.json"; + +import CancelResponseFromPS from "./response-from-ps/cancel.response.json"; +import CancelResponseToUI from "./response-to-ui/resopnse.cancel.json"; +import CancelRequestFromUI from "./request-from-ui/cancel.request.json"; + +import RatingResponseFromPS from "./response-from-ps/rating.response.json"; +import RatingResponseToUI from "./response-to-ui/response.rating.json"; +import RatingRequestFromUI from "./request-from-ui/rating.request.json"; + +import SupportResponseFromPS from "./response-from-ps/support.response.json"; +import SupportResponseToUI from "./response-to-ui/response.supprt.json"; +import SupportRequestFromUI from "./request-from-ui/support.request.json"; + +import TrackResponseFromPS from "./response-from-ps/track.response.json"; +import TrackResponseToUI from "./response-to-ui/response.track.json"; +import TrackRequestFromUI from "./request-from-ui/track.request.json"; + +import UpdateResponseFromPS from "./response-from-ps/update.response.json"; +import UpdateResponseToUI from "./response-to-ui/response.update.json"; +import UpdateRequestFromUI from "./request-from-ui/update.request.json"; + +describe("Local-retail Controller Testing", () => { + let controller: GCLController; + beforeAll(async () => { + controller = container.resolve(GCLController); + }); + + it("Controller Should be defined", async () => { + expect(controller).toBeDefined(); + }); + + it("Search API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => SearchResponseFromPS); + const data = await controller.search(SearchRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(SearchResponseToUI)); + }); + + it("Select API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => SelectResponseFromPS); + const data = await controller.select(SelectRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(SelectResponseToUI)); + }); + + it("Init API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => InitResponseFromPS); + const data = await controller.init(InitRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(InitResponseToUI)); + }); + + it("Confirm API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => ConfirmResponseFromPS); + const data = await controller.confirm(ConfirmRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(ConfirmReponseToUI)); + }); + + it("Status API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => StatusResponseFromPS); + const data = await controller.status(StatusRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(StatusResponseToUI)); + }); + + it("Cancel API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => CancelResponseFromPS); + const data = await controller.cancel(CancelRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(CancelResponseToUI)); + }); + + it("Rating API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => RatingResponseFromPS); + const data = await controller.rating(RatingRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(RatingResponseToUI)); + }); + + it("Support API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => SupportResponseFromPS); + const data = await controller.support(SupportRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(SupportResponseToUI)); + }); + + it("Track API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => TrackResponseFromPS); + const data = await controller.track(TrackRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(TrackResponseToUI)); + }); + + it("Update API should be working fine", async () => { + jest + .spyOn(HttpClient.prototype, "post") + .mockImplementation(async () => UpdateResponseFromPS); + const data = await controller.update(UpdateRequestFromUI); + expect(JSON.stringify(data)).toEqual(JSON.stringify(UpdateResponseToUI)); + }); +}); diff --git a/src/test/retail/request-from-ui/cancel.request.json b/src/test/retail/request-from-ui/cancel.request.json new file mode 100644 index 0000000000000000000000000000000000000000..ead46c57617f1bab0b6f7d654bf67976c08c107b --- /dev/null +++ b/src/test/retail/request-from-ui/cancel.request.json @@ -0,0 +1,19 @@ +{ + "data": [ + { + "context": { + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "domain": "retail:1.1.0" + }, + "message": { + "order_id": "853c7593-f4bf-4557-8832-118a591787ba", + "cancellation_reason_id": "4", + "descriptor": { + "short_desc": "Prescription Changed" + } + } + } + ] +} diff --git a/src/test/retail/request-from-ui/confirm.request.json b/src/test/retail/request-from-ui/confirm.request.json new file mode 100644 index 0000000000000000000000000000000000000000..6a10689359ed16ec3d3c9536d271a9d50cdbbdd5 --- /dev/null +++ b/src/test/retail/request-from-ui/confirm.request.json @@ -0,0 +1,90 @@ +{ + "data": [ + { + "context": { + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "domain": "retail:1.1.0" + }, + "message": { + "orders": [ + { + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider" + }, + "fulfillments": [ + { + "type": "Delivery", + "customer": { + "person": { + "name": "Jane Doe" + }, + "contact": { + "phone": "+91-9663088848" + } + }, + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ] + } + ], + "items": [ + { + "id": "cons-01", + "selected": { + "quantity": { + "count": 2 + } + } + } + ], + "billing": { + "name": "Rajesh Kumar", + "address": "Villa 5, Green Valley, Malleshwaram, 560012", + "state": { + "name": "Madhya Pradesh" + }, + "city": { + "name": "Bhopal" + }, + "email": "rajesh.kumar@example.com", + "phone": "+91-9999999999" + }, + "payments": [ + { + "params": { + "amount": "350", + "currency": "INR", + "bank_account_number": "1234002341", + "bank_code": "INB0004321" + }, + "status": "PAID", + "type": "PRE-FULFILLMENT" + } + ] + } + ] + } + } + ] +} diff --git a/src/test/retail/request-from-ui/init.request.json b/src/test/retail/request-from-ui/init.request.json new file mode 100644 index 0000000000000000000000000000000000000000..38094cb1721521e8cecd88739808af8b7ab7fc1b --- /dev/null +++ b/src/test/retail/request-from-ui/init.request.json @@ -0,0 +1,78 @@ +{ + "data": [ + { + "context": { + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "domain": "retail:1.1.0" + }, + "message": { + "orders": [ + { + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider" + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "selected": { + "quantity": { + "count": 1 + } + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ] + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "919122343344" + } + }, + "billing": { + "name": "Abee", + "phone": "9191223433", + "address": "Bengaluru, Bengaluru Urban, Bangalore Division, Karnataka", + "email": "testemail1@mailinator.com", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + } + } + ] + } + } + ] +} diff --git a/src/test/retail/request-from-ui/rating.request.json b/src/test/retail/request-from-ui/rating.request.json new file mode 100644 index 0000000000000000000000000000000000000000..d97293f4b4228c94da3ad304089f026f5c80acbb --- /dev/null +++ b/src/test/retail/request-from-ui/rating.request.json @@ -0,0 +1,20 @@ +{ + "data": [ + { + "context": { + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "domain": "retail:1.1.0" + }, + "message": { + "ratings": [ + { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "rating_category": "Order", + "value": "5" + } + ] + } + } + ] +} diff --git a/src/test/retail/request-from-ui/search.request.json b/src/test/retail/request-from-ui/search.request.json new file mode 100644 index 0000000000000000000000000000000000000000..dc4c8448a740e3cfa6293856abd7054a44c1a779 --- /dev/null +++ b/src/test/retail/request-from-ui/search.request.json @@ -0,0 +1,17 @@ +{ + "context": { + "domain": "retail:1.1.0" + }, + "searchString": "earphone", + "category": { + "categoryCode": "electronics" + }, + "fulfillment": { + "type": "Delivery", + "stops": [ + { + "location": "28.4594965,77.0266383" + } + ] + } +} diff --git a/src/test/retail/request-from-ui/select.request.json b/src/test/retail/request-from-ui/select.request.json new file mode 100644 index 0000000000000000000000000000000000000000..3acaeb52e790520c501bb073fdfc9798fac566c1 --- /dev/null +++ b/src/test/retail/request-from-ui/select.request.json @@ -0,0 +1,36 @@ +{ + "data": [ + { + "context": { + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "domain": "retail:1.1.0" + }, + "message": { + "orders": [ + { + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "selected": { + "quantity": { + "count": 1 + } + } + } + ], + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider" + }, + "fulfillments": [ + { + "id": "f1" + } + ] + } + ] + } + } + ] +} diff --git a/src/test/retail/request-from-ui/status.request.json b/src/test/retail/request-from-ui/status.request.json new file mode 100644 index 0000000000000000000000000000000000000000..59e125f7eb1f625de7ac02abd9b2c4db1995202a --- /dev/null +++ b/src/test/retail/request-from-ui/status.request.json @@ -0,0 +1,12 @@ +{ + "data": [ + { + "context": { + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "domain": "retail:1.1.0" + }, + "message": { "order_id": "b989c9a9-f603-4d44-b38d-26fd72286b38" } + } + ] +} diff --git a/src/test/retail/request-from-ui/support.request.json b/src/test/retail/request-from-ui/support.request.json new file mode 100644 index 0000000000000000000000000000000000000000..c744e8440297d849248e2ff4a833f4a539d38b70 --- /dev/null +++ b/src/test/retail/request-from-ui/support.request.json @@ -0,0 +1,19 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09" + }, + "message": { + "support": { + "ref_id": "894789-43954", + "phone": "+91 4444444444", + "email": "me@gmail.com" + } + } + } + ] +} diff --git a/src/test/retail/request-from-ui/track.request.json b/src/test/retail/request-from-ui/track.request.json new file mode 100644 index 0000000000000000000000000000000000000000..9e2aa175084c1dffbd6ff85a884a8a1439a0ca77 --- /dev/null +++ b/src/test/retail/request-from-ui/track.request.json @@ -0,0 +1,13 @@ +{ + "data": [ + { + "context": { + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "domain": "retail:1.1.0" + }, + "orderId": "853c7593-f4bf-4557-8832-118a591787ba" + } + ] +} diff --git a/src/test/retail/request-from-ui/update.request.json b/src/test/retail/request-from-ui/update.request.json new file mode 100644 index 0000000000000000000000000000000000000000..61a90a8fa798804d76ba27b3e0acbe1793fc03ad --- /dev/null +++ b/src/test/retail/request-from-ui/update.request.json @@ -0,0 +1,25 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "transaction_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176" + }, + "orderId": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "updateDetails": { + "updateTarget": "order.fulfillments[0].customer.contact.phone", + "fulfillments": [ + { + "customer": { + "contact": { + "phone": "+91-8056475647" + } + } + } + ] + } + } + ] +} diff --git a/src/test/retail/response-from-ps/cancel.response.json b/src/test/retail/response-from-ps/cancel.response.json new file mode 100644 index 0000000000000000000000000000000000000000..e7eed85c8d82184d71a6160a35e83c8c493e21a0 --- /dev/null +++ b/src/test/retail/response-from-ps/cancel.response.json @@ -0,0 +1,191 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "cancel", + "timestamp": "2024-01-12T11:11:35.720Z", + "message_id": "16778663-9a54-47c8-97ff-e1a3128cb1db", + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bangalore", + "code": "std:080" + } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_cancel", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "message_id": "16778663-9a54-47c8-97ff-e1a3128cb1db", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:11:41.593Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "descriptor": { + "name": "Venky.Mahadevan@Bazaar" + }, + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" + } + ] + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "descriptor": { + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>" + }, + "category_ids": ["c1"], + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "919122343344" + } + }, + "state": { + "descriptor": { + "code": "CANCELLED", + "short_desc": "Cancelled due to ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ], + "type": "DEFAULT" + } + } + } + ] + } +] diff --git a/src/test/retail/response-from-ps/confirm.response.json b/src/test/retail/response-from-ps/confirm.response.json new file mode 100644 index 0000000000000000000000000000000000000000..179e1281c9b4a45f2c732d7a5322008fa4a401ef --- /dev/null +++ b/src/test/retail/response-from-ps/confirm.response.json @@ -0,0 +1,184 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "confirm", + "timestamp": "2024-01-12T10:34:12.707Z", + "message_id": "2ef5cad5-129b-4af8-abf7-455151d95d67", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bangalore", + "code": "std:080" + } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_confirm", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "message_id": "2ef5cad5-129b-4af8-abf7-455151d95d67", + "ttl": "PT10M", + "timestamp": "2024-01-12T10:34:19.191Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "descriptor": { + "name": "Venky.Mahadevan@Bazaar" + }, + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" + } + ] + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "descriptor": { + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>" + }, + "category_ids": ["c1"], + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "919122343344" + } + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ], + "type": "DEFAULT" + } + } + } + ] + } +] diff --git a/src/test/retail/response-from-ps/init.response.json b/src/test/retail/response-from-ps/init.response.json new file mode 100644 index 0000000000000000000000000000000000000000..9d04b288927453a1d5bc9a09a839e2ff9dfd07c6 --- /dev/null +++ b/src/test/retail/response-from-ps/init.response.json @@ -0,0 +1,173 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "init", + "timestamp": "2024-01-12T10:08:59.712Z", + "message_id": "a3818483-1138-4313-a279-075f787d501b", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bangalore", + "code": "std:080" + } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_init", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "message_id": "a3818483-1138-4313-a279-075f787d501b", + "ttl": "PT10M", + "timestamp": "2024-01-12T10:09:06.378Z" + }, + "message": { + "order": { + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "descriptor": { + "name": "Venky.Mahadevan@Bazaar" + }, + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" + } + ] + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "descriptor": { + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>" + }, + "category_ids": ["c1"], + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "919122343344" + } + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "type": "DEFAULT" + } + } + } + ] + } +] diff --git a/src/test/retail/response-from-ps/rating.response.json b/src/test/retail/response-from-ps/rating.response.json new file mode 100644 index 0000000000000000000000000000000000000000..7551fc52930c07dabcc30a5f434f72f77eec4337 --- /dev/null +++ b/src/test/retail/response-from-ps/rating.response.json @@ -0,0 +1,61 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "rating", + "timestamp": "2024-01-12T11:18:59.125Z", + "message_id": "eb2a0fb9-4b0f-4fe9-b7db-31159b016550", + "transaction_id": "7e6d1432-0ec1-4bf5-a550-65e0806c3a37", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bangalore", + "code": "std:080" + } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_rating", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "7e6d1432-0ec1-4bf5-a550-65e0806c3a37", + "message_id": "eb2a0fb9-4b0f-4fe9-b7db-31159b016550", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:19:04.748Z" + }, + "message": { + "feedback_form": { + "form": { + "url": "https://inds-network-bpp.becknprotocol.io/feedback/portal" + } + } + } + } + ] + } +] diff --git a/src/test/retail/response-from-ps/search.response.json b/src/test/retail/response-from-ps/search.response.json new file mode 100644 index 0000000000000000000000000000000000000000..881ecaf677820612a49082775ab643887cba2083 --- /dev/null +++ b/src/test/retail/response-from-ps/search.response.json @@ -0,0 +1,121 @@ +{ + "context": { + "ttl": "PT10M", + "action": "search", + "timestamp": "2024-01-12T07:20:27.323Z", + "message_id": "a5d31306-c976-4f0d-8d3a-3a377965144f", + "transaction_id": "f649c6aa-d845-4874-9c9c-6020d9140bf7", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { "name": "India", "code": "IND" }, + "city": { "name": "Bangalore", "code": "std:080" } + } + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_search", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { "code": "IND" }, + "city": { "code": "std:080" } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "f649c6aa-d845-4874-9c9c-6020d9140bf7", + "message_id": "a5d31306-c976-4f0d-8d3a-3a377965144f", + "ttl": "PT10M", + "timestamp": "2024-01-12T07:20:34.016Z" + }, + "message": { + "catalog": { + "descriptor": { "name": "HBO" }, + "providers": [ + { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "descriptor": { "name": "Venky.Mahadevan@Bazaar" }, + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location", + "gps": "12.909955,77.596316" + } + ], + "categories": [ + { + "id": "c1", + "descriptor": { "code": "grocery", "name": "grocery" } + }, + { + "id": "c2", + "descriptor": { "code": "electronics", "name": "electronics" } + } + ], + "fulfillments": [ + { "id": "f1", "type": "Delivery", "tracking": false }, + { "id": "f2", "type": "Self-Pickup", "tracking": false } + ], + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "descriptor": { + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>" + }, + "matched": true, + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + }, + "recommended": true, + "location_id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location", + "category_id": "c1", + "fulfillment_id": "f1", + "tags": [ + { + "descriptor": { "name": "item-cataegory" }, + "list": [ + { + "descriptor": { "name": "category" }, + "value": "retail" + } + ], + "display": true + }, + { + "descriptor": { "name": "item-properties" }, + "list": [ + { + "descriptor": { "name": "waterbottle" }, + "value": "y" + }, + { "descriptor": { "name": "Trekking" }, "value": "y" }, + { "descriptor": { "name": "Sipper" }, "value": "y" }, + { "descriptor": { "name": "Hiking" }, "value": "y" } + ], + "display": true + } + ] + } + ] + } + ] + } + } + } + ] +} diff --git a/src/test/retail/response-from-ps/select.response.json b/src/test/retail/response-from-ps/select.response.json new file mode 100644 index 0000000000000000000000000000000000000000..dc01e7fb2ed93e5027e716452a3e4e98371867ab --- /dev/null +++ b/src/test/retail/response-from-ps/select.response.json @@ -0,0 +1,119 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "select", + "timestamp": "2024-01-12T09:32:46.310Z", + "message_id": "2042a0f1-9b71-48a3-91c4-c4f3874e156b", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bangalore", + "code": "std:080" + } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_select", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "message_id": "2042a0f1-9b71-48a3-91c4-c4f3874e156b", + "ttl": "PT10M", + "timestamp": "2024-01-12T09:14:00.481Z" + }, + "message": { + "order": { + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "descriptor": { + "name": "Venky.Mahadevan@Bazaar" + }, + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" + } + ] + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "descriptor": { + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>" + }, + "category_ids": ["c1"], + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "id": "f1", + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "type": "DEFAULT" + } + } + } + ] + } +] diff --git a/src/test/retail/response-from-ps/status.response.json b/src/test/retail/response-from-ps/status.response.json new file mode 100644 index 0000000000000000000000000000000000000000..33fb2079c8923d50b458e474e520ce80cbd59110 --- /dev/null +++ b/src/test/retail/response-from-ps/status.response.json @@ -0,0 +1,151 @@ +{ + "context": { + "ttl": "PT10M", + "action": "status", + "timestamp": "2024-01-12T12:57:34.178Z", + "message_id": "b4a18784-b2c8-4164-a6f5-43a10fb63e99", + "transaction_id": "325f4880-3e09-4379-9bd3-67e3566eeab6", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { "name": "India", "code": "IND" }, + "city": { "name": "Bangalore", "code": "std:080" } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_status", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { "code": "IND" }, + "city": { "code": "std:080" } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "325f4880-3e09-4379-9bd3-67e3566eeab6", + "message_id": "b4a18784-b2c8-4164-a6f5-43a10fb63e99", + "ttl": "PT10M", + "timestamp": "2024-01-12T12:57:39.775Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "descriptor": { "name": "Venky.Mahadevan@Bazaar" }, + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" + } + ] + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "descriptor": { + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>" + }, + "category_ids": ["c1"], + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { "name": "Gangamuthanahalli" }, + "state": { "name": "Karnataka" }, + "country": { "code": "IND" }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { "name": "Motiur Rehman" }, + "contact": { "phone": "919122343344" } + }, + "state": { + "descriptor": { + "code": "PACKING", + "short_desc": "Order is getting packed ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + }, + "tracking": false + } + ], + "quote": { + "price": { "currency": "INR", "value": "1500.0" }, + "breakup": [ + { + "title": "base-price", + "price": { "currency": "INR", "value": "1200.0" } + }, + { + "title": "taxes", + "price": { "currency": "INR", "value": "300.0" } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { "name": "Gangamuthanahalli" }, + "state": { "name": "Karnataka" } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { "currency": "INR", "value": "100" } + } + } + ], + "type": "DEFAULT" + } + } + } + ] +} diff --git a/src/test/retail/response-from-ps/support.response.json b/src/test/retail/response-from-ps/support.response.json new file mode 100644 index 0000000000000000000000000000000000000000..8d4894615b4a104658e3c46cd976756479b9154a --- /dev/null +++ b/src/test/retail/response-from-ps/support.response.json @@ -0,0 +1,50 @@ +{ + "context": { + "ttl": "PT10M", + "action": "support", + "timestamp": "2024-01-12T12:34:36.451Z", + "message_id": "5419586a-1880-4ad2-b38e-c110544037ee", + "transaction_id": "bc115b9e-85db-4a2a-a128-33c54ea7667a", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { "name": "India", "code": "IND" }, + "city": { "name": "Bangalore", "code": "std:080" } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_support", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { "code": "IND" }, + "city": { "code": "std:080" } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "1d824b78-e078-44db-9b48-161644107173", + "message_id": "5d4bfac0-6f45-4b0f-af4c-e5bd6edd168a", + "ttl": "PT10M", + "timestamp": "2024-01-12T12:27:35.887Z" + }, + "message": { + "support": { + "ref_id": "d4975df5-b18c-4772-80ad", + "callback_phone": "+91 8765495826", + "phone": "+91 9876543298", + "email": "abcd.support@support.com" + } + } + } + ] +} diff --git a/src/test/retail/response-from-ps/track.response.json b/src/test/retail/response-from-ps/track.response.json new file mode 100644 index 0000000000000000000000000000000000000000..a41f7884fda62f2bdf254b3ef4c3b8df0574a1da --- /dev/null +++ b/src/test/retail/response-from-ps/track.response.json @@ -0,0 +1,60 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "track", + "timestamp": "2024-01-12T11:43:59.090Z", + "message_id": "d46c8d32-30c8-4a44-b6be-62630b2a3eb6", + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bangalore", + "code": "std:080" + } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_track", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "message_id": "d46c8d32-30c8-4a44-b6be-62630b2a3eb6", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:44:04.949Z" + }, + "message": { + "tracking": { + "url": "https://abc/tracking/201f6fa2-a2f7-42e7-a2e5-8947398747", + "status": "active" + } + } + } + ] + } +] diff --git a/src/test/retail/response-from-ps/update.response.json b/src/test/retail/response-from-ps/update.response.json new file mode 100644 index 0000000000000000000000000000000000000000..aad06ab05040c638f12eafd2c4795363d5ec79eb --- /dev/null +++ b/src/test/retail/response-from-ps/update.response.json @@ -0,0 +1,191 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "update", + "timestamp": "2024-01-12T11:51:41.828Z", + "message_id": "62435330-46ea-454d-8095-0cee60c7cd86", + "transaction_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", + "domain": "retail:1.1.0", + "version": "1.1.0", + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bangalore", + "code": "std:080" + } + }, + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/" + }, + "responses": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_update", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", + "message_id": "62435330-46ea-454d-8095-0cee60c7cd86", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:51:48.161Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "descriptor": { + "name": "Venky.Mahadevan@Bazaar" + }, + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" + } + ] + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "descriptor": { + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>" + }, + "category_ids": ["c1"], + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "+91-8056475647" + } + }, + "state": { + "descriptor": { + "code": "PACKING", + "short_desc": "Order is getting packed ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ], + "type": "DEFAULT" + } + } + } + ] + } +] diff --git a/src/test/retail/response-to-ui/resopnse.cancel.json b/src/test/retail/response-to-ui/resopnse.cancel.json new file mode 100644 index 0000000000000000000000000000000000000000..f2d33d599ba2bb64600f3f59e5c244764139f445 --- /dev/null +++ b/src/test/retail/response-to-ui/resopnse.cancel.json @@ -0,0 +1,150 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_cancel", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "message_id": "16778663-9a54-47c8-97ff-e1a3128cb1db", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:11:41.593Z" + }, + "message": { + "order": { + "type": "DEFAULT", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "name": "Venky.Mahadevan@Bazaar" + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>", + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "919122343344" + } + }, + "state": { + "descriptor": { + "code": "CANCELLED", + "short_desc": "Cancelled due to ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.confirm.json b/src/test/retail/response-to-ui/response.confirm.json new file mode 100644 index 0000000000000000000000000000000000000000..5dc469343721c84e5e6cbea83d210f4e14109ace --- /dev/null +++ b/src/test/retail/response-to-ui/response.confirm.json @@ -0,0 +1,139 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_confirm", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "message_id": "2ef5cad5-129b-4af8-abf7-455151d95d67", + "ttl": "PT10M", + "timestamp": "2024-01-12T10:34:19.191Z" + }, + "message": { + "orderId": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "name": "Venky.Mahadevan@Bazaar" + }, + "items": { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>", + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + }, + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "919122343344" + } + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.init.json b/src/test/retail/response-to-ui/response.init.json new file mode 100644 index 0000000000000000000000000000000000000000..1d1735a17fe560f2529f6b5681c657fc63571767 --- /dev/null +++ b/src/test/retail/response-to-ui/response.init.json @@ -0,0 +1,133 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_init", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "message_id": "a3818483-1138-4313-a279-075f787d501b", + "ttl": "PT10M", + "timestamp": "2024-01-12T10:09:06.378Z" + }, + "message": { + "order": { + "type": "DEFAULT", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "name": "Venky.Mahadevan@Bazaar" + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>", + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "919122343344" + } + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ] + } + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.rating.json b/src/test/retail/response-to-ui/response.rating.json new file mode 100644 index 0000000000000000000000000000000000000000..4be06b6f0fca08f222ea3fc720b3f25aa8d4ed68 --- /dev/null +++ b/src/test/retail/response-to-ui/response.rating.json @@ -0,0 +1,36 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_rating", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "7e6d1432-0ec1-4bf5-a550-65e0806c3a37", + "message_id": "eb2a0fb9-4b0f-4fe9-b7db-31159b016550", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:19:04.748Z" + }, + "message": { + "feedback_form": { + "form": { + "url": "https://inds-network-bpp.becknprotocol.io/feedback/portal" + } + } + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.search.json b/src/test/retail/response-to-ui/response.search.json new file mode 100644 index 0000000000000000000000000000000000000000..c3b1a1c5c4dc825a5c1124613601b65c3cc87719 --- /dev/null +++ b/src/test/retail/response-to-ui/response.search.json @@ -0,0 +1,95 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_search", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "f649c6aa-d845-4874-9c9c-6020d9140bf7", + "message_id": "a5d31306-c976-4f0d-8d3a-3a377965144f", + "ttl": "PT10M", + "timestamp": "2024-01-12T07:20:34.016Z" + }, + "message": { + "name": "HBO", + "providers": [ + { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "name": "Venky.Mahadevan@Bazaar", + "locations": [ + { + "id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location", + "gps": "12.909955,77.596316" + } + ], + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>", + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "price": { + "value": "1200.0", + "currency": "INR" + }, + "images": [ + { + "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg" + } + ], + "tags": [ + { + "name": "item-cataegory", + "display": true, + "list": [ + { + "name": "category", + "value": "retail" + } + ] + }, + { + "name": "item-properties", + "display": true, + "list": [ + { + "name": "waterbottle", + "value": "y" + }, + { + "name": "Trekking", + "value": "y" + }, + { + "name": "Sipper", + "value": "y" + }, + { + "name": "Hiking", + "value": "y" + } + ] + } + ] + } + ] + } + ] + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.select.json b/src/test/retail/response-to-ui/response.select.json new file mode 100644 index 0000000000000000000000000000000000000000..313e8d93212a5aed82f5a3c87b4a16f7cba72cca --- /dev/null +++ b/src/test/retail/response-to-ui/response.select.json @@ -0,0 +1,73 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_select", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "eed96a3f-c780-4157-a219-09ff871ee56c", + "message_id": "2042a0f1-9b71-48a3-91c4-c4f3874e156b", + "ttl": "PT10M", + "timestamp": "2024-01-12T09:14:00.481Z" + }, + "message": { + "order": { + "type": "DEFAULT", + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "name": "Venky.Mahadevan@Bazaar" + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>", + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ] + } + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.status.json b/src/test/retail/response-to-ui/response.status.json new file mode 100644 index 0000000000000000000000000000000000000000..d8c81823a4a325f9f69e5cef77a0144f87f0395e --- /dev/null +++ b/src/test/retail/response-to-ui/response.status.json @@ -0,0 +1,121 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_status", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { "code": "IND" }, + "city": { "code": "std:080" } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "325f4880-3e09-4379-9bd3-67e3566eeab6", + "message_id": "b4a18784-b2c8-4164-a6f5-43a10fb63e99", + "ttl": "PT10M", + "timestamp": "2024-01-12T12:57:39.775Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "name": "Venky.Mahadevan@Bazaar" + }, + "items": [ + { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>", + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { "name": "Gangamuthanahalli" }, + "state": { "name": "Karnataka" }, + "country": { "code": "IND" }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { "name": "Motiur Rehman" }, + "contact": { "phone": "919122343344" } + }, + "state": { + "descriptor": { + "code": "PACKING", + "short_desc": "Order is getting packed ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + }, + "tracking": false + } + ], + "quote": { + "price": { "currency": "INR", "value": "1500.0" }, + "breakup": [ + { + "title": "base-price", + "price": { "currency": "INR", "value": "1200.0" } + }, + { + "title": "taxes", + "price": { "currency": "INR", "value": "300.0" } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { "name": "Gangamuthanahalli" }, + "state": { "name": "Karnataka" } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { "currency": "INR", "value": "100" } + } + } + ], + "type": "DEFAULT" + } + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.supprt.json b/src/test/retail/response-to-ui/response.supprt.json new file mode 100644 index 0000000000000000000000000000000000000000..af65a420baa5cf100fbeaf16518b059e35d0e100 --- /dev/null +++ b/src/test/retail/response-to-ui/response.supprt.json @@ -0,0 +1,37 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_support", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "1d824b78-e078-44db-9b48-161644107173", + "message_id": "5d4bfac0-6f45-4b0f-af4c-e5bd6edd168a", + "ttl": "PT10M", + "timestamp": "2024-01-12T12:27:35.887Z" + }, + "message": { + "support": { + "ref_id": "d4975df5-b18c-4772-80ad", + "callback_phone": "+91 8765495826", + "phone": "+91 9876543298", + "email": "abcd.support@support.com" + } + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.track.json b/src/test/retail/response-to-ui/response.track.json new file mode 100644 index 0000000000000000000000000000000000000000..5b6174a642ab669854cb952fd6aa28269d2a297f --- /dev/null +++ b/src/test/retail/response-to-ui/response.track.json @@ -0,0 +1,35 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_track", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "0bbd82ce-5a21-4e26-b402-1c1f9d954fee", + "message_id": "d46c8d32-30c8-4a44-b6be-62630b2a3eb6", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:44:04.949Z" + }, + "message": { + "tracking": { + "url": "https://abc/tracking/201f6fa2-a2f7-42e7-a2e5-8947398747", + "status": "active" + } + } + } + ] +} diff --git a/src/test/retail/response-to-ui/response.update.json b/src/test/retail/response-to-ui/response.update.json new file mode 100644 index 0000000000000000000000000000000000000000..52fa0762630ab9c7a2a518fa94c0564f7e414502 --- /dev/null +++ b/src/test/retail/response-to-ui/response.update.json @@ -0,0 +1,146 @@ +{ + "data": [ + { + "context": { + "domain": "retail:1.1.0", + "action": "on_update", + "version": "1.1.0", + "bpp_id": "beckn-sandbox-bpp.becknprotocol.io", + "bpp_uri": "https://sandbox-bpp-network.becknprotocol.io/", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "bap_id": "ps-bap-network.becknprotocol.io", + "bap_uri": "https://ps-bap-network.becknprotocol.io", + "transaction_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", + "message_id": "62435330-46ea-454d-8095-0cee60c7cd86", + "ttl": "PT10M", + "timestamp": "2024-01-12T11:51:48.161Z" + }, + "message": { + "orderId": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider", + "name": "Venky.Mahadevan@Bazaar" + }, + "items": { + "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item", + "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle", + "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation", + "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>", + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + }, + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + }, + "country": { + "code": "IND" + }, + "area_code": "75001" + }, + "contact": { + "phone": "919246394908", + "email": "nc.rehman@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Motiur Rehman" + }, + "contact": { + "phone": "+91-8056475647" + } + }, + "state": { + "descriptor": { + "code": "PACKING", + "short_desc": "Order is getting packed ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + }, + "tracking": false + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "1500.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1200.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "300.0" + } + } + ] + }, + "billing": { + "name": "Motiur Rehman", + "phone": "9191223433", + "email": "nc.rehman@gmail.com", + "address": "123, Terminal 1, Kempegowda Int'l Airport Rd, A - Block, Gangamuthanahalli, Karnataka 560300, India", + "city": { + "name": "Gangamuthanahalli" + }, + "state": { + "name": "Karnataka" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } + ] +}