diff --git a/examples/DSNP/cancel/cancel.json b/examples/DSNP/cancel/cancel.json new file mode 100644 index 0000000..92568b1 --- /dev/null +++ b/examples/DSNP/cancel/cancel.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "cancel", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order_id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "cancellation_reason_id": "4", + "descriptor": { + "short_desc": "Order delayed" + } + } +} \ No newline at end of file diff --git a/examples/DSNP/cancel/on-cancel.json b/examples/DSNP/cancel/on-cancel.json new file mode 100644 index 0000000..9ecd14b --- /dev/null +++ b/examples/DSNP/cancel/on-cancel.json @@ -0,0 +1,203 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_cancel", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f", + "descriptor": { + "name": "WorldHikes", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_4CQBASVPFbCXIytAUZF7c00_dS-2bSmF1huQXWmnCg&s" + ], + "short_desc": "WorldHikes is dedicated to serving outdoor enthusiasts with top-quality trekking gear for their adventures around the globe. From premium sunglasses and ergonomic backpacks to efficient camping stoves and reliable headlamps, we ensure that every hiker is equipped with the best tools for their journey. Join us in exploring the world's most breathtaking trails!" + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "descriptor": { + "images": [ + "https://m.media-amazon.com/images/I/61kQ4hs3LpL._AC_UY1100_.jpg" + ], + "name": "Adventure Sunglasses", + "short_desc": "Experience the outdoors in style with our Adventure Sunglasses. These high-quality sunglasses provide UV protection and are designed for maximum comfort during your treks and hikes.", + "long_desc": "

Upgrade your outdoor adventures with our Adventure Sunglasses. Whether you're trekking through rugged terrain or relaxing at the campsite, these sunglasses offer superior UV protection and glare reduction. Featuring durable frames and polarized lenses, they provide clarity and comfort in any environment.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 2 + } + }, + "price": { + "listed_value": "999.0", + "currency": "INR", + "value": "999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sunglasses" + }, + { + "value": "adventure" + }, + { + "value": "UV protection" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + }, + "country": { + "code": "IND" + }, + "area_code": "110001" + }, + "contact": { + "phone": "6251423251", + "email": "santosh.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Santosh Kumar" + }, + "contact": { + "phone": "6251423251" + } + }, + "state": { + "descriptor": { + "code": "CANCELLED", + "short_desc": "Cancelled due to ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "2000.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1998.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "2.0" + } + } + ] + }, + "billing": { + "name": "Santosh Kumar", + "phone": "6251423251", + "email": "santosh.k@gmail.com", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "2000", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/confirm/confirm.json b/examples/DSNP/confirm/confirm.json new file mode 100644 index 0000000..f924eb9 --- /dev/null +++ b/examples/DSNP/confirm/confirm.json @@ -0,0 +1,99 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "confirm", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f" + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "quantity": { + "selected": { + "count": 2 + } + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + }, + "country": { + "code": "IND" + }, + "area_code": "110001" + }, + "contact": { + "phone": "6251423251", + "email": "santosh.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Santosh Kumar" + }, + "contact": { + "phone": "6251423251" + } + } + } + ], + "billing": { + "name": "Santosh Kumar", + "phone": "6251423251", + "email": "santosh.k@gmail.com", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "2000", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/confirm/on-confirm.json b/examples/DSNP/confirm/on-confirm.json new file mode 100644 index 0000000..34108e8 --- /dev/null +++ b/examples/DSNP/confirm/on-confirm.json @@ -0,0 +1,196 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_confirm", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f", + "descriptor": { + "name": "WorldHikes", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_4CQBASVPFbCXIytAUZF7c00_dS-2bSmF1huQXWmnCg&s" + ], + "short_desc": "WorldHikes is dedicated to serving outdoor enthusiasts with top-quality trekking gear for their adventures around the globe. From premium sunglasses and ergonomic backpacks to efficient camping stoves and reliable headlamps, we ensure that every hiker is equipped with the best tools for their journey. Join us in exploring the world's most breathtaking trails!" + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "descriptor": { + "images": [ + "https://m.media-amazon.com/images/I/61kQ4hs3LpL._AC_UY1100_.jpg" + ], + "name": "Adventure Sunglasses", + "short_desc": "Experience the outdoors in style with our Adventure Sunglasses. These high-quality sunglasses provide UV protection and are designed for maximum comfort during your treks and hikes.", + "long_desc": "

Upgrade your outdoor adventures with our Adventure Sunglasses. Whether you're trekking through rugged terrain or relaxing at the campsite, these sunglasses offer superior UV protection and glare reduction. Featuring durable frames and polarized lenses, they provide clarity and comfort in any environment.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 2 + } + }, + "price": { + "listed_value": "999.0", + "currency": "INR", + "value": "999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sunglasses" + }, + { + "value": "adventure" + }, + { + "value": "UV protection" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + }, + "country": { + "code": "IND" + }, + "area_code": "110001" + }, + "contact": { + "phone": "6251423251", + "email": "santosh.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Santosh Kumar" + }, + "contact": { + "phone": "6251423251" + } + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "2000.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1998.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "2.0" + } + } + ] + }, + "billing": { + "name": "Santosh Kumar", + "phone": "6251423251", + "email": "santosh.k@gmail.com", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "2000", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/init/init.json b/examples/DSNP/init/init.json new file mode 100644 index 0000000..da7c89d --- /dev/null +++ b/examples/DSNP/init/init.json @@ -0,0 +1,86 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "init", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f" + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "quantity": { + "selected": { + "count": 2 + } + } + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + }, + "country": { + "code": "IND" + }, + "area_code": "110001" + }, + "contact": { + "phone": "6251423251", + "email": "santosh.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Santosh Kumar" + }, + "contact": { + "phone": "6251423251" + } + } + } + ], + "billing": { + "name": "Santosh Kumar", + "phone": "6251423251", + "email": "santosh.k@gmail.com", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + } + } + } + } +} \ No newline at end of file diff --git a/examples/DSNP/init/on-init.json b/examples/DSNP/init/on-init.json new file mode 100644 index 0000000..2a40e87 --- /dev/null +++ b/examples/DSNP/init/on-init.json @@ -0,0 +1,184 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_init", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f", + "descriptor": { + "name": "WorldHikes", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_4CQBASVPFbCXIytAUZF7c00_dS-2bSmF1huQXWmnCg&s" + ], + "short_desc": "WorldHikes is dedicated to serving outdoor enthusiasts with top-quality trekking gear for their adventures around the globe. From premium sunglasses and ergonomic backpacks to efficient camping stoves and reliable headlamps, we ensure that every hiker is equipped with the best tools for their journey. Join us in exploring the world's most breathtaking trails!" + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "descriptor": { + "images": [ + "https://m.media-amazon.com/images/I/61kQ4hs3LpL._AC_UY1100_.jpg" + ], + "name": "Adventure Sunglasses", + "short_desc": "Experience the outdoors in style with our Adventure Sunglasses. These high-quality sunglasses provide UV protection and are designed for maximum comfort during your treks and hikes.", + "long_desc": "

Upgrade your outdoor adventures with our Adventure Sunglasses. Whether you're trekking through rugged terrain or relaxing at the campsite, these sunglasses offer superior UV protection and glare reduction. Featuring durable frames and polarized lenses, they provide clarity and comfort in any environment.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 2 + } + }, + "price": { + "listed_value": "999.0", + "currency": "INR", + "value": "999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sunglasses" + }, + { + "value": "adventure" + }, + { + "value": "UV protection" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + }, + "country": { + "code": "IND" + }, + "area_code": "110001" + }, + "contact": { + "phone": "6251423251", + "email": "santosh.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Santosh Kumar" + }, + "contact": { + "phone": "6251423251" + } + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "2000.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1998.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "2.0" + } + } + ] + }, + "billing": { + "name": "Santosh Kumar", + "phone": "6251423251", + "email": "santosh.k@gmail.com", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "2000", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/rating/on-rating.json b/examples/DSNP/rating/on-rating.json new file mode 100644 index 0000000..701851c --- /dev/null +++ b/examples/DSNP/rating/on-rating.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_rating", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "feedback_form": { + "form": { + "url": "https://inds-network-bpp.becknprotocol.io/feedback/portal" + } + } + } +} \ No newline at end of file diff --git a/examples/DSNP/rating/rating.json b/examples/DSNP/rating/rating.json new file mode 100644 index 0000000..00a17bc --- /dev/null +++ b/examples/DSNP/rating/rating.json @@ -0,0 +1,31 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "rating", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "ratings": [ + { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "rating_category": "Order", + "value": "8" + } + ] + } +} \ No newline at end of file diff --git a/examples/DSNP/search/on_search.json b/examples/DSNP/search/on_search.json new file mode 100644 index 0000000..6559d4f --- /dev/null +++ b/examples/DSNP/search/on_search.json @@ -0,0 +1,335 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_search", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z", + "ttl": "PT10M" + }, + "message": { + "catalog": { + "descriptor": { + "name": "HBO" + }, + "providers": [ + { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f", + "descriptor": { + "name": "WorldHikes", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_4CQBASVPFbCXIytAUZF7c00_dS-2bSmF1huQXWmnCg&s" + ], + "short_desc": "WorldHikes is dedicated to serving outdoor enthusiasts with top-quality trekking gear for their adventures around the globe. From premium sunglasses and ergonomic backpacks to efficient camping stoves and reliable headlamps, we ensure that every hiker is equipped with the best tools for their journey. Join us in exploring the world's most breathtaking trails!" + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ], + "categories": [ + { + "id": "c1", + "descriptor": { + "code": "dsnp", + "name": "dsnp" + } + } + ], + "fulfillments": [ + { + "id": "1", + "type": "delivery" + } + ], + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "descriptor": { + "images": [ + "https://m.media-amazon.com/images/I/61kQ4hs3LpL._AC_UY1100_.jpg" + ], + "name": "Adventure Sunglasses", + "short_desc": "Experience the outdoors in style with our Adventure Sunglasses. These high-quality sunglasses provide UV protection and are designed for maximum comfort during your treks and hikes.", + "long_desc": "

Upgrade your outdoor adventures with our Adventure Sunglasses. Whether you're trekking through rugged terrain or relaxing at the campsite, these sunglasses offer superior UV protection and glare reduction. Featuring durable frames and polarized lenses, they provide clarity and comfort in any environment.

" + }, + "matched": true, + "price": { + "listed_value": "999.0", + "currency": "INR", + "value": "999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sunglasses" + }, + { + "value": "adventure" + }, + { + "value": "UV protection" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + }, + { + "id": "4dfe2998-17e0-45cc-a52e-49f3f5a8eb47", + "descriptor": { + "images": [ + "https://bombaytrooper.com/wp-content/uploads/2019/03/brownexplorer-360-01-1.jpg" + ], + "name": "Explorer Backpack", + "short_desc": "The Explorer Backpack is your reliable companion for all your outdoor adventures. With its spacious compartments, ergonomic design, and durable construction, it's perfect for hiking, camping, and backpacking.", + "long_desc": "

Embark on your next adventure with confidence with our Explorer Backpack. This versatile backpack features multiple compartments and pockets to keep your gear organized and easily accessible. The ergonomic design and adjustable straps ensure a comfortable fit, while the durable materials provide long-lasting performance in rugged conditions.

" + }, + "matched": true, + "price": { + "listed_value": "1999.0", + "currency": "INR", + "value": "1999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "backpack" + }, + { + "value": "explorer" + }, + { + "value": "camping" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + }, + { + "id": "82c8d8a1-eb10-44de-ba78-cb37c2e98630", + "descriptor": { + "images": [ + "https://images-cdn.ubuy.co.in/6605ee95cae6cb675d0b9d59-onlyfire-rocket-stove-outdoor-portable.jpg" + ], + "name": "Campfire Camping Stove", + "short_desc": "The Campfire Camping Stove is a must-have for any outdoor enthusiast. Compact, lightweight, and easy to use, it's perfect for cooking delicious meals on your camping trips.", + "long_desc": "

Take your outdoor cooking to the next level with our Campfire Camping Stove. Designed for portability and convenience, this compact stove is ideal for backpacking, camping, and picnicking. With its adjustable flame and sturdy construction, it's perfect for boiling water, cooking meals, and making s'mores around the campfire.

" + }, + "matched": true, + "price": { + "listed_value": "1499.0", + "currency": "INR", + "value": "1499.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "camping stove" + }, + { + "value": "campfire" + }, + { + "value": "outdoor cooking" + }, + { + "value": "camping gear" + }, + { + "value": "trekking" + }, + { + "value": "backpacking" + } + ] + } + ] + }, + { + "id": "f8ff1168-f7d0-4b14-9437-2b20f54f0f40", + "descriptor": { + "images": [ + "https://cdni.llbean.net/is/image/wim/518417_51386_41?hei=1095&wid=950&resMode=sharp2&defaultImage=llbprod/518417_51386_41" + ], + "name": "Trailblazer Headlamp", + "short_desc": "Illuminate your path with our Trailblazer Headlamp. Lightweight, durable, and easy to use, it's the perfect companion for night hikes, camping trips, and outdoor adventures.", + "long_desc": "

Light up the night with our Trailblazer Headlamp. Whether you're exploring dark trails, setting up camp, or reading in your tent, this versatile headlamp provides bright, reliable illumination. With adjustable brightness settings and a comfortable strap, it's designed for comfort and convenience on all your outdoor adventures.

" + }, + "matched": true, + "price": { + "listed_value": "799.0", + "currency": "INR", + "value": "799.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "headlamp" + }, + { + "value": "trailblazer" + }, + { + "value": "night hiking" + }, + { + "value": "camping gear" + }, + { + "value": "outdoor lighting" + }, + { + "value": "trekking" + } + ] + } + ] + }, + { + "id": "1b38f7e7-18f7-4978-9a2f-816a2d9029af", + "descriptor": { + "images": [ + "https://www.seatosummitindia.com/cdn/shop/products/S4131_TraverseTvIIISleepingBag_Angle_ForWeb_14d6bbde-fae8-441e-b770-25552896653f.jpg?v=1661858175" + ], + "name": "Summit Sleeping Bag", + "short_desc": "Stay warm and comfortable on your camping trips with our Summit Sleeping Bag. Designed for cold weather conditions, it's perfect for overnight stays in the great outdoors.", + "long_desc": "

Get a restful night's sleep in any environment with our Summit Sleeping Bag. Whether you're camping in the mountains or backpacking through the wilderness, this sleeping bag provides warmth and comfort in cold weather conditions. Featuring a soft, cozy lining and a durable outer shell, it's designed for durability and performance on all your outdoor adventures.

" + }, + "matched": true, + "price": { + "listed_value": "2499.0", + "currency": "INR", + "value": "2499.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sleeping bag" + }, + { + "value": "summit" + }, + { + "value": "camping gear" + }, + { + "value": "cold weather" + }, + { + "value": "outdoor sleeping" + }, + { + "value": "trekking" + } + ] + } + ] + } + ] + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/search/search_by_category.json b/examples/DSNP/search/search_by_category.json new file mode 100644 index 0000000..86686a9 --- /dev/null +++ b/examples/DSNP/search/search_by_category.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "search", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "timestamp": "2023-11-06T09:41:09.673Z" + }, + "message": { + "intent": { + "category": { + "descriptor": { + "code": "electronics" + } + } + } + } +} \ No newline at end of file diff --git a/examples/DSNP/search/search_by_location.json b/examples/DSNP/search/search_by_location.json new file mode 100644 index 0000000..8d659e9 --- /dev/null +++ b/examples/DSNP/search/search_by_location.json @@ -0,0 +1,34 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "search", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "timestamp": "2023-11-06T09:41:09.673Z" + }, + "message": { + "intent": { + "fulfillment": { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "28.4594965,77.0266383" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/examples/DSNP/search/search_by_name.json b/examples/DSNP/search/search_by_name.json new file mode 100644 index 0000000..1f24473 --- /dev/null +++ b/examples/DSNP/search/search_by_name.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "search", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "timestamp": "2023-11-06T09:41:09.673Z" + }, + "message": { + "intent": { + "item": { + "descriptor": { + "name": "earphone" + } + } + } + } +} \ No newline at end of file diff --git a/examples/DSNP/select/on-select.json b/examples/DSNP/select/on-select.json new file mode 100644 index 0000000..e18bb27 --- /dev/null +++ b/examples/DSNP/select/on-select.json @@ -0,0 +1,130 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_select", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f", + "descriptor": { + "name": "WorldHikes", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_4CQBASVPFbCXIytAUZF7c00_dS-2bSmF1huQXWmnCg&s" + ], + "short_desc": "WorldHikes is dedicated to serving outdoor enthusiasts with top-quality trekking gear for their adventures around the globe. From premium sunglasses and ergonomic backpacks to efficient camping stoves and reliable headlamps, we ensure that every hiker is equipped with the best tools for their journey. Join us in exploring the world's most breathtaking trails!" + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "descriptor": { + "images": [ + "https://m.media-amazon.com/images/I/61kQ4hs3LpL._AC_UY1100_.jpg" + ], + "name": "Adventure Sunglasses", + "short_desc": "Experience the outdoors in style with our Adventure Sunglasses. These high-quality sunglasses provide UV protection and are designed for maximum comfort during your treks and hikes.", + "long_desc": "

Upgrade your outdoor adventures with our Adventure Sunglasses. Whether you're trekking through rugged terrain or relaxing at the campsite, these sunglasses offer superior UV protection and glare reduction. Featuring durable frames and polarized lenses, they provide clarity and comfort in any environment.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 2 + } + }, + "price": { + "listed_value": "999.0", + "currency": "INR", + "value": "999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sunglasses" + }, + { + "value": "adventure" + }, + { + "value": "UV protection" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "id": "1" + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "2000.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1998.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "2.0" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/examples/DSNP/select/select.json b/examples/DSNP/select/select.json new file mode 100644 index 0000000..6855cd5 --- /dev/null +++ b/examples/DSNP/select/select.json @@ -0,0 +1,44 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "select", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f" + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "quantity": { + "selected": { + "count": 2 + } + } + } + ], + "fulfillments": [ + { + "id": "1" + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/status/on-status.json b/examples/DSNP/status/on-status.json new file mode 100644 index 0000000..e10d9e5 --- /dev/null +++ b/examples/DSNP/status/on-status.json @@ -0,0 +1,203 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_status", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f", + "descriptor": { + "name": "WorldHikes", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_4CQBASVPFbCXIytAUZF7c00_dS-2bSmF1huQXWmnCg&s" + ], + "short_desc": "WorldHikes is dedicated to serving outdoor enthusiasts with top-quality trekking gear for their adventures around the globe. From premium sunglasses and ergonomic backpacks to efficient camping stoves and reliable headlamps, we ensure that every hiker is equipped with the best tools for their journey. Join us in exploring the world's most breathtaking trails!" + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "descriptor": { + "images": [ + "https://m.media-amazon.com/images/I/61kQ4hs3LpL._AC_UY1100_.jpg" + ], + "name": "Adventure Sunglasses", + "short_desc": "Experience the outdoors in style with our Adventure Sunglasses. These high-quality sunglasses provide UV protection and are designed for maximum comfort during your treks and hikes.", + "long_desc": "

Upgrade your outdoor adventures with our Adventure Sunglasses. Whether you're trekking through rugged terrain or relaxing at the campsite, these sunglasses offer superior UV protection and glare reduction. Featuring durable frames and polarized lenses, they provide clarity and comfort in any environment.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 2 + } + }, + "price": { + "listed_value": "999.0", + "currency": "INR", + "value": "999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sunglasses" + }, + { + "value": "adventure" + }, + { + "value": "UV protection" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + }, + "country": { + "code": "IND" + }, + "area_code": "110001" + }, + "contact": { + "phone": "6251423251", + "email": "santosh.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Santosh Kumar" + }, + "contact": { + "phone": "6251423251" + } + }, + "state": { + "descriptor": { + "code": "PACKING", + "short_desc": "Order is getting packed ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "2000.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1998.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "2.0" + } + } + ] + }, + "billing": { + "name": "Santosh Kumar", + "phone": "6251423251", + "email": "santosh.k@gmail.com", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "2000", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/status/status.json b/examples/DSNP/status/status.json new file mode 100644 index 0000000..d43aa0d --- /dev/null +++ b/examples/DSNP/status/status.json @@ -0,0 +1,25 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "status", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order_id": "b989c9a9-f603-4d44-b38d-26fd72286b38" + } +} \ No newline at end of file diff --git a/examples/DSNP/support/on-support.json b/examples/DSNP/support/on-support.json new file mode 100644 index 0000000..d4892ca --- /dev/null +++ b/examples/DSNP/support/on-support.json @@ -0,0 +1,31 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_support", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "1f507212-23fe-4acc-a34e-d25b459ad105", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "support": { + "ref_id": "d4975df5-b18c-4772-80ad", + "callback_phone": "+91 8765495826", + "phone": "+91 9876543298", + "email": "abcd.support@support.com" + } + } +} \ No newline at end of file diff --git a/examples/DSNP/support/support.json b/examples/DSNP/support/support.json new file mode 100644 index 0000000..60a7552 --- /dev/null +++ b/examples/DSNP/support/support.json @@ -0,0 +1,30 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "support", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "1f507212-23fe-4acc-a34e-d25b459ad105", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "support": { + "ref_id": "894789-43954", + "phone": "+91 4444444444", + "email": "me@gmail.com" + } + } +} \ No newline at end of file diff --git a/examples/DSNP/track/on-track.json b/examples/DSNP/track/on-track.json new file mode 100644 index 0000000..8a4f61f --- /dev/null +++ b/examples/DSNP/track/on-track.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_track", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "fd585827-7607-4ce8-b257-9597b0ed0f52", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "tracking": { + "url": "https://abc/tracking/201f6fa2-a2f7-42e7-a2e5-8947398747", + "status": "active" + } + } +} \ No newline at end of file diff --git a/examples/DSNP/track/track.json b/examples/DSNP/track/track.json new file mode 100644 index 0000000..4888882 --- /dev/null +++ b/examples/DSNP/track/track.json @@ -0,0 +1,26 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "track", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "fd585827-7607-4ce8-b257-9597b0ed0f52", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "order_id": "b989c9a9-f603-4d44-b38d-26fd72286b38" + } +} \ No newline at end of file diff --git a/examples/DSNP/update/on-update.json b/examples/DSNP/update/on-update.json new file mode 100644 index 0000000..9b4f178 --- /dev/null +++ b/examples/DSNP/update/on-update.json @@ -0,0 +1,203 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "on_update", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "af304e37-2a64-4d7d-b61c-8cbb79b48d9f", + "descriptor": { + "name": "WorldHikes", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_4CQBASVPFbCXIytAUZF7c00_dS-2bSmF1huQXWmnCg&s" + ], + "short_desc": "WorldHikes is dedicated to serving outdoor enthusiasts with top-quality trekking gear for their adventures around the globe. From premium sunglasses and ergonomic backpacks to efficient camping stoves and reliable headlamps, we ensure that every hiker is equipped with the best tools for their journey. Join us in exploring the world's most breathtaking trails!" + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "2e0c2b39-84d2-4b58-af8b-8b6d7b0c3f97", + "descriptor": { + "images": [ + "https://m.media-amazon.com/images/I/61kQ4hs3LpL._AC_UY1100_.jpg" + ], + "name": "Adventure Sunglasses", + "short_desc": "Experience the outdoors in style with our Adventure Sunglasses. These high-quality sunglasses provide UV protection and are designed for maximum comfort during your treks and hikes.", + "long_desc": "

Upgrade your outdoor adventures with our Adventure Sunglasses. Whether you're trekking through rugged terrain or relaxing at the campsite, these sunglasses offer superior UV protection and glare reduction. Featuring durable frames and polarized lenses, they provide clarity and comfort in any environment.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 2 + } + }, + "price": { + "listed_value": "999.0", + "currency": "INR", + "value": "999.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "sunglasses" + }, + { + "value": "adventure" + }, + { + "value": "UV protection" + }, + { + "value": "hiking" + }, + { + "value": "trekking" + }, + { + "value": "outdoor gear" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + }, + "country": { + "code": "IND" + }, + "area_code": "110001" + }, + "contact": { + "phone": "6251423251", + "email": "santosh.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Santosh Kumar" + }, + "contact": { + "phone": "+91-8056475647" + } + }, + "state": { + "descriptor": { + "code": "ORDER_UPDATED", + "short_desc": "Contact detail is updated..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "2000.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "1998.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "2.0" + } + } + ] + }, + "billing": { + "name": "Santosh Kumar", + "phone": "6251423251", + "email": "santosh.k@gmail.com", + "address": "151-e, janpath road,New Delhi, India", + "city": { + "name": "New Delhi" + }, + "state": { + "name": "Delhi" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "2000", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/DSNP/update/update.json b/examples/DSNP/update/update.json new file mode 100644 index 0000000..faf0777 --- /dev/null +++ b/examples/DSNP/update/update.json @@ -0,0 +1,38 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:011" + } + }, + "action": "update", + "version": "1.1.0", + "bap_id": "dsnp-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "dsnp-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "090adec2-696d-47c9-8452-797a91e7bebc", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "fulfillments": [ + { + "customer": { + "contact": { + "phone": "+91-8056475647" + } + } + } + ] + }, + "update_target": "order.fulfillments[0].customer.contact.phone" + } +} \ No newline at end of file diff --git a/examples/OSM/cancel/cancel.json b/examples/OSM/cancel/cancel.json new file mode 100644 index 0000000..0f4548d --- /dev/null +++ b/examples/OSM/cancel/cancel.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "cancel", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order_id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "cancellation_reason_id": "4", + "descriptor": { + "short_desc": "Order delayed" + } + } +} \ No newline at end of file diff --git a/examples/OSM/cancel/on-cancel.json b/examples/OSM/cancel/on-cancel.json new file mode 100644 index 0000000..99cdb09 --- /dev/null +++ b/examples/OSM/cancel/on-cancel.json @@ -0,0 +1,222 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_cancel", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421", + "descriptor": { + "name": "Le Petit Café", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnqGGKCB53sktJwBu6VtxqWGvvzggYV9t57U7e9147vw&s" + ], + "short_desc": "Indulge in the charm of Parisian culture at Le Petit Café, where every sip of coffee and bite of pastry brings you closer to the heart of the city. With a cozy ambiance and a menu inspired by French culinary traditions, we invite you to savor the flavors of Paris in every moment." + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "descriptor": { + "images": [ + "https://assets.afcdn.com/recipe/20131024/24713_w1024h576c1cx2747cy1872.jpg" + ], + "name": "Croissant au Beurre", + "short_desc": "Enjoy a classic French pastry with our Croissant au Beurre. Flaky, buttery, and irresistible, it's the perfect way to start your day.", + "long_desc": "

Indulge in the rich flavor and delicate texture of our Croissant au Beurre. Made with layers of buttery dough that are folded and baked to perfection, this iconic French pastry is a true delight for the senses. Pair it with a cup of freshly brewed coffee or a steaming hot chocolate for a truly decadent treat.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 1 + } + }, + "price": { + "listed_value": "150.0", + "currency": "INR", + "value": "150.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "croissant" + }, + { + "value": "pastry" + }, + { + "value": "French" + }, + { + "value": "breakfast" + }, + { + "value": "buttery" + }, + { + "value": "flaky" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.5" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + }, + "country": { + "code": "FRA" + }, + "area_code": "75020" + }, + "contact": { + "phone": "0612345678", + "email": "lisa.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Lisa K" + }, + "contact": { + "phone": "0612345678" + } + }, + "state": { + "descriptor": { + "code": "CANCELLED", + "short_desc": "Cancelled due to ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "200.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "150.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "50.0" + } + } + ] + }, + "billing": { + "name": "Lisa K", + "phone": "0612345678", + "email": "lisa.k@gmail.com", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "200", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/confirm/confirm.json b/examples/OSM/confirm/confirm.json new file mode 100644 index 0000000..fd158d9 --- /dev/null +++ b/examples/OSM/confirm/confirm.json @@ -0,0 +1,99 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "confirm", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421" + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "quantity": { + "selected": { + "count": 1 + } + } + } + ], + "fulfillments": [ + { + "id": "2", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + }, + "country": { + "code": "FRA" + }, + "area_code": "75020" + }, + "contact": { + "phone": "0612345678", + "email": "lisa.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Lisa K" + }, + "contact": { + "phone": "0612345678" + } + } + } + ], + "billing": { + "name": "Lisa K", + "phone": "0612345678", + "email": "lisa.k@gmail.com", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "200", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/confirm/on-confirm.json b/examples/OSM/confirm/on-confirm.json new file mode 100644 index 0000000..e01914c --- /dev/null +++ b/examples/OSM/confirm/on-confirm.json @@ -0,0 +1,215 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_confirm", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421", + "descriptor": { + "name": "Le Petit Café", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnqGGKCB53sktJwBu6VtxqWGvvzggYV9t57U7e9147vw&s" + ], + "short_desc": "Indulge in the charm of Parisian culture at Le Petit Café, where every sip of coffee and bite of pastry brings you closer to the heart of the city. With a cozy ambiance and a menu inspired by French culinary traditions, we invite you to savor the flavors of Paris in every moment." + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "descriptor": { + "images": [ + "https://assets.afcdn.com/recipe/20131024/24713_w1024h576c1cx2747cy1872.jpg" + ], + "name": "Croissant au Beurre", + "short_desc": "Enjoy a classic French pastry with our Croissant au Beurre. Flaky, buttery, and irresistible, it's the perfect way to start your day.", + "long_desc": "

Indulge in the rich flavor and delicate texture of our Croissant au Beurre. Made with layers of buttery dough that are folded and baked to perfection, this iconic French pastry is a true delight for the senses. Pair it with a cup of freshly brewed coffee or a steaming hot chocolate for a truly decadent treat.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 1 + } + }, + "price": { + "listed_value": "150.0", + "currency": "INR", + "value": "150.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "croissant" + }, + { + "value": "pastry" + }, + { + "value": "French" + }, + { + "value": "breakfast" + }, + { + "value": "buttery" + }, + { + "value": "flaky" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.5" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + }, + "country": { + "code": "FRA" + }, + "area_code": "75020" + }, + "contact": { + "phone": "0612345678", + "email": "lisa.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Lisa K" + }, + "contact": { + "phone": "0612345678" + } + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "200.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "150.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "50.0" + } + } + ] + }, + "billing": { + "name": "Lisa K", + "phone": "0612345678", + "email": "lisa.k@gmail.com", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "200", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/init/init.json b/examples/OSM/init/init.json new file mode 100644 index 0000000..e71dac3 --- /dev/null +++ b/examples/OSM/init/init.json @@ -0,0 +1,86 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "init", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421" + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "quantity": { + "selected": { + "count": 1 + } + } + } + ], + "fulfillments": [ + { + "id": "2", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + }, + "country": { + "code": "FRA" + }, + "area_code": "75020" + }, + "contact": { + "phone": "0612345678", + "email": "lisa.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Lisa K" + }, + "contact": { + "phone": "0612345678" + } + } + } + ], + "billing": { + "name": "Lisa K", + "phone": "0612345678", + "email": "lisa.k@gmail.com", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + } + } + } + } +} \ No newline at end of file diff --git a/examples/OSM/init/on-init.json b/examples/OSM/init/on-init.json new file mode 100644 index 0000000..cd15bbd --- /dev/null +++ b/examples/OSM/init/on-init.json @@ -0,0 +1,203 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_init", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421", + "descriptor": { + "name": "Le Petit Café", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnqGGKCB53sktJwBu6VtxqWGvvzggYV9t57U7e9147vw&s" + ], + "short_desc": "Indulge in the charm of Parisian culture at Le Petit Café, where every sip of coffee and bite of pastry brings you closer to the heart of the city. With a cozy ambiance and a menu inspired by French culinary traditions, we invite you to savor the flavors of Paris in every moment." + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "descriptor": { + "images": [ + "https://assets.afcdn.com/recipe/20131024/24713_w1024h576c1cx2747cy1872.jpg" + ], + "name": "Croissant au Beurre", + "short_desc": "Enjoy a classic French pastry with our Croissant au Beurre. Flaky, buttery, and irresistible, it's the perfect way to start your day.", + "long_desc": "

Indulge in the rich flavor and delicate texture of our Croissant au Beurre. Made with layers of buttery dough that are folded and baked to perfection, this iconic French pastry is a true delight for the senses. Pair it with a cup of freshly brewed coffee or a steaming hot chocolate for a truly decadent treat.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 1 + } + }, + "price": { + "listed_value": "150.0", + "currency": "INR", + "value": "150.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "croissant" + }, + { + "value": "pastry" + }, + { + "value": "French" + }, + { + "value": "breakfast" + }, + { + "value": "buttery" + }, + { + "value": "flaky" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.5" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + }, + "country": { + "code": "FRA" + }, + "area_code": "75020" + }, + "contact": { + "phone": "0612345678", + "email": "lisa.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Lisa K" + }, + "contact": { + "phone": "0612345678" + } + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "200.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "150.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "50.0" + } + } + ] + }, + "billing": { + "name": "Lisa K", + "phone": "0612345678", + "email": "lisa.k@gmail.com", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + } + }, + "payments": [ + { + "status": "NOT-PAID", + "type": "PRE-FULFILLMENT", + "params": { + "amount": "200", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/rating/on-rating.json b/examples/OSM/rating/on-rating.json new file mode 100644 index 0000000..5fa7c34 --- /dev/null +++ b/examples/OSM/rating/on-rating.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_rating", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "feedback_form": { + "form": { + "url": "https://inds-network-bpp.becknprotocol.io/feedback/portal" + } + } + } +} \ No newline at end of file diff --git a/examples/OSM/rating/rating.json b/examples/OSM/rating/rating.json new file mode 100644 index 0000000..649a37b --- /dev/null +++ b/examples/OSM/rating/rating.json @@ -0,0 +1,31 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "rating", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "ratings": [ + { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "rating_category": "Order", + "value": "8" + } + ] + } +} \ No newline at end of file diff --git a/examples/OSM/search/on_search.json b/examples/OSM/search/on_search.json new file mode 100644 index 0000000..30cf2b3 --- /dev/null +++ b/examples/OSM/search/on_search.json @@ -0,0 +1,434 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_search", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z", + "ttl": "PT10M" + }, + "message": { + "catalog": { + "descriptor": { + "name": "HBO" + }, + "providers": [ + { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421", + "descriptor": { + "name": "Le Petit Café", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnqGGKCB53sktJwBu6VtxqWGvvzggYV9t57U7e9147vw&s" + ], + "short_desc": "Indulge in the charm of Parisian culture at Le Petit Café, where every sip of coffee and bite of pastry brings you closer to the heart of the city. With a cozy ambiance and a menu inspired by French culinary traditions, we invite you to savor the flavors of Paris in every moment." + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ], + "categories": [ + { + "id": "c1", + "descriptor": { + "code": "osm-restaurant", + "name": "osm-restaurant" + } + } + ], + "fulfillments": [ + { + "id": "1", + "type": "dine-ine" + }, + { + "id": "2", + "type": "delivery" + } + ], + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "descriptor": { + "images": [ + "https://assets.afcdn.com/recipe/20131024/24713_w1024h576c1cx2747cy1872.jpg" + ], + "name": "Croissant au Beurre", + "short_desc": "Enjoy a classic French pastry with our Croissant au Beurre. Flaky, buttery, and irresistible, it's the perfect way to start your day.", + "long_desc": "

Indulge in the rich flavor and delicate texture of our Croissant au Beurre. Made with layers of buttery dough that are folded and baked to perfection, this iconic French pastry is a true delight for the senses. Pair it with a cup of freshly brewed coffee or a steaming hot chocolate for a truly decadent treat.

" + }, + "matched": true, + "price": { + "listed_value": "150.0", + "currency": "INR", + "value": "150.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1", "2" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "croissant" + }, + { + "value": "pastry" + }, + { + "value": "French" + }, + { + "value": "breakfast" + }, + { + "value": "buttery" + }, + { + "value": "flaky" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.5" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + }, + { + "id": "ecfd8b13-1f29-4a49-8df2-f22e60ec6c42", + "descriptor": { + "images": [ + "https://images.services.kitchenstories.io/9GIeqQwpeGj8Te6zRGt07XzEETo=/3840x0/filters:quality(80)/images.kitchenstories.io/wagtailOriginalImages/R23-final-photo-4.jpg" + ], + "name": "Coq au Vin", + "short_desc": "Savor the flavors of France with our Coq au Vin. Tender chicken simmered in red wine sauce with mushrooms and onions. ", + "long_desc": "

Experience a taste of traditional French cuisine with our Coq au Vin. This hearty dish features tender chicken braised in a rich red wine sauce, flavored with aromatic herbs and vegetables. Served with a side of buttery mashed potatoes or crusty baguette, it's a comforting and satisfying meal that's perfect for chilly evenings.

" + }, + "matched": true, + "price": { + "listed_value": "350.0", + "currency": "INR", + "value": "350.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "coq au vin" + }, + { + "value": "French cuisine" + }, + { + "value": "chicken" + }, + { + "value": "red wine sauce" + }, + { + "value": "hearty" + }, + { + "value": "comfort food" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.7" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + }, + { + "id": "ae4de855-ecdc-4972-8a89-5b34c0df4fb1", + "descriptor": { + "images": [ + "https://www.allrecipes.com/thmb/plG7UKAQvPQdn04AA_SBfj88ki0=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/17515-quiche-lorraine-i-DDMFS-4x3-efda035d462a4242b7a18f39e21df047.jpg" + ], + "name": "Quiche Lorraine", + "short_desc": "Delight your taste buds with our Quiche Lorraine. A savory pastry filled with bacon, cheese, and creamy custard.", + "long_desc": "

Indulge in the decadent flavors of our Quiche Lorraine. This classic French dish features a flaky pastry crust filled with a savory mixture of crispy bacon, melted cheese, and rich custard. Served warm from the oven, it's the perfect choice for breakfast, brunch, or a light lunch.

" + }, + "matched": true, + "price": { + "listed_value": "250.0", + "currency": "INR", + "value": "250.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "quiche lorraine" + }, + { + "value": "savory pastry" + }, + { + "value": "bacon" + }, + { + "value": "cheese" + }, + { + "value": "creamy custard" + }, + { + "value": "brunch" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.6" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + }, + { + "id": "a7585c9b-2d3d-4264-a1e8-2af10d0f97c8", + "descriptor": { + "images": [ + "https://www.howtocook.recipes/wp-content/uploads/2021/05/Ratatouille-recipe.jpg" + ], + "name": "Ratatouille", + "short_desc": "Experience the flavors of Provence with our Ratatouille. A hearty vegetable stew bursting with Mediterranean herbs and spices.", + "long_desc": "

Transport yourself to the sun-drenched hills of Provence with our Ratatouille. This rustic vegetable stew is made with a colorful assortment of seasonal produce, including tomatoes, zucchini, eggplant, and bell peppers, simmered in a fragrant sauce of olive oil, garlic, and herbs. Served with crusty bread or fluffy couscous, it's a taste of summer in every bite.

" + }, + "matched": true, + "price": { + "listed_value": "300.0", + "currency": "INR", + "value": "300.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "ratatouille" + }, + { + "value": "Provencal cuisine" + }, + { + "value": "vegetable stew" + }, + { + "value": "Mediterranean" + }, + { + "value": "hearty" + }, + { + "value": "rustic" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.4" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + }, + { + "id": "d51d979a-bef0-4f61-b2ef-bc82c8d3be87", + "descriptor": { + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT4pO4pi73lPGNtIkZ8cKgLg0pI2_X7Kj4hTRpWeAj29Q&s" + ], + "name": "Steak Frites", + "short_desc": "Indulge in a French classic with our Steak Frites. Grilled steak served with golden fries and a side of tangy Dijon mustard.", + "long_desc": "

Treat yourself to the ultimate comfort food with our Steak Frites. Featuring a juicy grilled steak cooked to your liking, accompanied by a generous portion of crispy golden fries, it's a satisfying meal that never disappoints. Dip each bite in our tangy Dijon mustard for an extra burst of flavor.

" + }, + "matched": true, + "price": { + "listed_value": "400.0", + "currency": "INR", + "value": "400.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "steak frites" + }, + { + "value": "French cuisine" + }, + { + "value": "grilled steak" + }, + { + "value": "golden fries" + }, + { + "value": "comfort food" + }, + { + "value": "Dijon mustard" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.8" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Non-Veg" + } + ] + } + ] + } + ] + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/search/search_by_category.json b/examples/OSM/search/search_by_category.json new file mode 100644 index 0000000..3062f39 --- /dev/null +++ b/examples/OSM/search/search_by_category.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "search", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "timestamp": "2023-11-06T09:41:09.673Z" + }, + "message": { + "intent": { + "category": { + "descriptor": { + "code": "osm-restaurant" + } + } + } + } +} \ No newline at end of file diff --git a/examples/OSM/search/search_by_location.json b/examples/OSM/search/search_by_location.json new file mode 100644 index 0000000..dc255a8 --- /dev/null +++ b/examples/OSM/search/search_by_location.json @@ -0,0 +1,33 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "search", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "timestamp": "2023-11-06T09:41:09.673Z" + }, + "message": { + "intent": { + "fulfillment": { + "stops": [ + { + "location": { + "gps": "28.4594965,77.0266383" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/examples/OSM/search/search_by_name.json b/examples/OSM/search/search_by_name.json new file mode 100644 index 0000000..84b4624 --- /dev/null +++ b/examples/OSM/search/search_by_name.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "search", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "timestamp": "2023-11-06T09:41:09.673Z" + }, + "message": { + "intent": { + "item": { + "descriptor": { + "name": "Croissant" + } + } + } + } +} \ No newline at end of file diff --git a/examples/OSM/select/on-select.json b/examples/OSM/select/on-select.json new file mode 100644 index 0000000..7b4e0d5 --- /dev/null +++ b/examples/OSM/select/on-select.json @@ -0,0 +1,150 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_select", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421", + "descriptor": { + "name": "Le Petit Café", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnqGGKCB53sktJwBu6VtxqWGvvzggYV9t57U7e9147vw&s" + ], + "short_desc": "Indulge in the charm of Parisian culture at Le Petit Café, where every sip of coffee and bite of pastry brings you closer to the heart of the city. With a cozy ambiance and a menu inspired by French culinary traditions, we invite you to savor the flavors of Paris in every moment." + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "descriptor": { + "images": [ + "https://assets.afcdn.com/recipe/20131024/24713_w1024h576c1cx2747cy1872.jpg" + ], + "name": "Croissant au Beurre", + "short_desc": "Enjoy a classic French pastry with our Croissant au Beurre. Flaky, buttery, and irresistible, it's the perfect way to start your day.", + "long_desc": "

Indulge in the rich flavor and delicate texture of our Croissant au Beurre. Made with layers of buttery dough that are folded and baked to perfection, this iconic French pastry is a true delight for the senses. Pair it with a cup of freshly brewed coffee or a steaming hot chocolate for a truly decadent treat.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 1 + } + }, + "price": { + "listed_value": "150.0", + "currency": "INR", + "value": "150.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "croissant" + }, + { + "value": "pastry" + }, + { + "value": "French" + }, + { + "value": "breakfast" + }, + { + "value": "buttery" + }, + { + "value": "flaky" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.5" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "id": "2", + "type": "delivery" + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "200.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "150.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "50.0" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/examples/OSM/select/select.json b/examples/OSM/select/select.json new file mode 100644 index 0000000..2432a0b --- /dev/null +++ b/examples/OSM/select/select.json @@ -0,0 +1,44 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "select", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421" + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "quantity": { + "selected": { + "count": 1 + } + } + } + ], + "fulfillments": [ + { + "id": "2" + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/status/on-status.json b/examples/OSM/status/on-status.json new file mode 100644 index 0000000..cdc9911 --- /dev/null +++ b/examples/OSM/status/on-status.json @@ -0,0 +1,222 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_status", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421", + "descriptor": { + "name": "Le Petit Café", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnqGGKCB53sktJwBu6VtxqWGvvzggYV9t57U7e9147vw&s" + ], + "short_desc": "Indulge in the charm of Parisian culture at Le Petit Café, where every sip of coffee and bite of pastry brings you closer to the heart of the city. With a cozy ambiance and a menu inspired by French culinary traditions, we invite you to savor the flavors of Paris in every moment." + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "descriptor": { + "images": [ + "https://assets.afcdn.com/recipe/20131024/24713_w1024h576c1cx2747cy1872.jpg" + ], + "name": "Croissant au Beurre", + "short_desc": "Enjoy a classic French pastry with our Croissant au Beurre. Flaky, buttery, and irresistible, it's the perfect way to start your day.", + "long_desc": "

Indulge in the rich flavor and delicate texture of our Croissant au Beurre. Made with layers of buttery dough that are folded and baked to perfection, this iconic French pastry is a true delight for the senses. Pair it with a cup of freshly brewed coffee or a steaming hot chocolate for a truly decadent treat.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 1 + } + }, + "price": { + "listed_value": "150.0", + "currency": "INR", + "value": "150.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "croissant" + }, + { + "value": "pastry" + }, + { + "value": "French" + }, + { + "value": "breakfast" + }, + { + "value": "buttery" + }, + { + "value": "flaky" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.5" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + }, + "country": { + "code": "FRA" + }, + "area_code": "75020" + }, + "contact": { + "phone": "0612345678", + "email": "lisa.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Lisa K" + }, + "contact": { + "phone": "0612345678" + } + }, + "state": { + "descriptor": { + "code": "PACKING", + "short_desc": "Order is getting packed ..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "200.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "150.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "50.0" + } + } + ] + }, + "billing": { + "name": "Lisa K", + "phone": "0612345678", + "email": "lisa.k@gmail.com", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "200", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/status/status.json b/examples/OSM/status/status.json new file mode 100644 index 0000000..ab9c8c0 --- /dev/null +++ b/examples/OSM/status/status.json @@ -0,0 +1,25 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "status", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order_id": "b989c9a9-f603-4d44-b38d-26fd72286b38" + } +} \ No newline at end of file diff --git a/examples/OSM/support/on-support.json b/examples/OSM/support/on-support.json new file mode 100644 index 0000000..773d87f --- /dev/null +++ b/examples/OSM/support/on-support.json @@ -0,0 +1,31 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_support", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "1f507212-23fe-4acc-a34e-d25b459ad105", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "support": { + "ref_id": "d4975df5-b18c-4772-80ad", + "callback_phone": "+91 8765495826", + "phone": "+91 9876543298", + "email": "abcd.support@support.com" + } + } +} \ No newline at end of file diff --git a/examples/OSM/support/support.json b/examples/OSM/support/support.json new file mode 100644 index 0000000..fe2faae --- /dev/null +++ b/examples/OSM/support/support.json @@ -0,0 +1,30 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "support", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "1f507212-23fe-4acc-a34e-d25b459ad105", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "support": { + "ref_id": "894789-43954", + "phone": "+91 4444444444", + "email": "me@gmail.com" + } + } +} \ No newline at end of file diff --git a/examples/OSM/track/on-track.json b/examples/OSM/track/on-track.json new file mode 100644 index 0000000..ba5a2d0 --- /dev/null +++ b/examples/OSM/track/on-track.json @@ -0,0 +1,29 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_track", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "fd585827-7607-4ce8-b257-9597b0ed0f52", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "tracking": { + "url": "https://abc/tracking/201f6fa2-a2f7-42e7-a2e5-8947398747", + "status": "active" + } + } +} \ No newline at end of file diff --git a/examples/OSM/track/track.json b/examples/OSM/track/track.json new file mode 100644 index 0000000..57af6af --- /dev/null +++ b/examples/OSM/track/track.json @@ -0,0 +1,26 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "track", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "fd585827-7607-4ce8-b257-9597b0ed0f52", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "order_id": "b989c9a9-f603-4d44-b38d-26fd72286b38" + } +} \ No newline at end of file diff --git a/examples/OSM/update/on-update.json b/examples/OSM/update/on-update.json new file mode 100644 index 0000000..c992b4e --- /dev/null +++ b/examples/OSM/update/on-update.json @@ -0,0 +1,222 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "on_update", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "provider": { + "id": "4c291e58-1bcb-4a5c-a2cf-17f0e3365421", + "descriptor": { + "name": "Le Petit Café", + "images": [ + "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnqGGKCB53sktJwBu6VtxqWGvvzggYV9t57U7e9147vw&s" + ], + "short_desc": "Indulge in the charm of Parisian culture at Le Petit Café, where every sip of coffee and bite of pastry brings you closer to the heart of the city. With a cozy ambiance and a menu inspired by French culinary traditions, we invite you to savor the flavors of Paris in every moment." + }, + "locations": [ + { + "id": "1", + "gps": "12.936938,77.695088" + } + ] + }, + "items": [ + { + "id": "d4186a6d-4f62-4925-9ec5-83a1eb45b7cb", + "descriptor": { + "images": [ + "https://assets.afcdn.com/recipe/20131024/24713_w1024h576c1cx2747cy1872.jpg" + ], + "name": "Croissant au Beurre", + "short_desc": "Enjoy a classic French pastry with our Croissant au Beurre. Flaky, buttery, and irresistible, it's the perfect way to start your day.", + "long_desc": "

Indulge in the rich flavor and delicate texture of our Croissant au Beurre. Made with layers of buttery dough that are folded and baked to perfection, this iconic French pastry is a true delight for the senses. Pair it with a cup of freshly brewed coffee or a steaming hot chocolate for a truly decadent treat.

" + }, + "matched": true, + "quantity": { + "selected": { + "count": 1 + } + }, + "price": { + "listed_value": "150.0", + "currency": "INR", + "value": "150.0" + }, + "recommended": true, + "location_ids": [ + "1" + ], + "category_ids": [ + "c1" + ], + "fulfillment_ids": [ + "1" + ], + "tags": [ + { + "descriptor": { + "name": "search-tags" + }, + "list": [ + { + "value": "croissant" + }, + { + "value": "pastry" + }, + { + "value": "French" + }, + { + "value": "breakfast" + }, + { + "value": "buttery" + }, + { + "value": "flaky" + } + ] + }, + { + "descriptor": { + "name": "additional-info" + }, + "list": [ + { + "descriptor": { + "code": "rating" + }, + "value": "4.5" + }, + { + "descriptor": { + "code": "type" + }, + "value": "Veg" + } + ] + } + ] + } + ], + "fulfillments": [ + { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "13.2008459,77.708736", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + }, + "country": { + "code": "FRA" + }, + "area_code": "75020" + }, + "contact": { + "phone": "0612345678", + "email": "lisa.k@gmail.com" + } + } + ], + "customer": { + "person": { + "name": "Lisa K" + }, + "contact": { + "phone": "+91-8056475647" + } + }, + "state": { + "descriptor": { + "code": "ORDER_UPDATED", + "short_desc": "Contact details has been updated..." + }, + "updated_at": "2023-05-26T05:23:04.443Z" + } + } + ], + "quote": { + "price": { + "currency": "INR", + "value": "200.0" + }, + "breakup": [ + { + "title": "base-price", + "price": { + "currency": "INR", + "value": "150.0" + } + }, + { + "title": "taxes", + "price": { + "currency": "INR", + "value": "50.0" + } + } + ] + }, + "billing": { + "name": "Lisa K", + "phone": "0612345678", + "email": "lisa.k@gmail.com", + "address": "15 Rue Du Soleil, Paris, France", + "city": { + "name": "Paris" + }, + "state": { + "name": "Paris" + } + }, + "payments": [ + { + "status": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id": "raz816863816313", + "amount": "200", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/examples/OSM/update/update.json b/examples/OSM/update/update.json new file mode 100644 index 0000000..d1f048b --- /dev/null +++ b/examples/OSM/update/update.json @@ -0,0 +1,38 @@ +{ + "context": { + "domain": "localretail:shopping", + "location": { + "country": { + "code": "FRA" + }, + "city": { + "code": "std:33" + } + }, + "action": "update", + "version": "1.1.0", + "bap_id": "osm-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "osm-bpp-id", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "090adec2-696d-47c9-8452-797a91e7bebc", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "message": { + "order": { + "id": "b989c9a9-f603-4d44-b38d-26fd72286b38", + "fulfillments": [ + { + "customer": { + "contact": { + "phone": "+91-8056475647" + } + } + } + ] + }, + "update_target": "order.fulfillments[0].customer.contact.phone" + } +} \ No newline at end of file diff --git a/examples/cancel/cancel-request.json b/examples/retail-purchase/cancel/cancel-request.json similarity index 100% rename from examples/cancel/cancel-request.json rename to examples/retail-purchase/cancel/cancel-request.json diff --git a/examples/cancel/on-cancel-request.json b/examples/retail-purchase/cancel/on-cancel-request.json similarity index 100% rename from examples/cancel/on-cancel-request.json rename to examples/retail-purchase/cancel/on-cancel-request.json diff --git a/examples/confirm/confirm-request.json b/examples/retail-purchase/confirm/confirm-request.json similarity index 96% rename from examples/confirm/confirm-request.json rename to examples/retail-purchase/confirm/confirm-request.json index b99c640..1baba69 100644 --- a/examples/confirm/confirm-request.json +++ b/examples/retail-purchase/confirm/confirm-request.json @@ -1,99 +1,99 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "confirm", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "bpp_id": "farm-fresh-bpp-subId", - "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", - "message_id": "58d0a142-68e3-48d9-92e8-fbc791e44949", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "timestamp": "2023-11-06T10:14:10.280Z" - }, - "message": { - "order": { - "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", - "quantity": { - "selected" :{ - "count" : 2 - } - } - } - ], - "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": "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": "PAID", - "type": "PRE-FULFILLMENT", - "params": { - "transaction_id" : "raz816863816313", - "amount": "1500", - "currency": "INR", - "bank_code": "INB0004321", - "bank_account_number": "1234002341" - } - } - ] - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "confirm", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "farm-fresh-bpp-subId", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "58d0a142-68e3-48d9-92e8-fbc791e44949", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.280Z" + }, + "message": { + "order": { + "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", + "quantity": { + "selected" :{ + "count" : 2 + } + } + } + ], + "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": "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": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id" : "raz816863816313", + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ] + } + } } \ No newline at end of file diff --git a/examples/confirm/on-confirm-request.json b/examples/retail-purchase/confirm/on-confirm-request.json similarity index 97% rename from examples/confirm/on-confirm-request.json rename to examples/retail-purchase/confirm/on-confirm-request.json index 6516f53..7881674 100644 --- a/examples/confirm/on-confirm-request.json +++ b/examples/retail-purchase/confirm/on-confirm-request.json @@ -1,159 +1,159 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "on_confirm", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "bpp_id": "farm-fresh-bpp-subId", - "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", - "message_id": "58d0a142-68e3-48d9-92e8-fbc791e44949", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "timestamp": "2023-11-06T10:14:10.295Z", - "ttl": "PT10M" - }, - "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": "

Product Details

" - }, - "category_ids": [ - "c1" - ], - "quantity": { - "selected" :{ - "count" : 2 - } - }, - "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" - } - } - } - ], - "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": "PAID", - "type": "PRE-FULFILLMENT", - "params": { - "transaction_id" : "raz816863816313", - "amount": "1500", - "currency": "INR", - "bank_code": "INB0004321", - "bank_account_number": "1234002341" - } - } - ], - "cancellation_terms": [ - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "100" - } - } - } - ] - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "on_confirm", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "farm-fresh-bpp-subId", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "58d0a142-68e3-48d9-92e8-fbc791e44949", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T10:14:10.295Z", + "ttl": "PT10M" + }, + "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": "

Product Details

  • 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.
  • 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.
  • 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.
" + }, + "category_ids": [ + "c1" + ], + "quantity": { + "selected" :{ + "count" : 2 + } + }, + "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" + } + } + } + ], + "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": "PAID", + "type": "PRE-FULFILLMENT", + "params": { + "transaction_id" : "raz816863816313", + "amount": "1500", + "currency": "INR", + "bank_code": "INB0004321", + "bank_account_number": "1234002341" + } + } + ], + "cancellation_terms": [ + { + "cancellation_fee": { + "amount": { + "currency": "INR", + "value": "100" + } + } + } + ] + } + } } \ No newline at end of file diff --git a/examples/init/init-request.json b/examples/retail-purchase/init/init-request.json similarity index 96% rename from examples/init/init-request.json rename to examples/retail-purchase/init/init-request.json index 54512b3..20ed978 100644 --- a/examples/init/init-request.json +++ b/examples/retail-purchase/init/init-request.json @@ -1,86 +1,86 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "init", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "bpp_id": "farm-fresh-bpp-subId", - "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "message_id": "06f49c01-65b7-4754-8b37-ab4e33688154", - "timestamp": "2023-11-06T09:45:40.407Z" - }, - "message": { - "order": { - "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", - "quantity": { - "selected" :{ - "count" : 2 - } - } - } - ], - "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": "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" - } - } - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "init", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "farm-fresh-bpp-subId", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "06f49c01-65b7-4754-8b37-ab4e33688154", + "timestamp": "2023-11-06T09:45:40.407Z" + }, + "message": { + "order": { + "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", + "quantity": { + "selected" :{ + "count" : 2 + } + } + } + ], + "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": "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" + } + } + } + } } \ No newline at end of file diff --git a/examples/init/on-init-request.json b/examples/retail-purchase/init/on-init-request.json similarity index 97% rename from examples/init/on-init-request.json rename to examples/retail-purchase/init/on-init-request.json index 1bc3f60..eb20f29 100644 --- a/examples/init/on-init-request.json +++ b/examples/retail-purchase/init/on-init-request.json @@ -1,147 +1,147 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "on_init", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "bpp_id": "farm-fresh-bpp-subId", - "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", - "message_id": "06f49c01-65b7-4754-8b37-ab4e33688154", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "timestamp": "2023-11-06T09:45:40.421Z", - "ttl": "PT10M" - }, - "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": "
  • 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.
  • ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!
  • ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..
  • 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.
  • 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

Product Details

  • 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.
  • 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.
  • 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.
" - }, - "category_ids": [ - "c1" - ], - "quantity": { - "selected" :{ - "count" : 2 - } - }, - "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" - } - } - } - ], - "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" - } - } - ] - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "on_init", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "farm-fresh-bpp-subId", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "06f49c01-65b7-4754-8b37-ab4e33688154", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:45:40.421Z", + "ttl": "PT10M" + }, + "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": "
  • 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.
  • ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!
  • ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..
  • 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.
  • 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

Product Details

  • 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.
  • 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.
  • 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.
" + }, + "category_ids": [ + "c1" + ], + "quantity": { + "selected" :{ + "count" : 2 + } + }, + "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" + } + } + } + ], + "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" + } + } + ] + } + } } \ No newline at end of file diff --git a/examples/rating/on-rating-request.json b/examples/retail-purchase/rating/on-rating-request.json similarity index 100% rename from examples/rating/on-rating-request.json rename to examples/retail-purchase/rating/on-rating-request.json diff --git a/examples/rating/rating-request.json b/examples/retail-purchase/rating/rating-request.json similarity index 100% rename from examples/rating/rating-request.json rename to examples/retail-purchase/rating/rating-request.json diff --git a/examples/search/on-search-request.json b/examples/retail-purchase/search/on-search-request.json similarity index 97% rename from examples/search/on-search-request.json rename to examples/retail-purchase/search/on-search-request.json index 3a4af7a..94da25c 100644 --- a/examples/search/on-search-request.json +++ b/examples/retail-purchase/search/on-search-request.json @@ -1,143 +1,143 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "on_search", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "bpp_id": "farm-fresh-bpp-subId", - "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", - "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "timestamp": "2023-11-06T09:41:09.708Z", - "ttl": "PT10M" - }, - "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" - }, - { - "id": "f2", - "type": "Self-Pickup" - } - ], - "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": "
  • 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.
  • ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!
  • ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..
  • 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.
  • 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

Product Details

  • 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.
  • 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.
  • 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.
" - }, - "matched": true, - "price": { - "listed_value": "1200.0", - "currency": "INR", - "value": "1200.0" - }, - "recommended": true, - "location_ids": [ - "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" - ], - "category_ids": ["c1"], - "fulfillment_ids": ["f1"], - "tags": [ - { - "descriptor": { - "name": "item-cataegory" - }, - "list": [ - { - "descriptor": { - "name": "category" - }, - "value": "retail" - } - ] - }, - { - "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" - } - ] - } - ] - } - ] - } - ] - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "on_search", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "farm-fresh-bpp-subId", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:41:09.708Z", + "ttl": "PT10M" + }, + "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" + }, + { + "id": "f2", + "type": "Self-Pickup" + } + ], + "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": "
  • 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.
  • ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!
  • ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..
  • 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.
  • 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

Product Details

  • 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.
  • 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.
  • 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.
" + }, + "matched": true, + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + }, + "recommended": true, + "location_ids": [ + "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location" + ], + "category_ids": ["c1"], + "fulfillment_ids": ["f1"], + "tags": [ + { + "descriptor": { + "name": "item-cataegory" + }, + "list": [ + { + "descriptor": { + "name": "category" + }, + "value": "retail" + } + ] + }, + { + "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" + } + ] + } + ] + } + ] + } + ] + } + } } \ No newline at end of file diff --git a/examples/search/search-request.json b/examples/retail-purchase/search/search-request.json similarity index 95% rename from examples/search/search-request.json rename to examples/retail-purchase/search/search-request.json index a08d9cd..b979921 100644 --- a/examples/search/search-request.json +++ b/examples/retail-purchase/search/search-request.json @@ -1,44 +1,44 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "search", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", - "timestamp": "2023-11-06T09:41:09.673Z" - }, - "message": { - "intent": { - "category": { - "descriptor": { - "code": "electronics" - } - }, - "item": { - "descriptor": { - "name": "earphone" - } - }, - "fulfillment": { - "type": "Delivery", - "stops": [ - { - "location": { - "gps": "28.4594965,77.0266383" - } - } - ] - } - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "search", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "message_id": "6104c0a3-d1d1-4ded-aaa4-76e4caf727ce", + "timestamp": "2023-11-06T09:41:09.673Z" + }, + "message": { + "intent": { + "category": { + "descriptor": { + "code": "electronics" + } + }, + "item": { + "descriptor": { + "name": "earphone" + } + }, + "fulfillment": { + "type": "Delivery", + "stops": [ + { + "location": { + "gps": "28.4594965,77.0266383" + } + } + ] + } + } + } } \ No newline at end of file diff --git a/examples/select/on-select-request.json b/examples/retail-purchase/select/on-select-request.json similarity index 97% rename from examples/select/on-select-request.json rename to examples/retail-purchase/select/on-select-request.json index fec2d37..2964445 100644 --- a/examples/select/on-select-request.json +++ b/examples/retail-purchase/select/on-select-request.json @@ -1,93 +1,93 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "on_select", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "bpp_id": "farm-fresh-bpp-subId", - "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", - "message_id": "6d098f3a-4873-4b2e-935e-e4d6be92eb01", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "timestamp": "2023-11-06T09:44:47.229Z", - "ttl": "PT10M" - }, - "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": "
  • 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.
  • ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!
  • ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..
  • 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.
  • 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

Product Details

  • 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.
  • 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.
  • 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.
" - }, - "category_ids": [ - "c1" - ], - "quantity": { - "selected" :{ - "count" : 2 - } - }, - "price": { - "listed_value": "1200.0", - "currency": "INR", - "value": "1200.0" - } - } - ], - "fulfillments": [ - { - "id": "f1" - } - ], - "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" - } - } - ] - } - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "on_select", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "farm-fresh-bpp-subId", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6d098f3a-4873-4b2e-935e-e4d6be92eb01", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:44:47.229Z", + "ttl": "PT10M" + }, + "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": "
  • 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.
  • ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!
  • ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..
  • 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.
  • 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

Product Details

  • 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.
  • 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.
  • 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.
" + }, + "category_ids": [ + "c1" + ], + "quantity": { + "selected" :{ + "count" : 2 + } + }, + "price": { + "listed_value": "1200.0", + "currency": "INR", + "value": "1200.0" + } + } + ], + "fulfillments": [ + { + "id": "f1" + } + ], + "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" + } + } + ] + } + } + } } \ No newline at end of file diff --git a/examples/select/select-request.json b/examples/retail-purchase/select/select-request.json similarity index 96% rename from examples/select/select-request.json rename to examples/retail-purchase/select/select-request.json index d3445fb..4f39951 100644 --- a/examples/select/select-request.json +++ b/examples/retail-purchase/select/select-request.json @@ -1,44 +1,44 @@ -{ - "context": { - "domain": "local-retail", - "location": { - "country": { - "code": "IND" - }, - "city": { - "code": "std:080" - } - }, - "action": "select", - "version": "1.1.0", - "bap_id": "farm-fresh-bap-id", - "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", - "bpp_id": "farm-fresh-bpp-subId", - "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", - "message_id": "6d098f3a-4873-4b2e-935e-e4d6be92eb01", - "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", - "timestamp": "2023-11-06T09:44:47.217Z" - }, - "message": { - "order": { - "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", - "quantity": { - "selected" :{ - "count" : 2 - } - } - } - ], - "fulfillments": [ - { - "id": "f1" - } - ] - } - } +{ + "context": { + "domain": "local-retail", + "location": { + "country": { + "code": "IND" + }, + "city": { + "code": "std:080" + } + }, + "action": "select", + "version": "1.1.0", + "bap_id": "farm-fresh-bap-id", + "bap_uri": "https://55a6-124-123-32-28.ngrok-free.app", + "bpp_id": "farm-fresh-bpp-subId", + "bpp_uri": "https://4e21-124-123-32-28.ngrok-free.app", + "message_id": "6d098f3a-4873-4b2e-935e-e4d6be92eb01", + "transaction_id": "8100d125-76a7-4588-88be-81b97657cd09", + "timestamp": "2023-11-06T09:44:47.217Z" + }, + "message": { + "order": { + "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", + "quantity": { + "selected" :{ + "count" : 2 + } + } + } + ], + "fulfillments": [ + { + "id": "f1" + } + ] + } + } } \ No newline at end of file diff --git a/examples/status/on-status-request.json b/examples/retail-purchase/status/on-status-request.json similarity index 100% rename from examples/status/on-status-request.json rename to examples/retail-purchase/status/on-status-request.json diff --git a/examples/status/status-request.json b/examples/retail-purchase/status/status-request.json similarity index 100% rename from examples/status/status-request.json rename to examples/retail-purchase/status/status-request.json diff --git a/examples/support/on-support-requst.json b/examples/retail-purchase/support/on-support-requst.json similarity index 100% rename from examples/support/on-support-requst.json rename to examples/retail-purchase/support/on-support-requst.json diff --git a/examples/support/support-request.json b/examples/retail-purchase/support/support-request.json similarity index 100% rename from examples/support/support-request.json rename to examples/retail-purchase/support/support-request.json diff --git a/examples/track/on-track-request.json b/examples/retail-purchase/track/on-track-request.json similarity index 100% rename from examples/track/on-track-request.json rename to examples/retail-purchase/track/on-track-request.json diff --git a/examples/track/track-request.json b/examples/retail-purchase/track/track-request.json similarity index 100% rename from examples/track/track-request.json rename to examples/retail-purchase/track/track-request.json diff --git a/examples/update/on-update-request.json b/examples/retail-purchase/update/on-update-request.json similarity index 100% rename from examples/update/on-update-request.json rename to examples/retail-purchase/update/on-update-request.json diff --git a/examples/update/update-request.json b/examples/retail-purchase/update/update-request.json similarity index 100% rename from examples/update/update-request.json rename to examples/retail-purchase/update/update-request.json