From bcdf3bb730d39844f7040ac0404ff37948a1c315 Mon Sep 17 00:00:00 2001 From: NeerajK007 Date: Fri, 27 Sep 2024 17:47:12 +0530 Subject: [PATCH] added buyer app response --- api-sample-response/confirm.json | 163 ++++++++++++++++++++++ api-sample-response/init.json | 162 +++++++++++++++++++++ api-sample-response/search.json | 131 +++++++++++++++++ api-sample-response/select.json | 94 +++++++++++++ api-sample-response/status_completed.json | 143 +++++++++++++++++++ api-sample-response/status_created.json | 132 ++++++++++++++++++ 6 files changed, 825 insertions(+) create mode 100644 api-sample-response/confirm.json create mode 100644 api-sample-response/init.json create mode 100644 api-sample-response/search.json create mode 100644 api-sample-response/select.json create mode 100644 api-sample-response/status_completed.json create mode 100644 api-sample-response/status_created.json diff --git a/api-sample-response/confirm.json b/api-sample-response/confirm.json new file mode 100644 index 0000000..41d6701 --- /dev/null +++ b/api-sample-response/confirm.json @@ -0,0 +1,163 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "confirm", + "timestamp": "2024-09-27T12:10:54.485Z", + "message_id": "6c7d14e5-84bb-489d-a539-2cfa7a8d39c9", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com" + }, + "message": { + "context": { + "ttl": "PT10M", + "action": "confirm", + "timestamp": "2024-09-27T12:10:54.485Z", + "message_id": "6c7d14e5-84bb-489d-a539-2cfa7a8d39c9", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com" + }, + "responses": [ + { + "context": { + "domain": "Software Assurance", + "action": "on_confirm", + "core_version": "1.1.0", + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com", + "country": "IND", + "city": "std:080", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "message_id": "6c7d14e5-84bb-489d-a539-2cfa7a8d39c9", + "ttl": "PT10M", + "timestamp": "2024-09-27T12:11:05.404Z" + }, + "message": { + "order": { + "id": "order-$2a$10$9P9PZmFwIerLIZJ6y7mShO4oeG6zcx2YDqr5iylD1jb0v39b5uuZ2", + "state": "Created", + "provider": { + "id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5" + }, + "items": [ + { + "descriptor": { + "name": "beep" + }, + "price": { + "currency": "INR", + "value": "11000" + }, + "category_id": "OSS Project", + "quantity": { + "count": 1, + "measure": { + "unit": "Unit-count", + "value": 1 + } + } + } + ], + "billing": { + "tax_number": "22AAAAA0000A1Z5", + "phone": "0987654321", + "email": "openfort@example.com", + "created_at": "2024-09-27T12:10:55.177Z", + "updated_at": "2024-09-27T12:10:55.177Z" + }, + "fulfillments": [], + "quote": { + "ttl": "P1D", + "price": { + "value": "11000", + "currency": "INR" + }, + "breakup": [ + { + "item": { + "price": { + "value": "11000", + "currency": "INR" + } + }, + "price": { + "value": "11000", + "currency": "INR" + }, + "title": "beep", + "@ondc/org/item_id": "e2b41750-a165-4a42-9255-f02966401783", + "@ondc/org/title_type": "item", + "@ondc/org/item_quantity": { + "count": 1 + } + }, + { + "price": { + "value": "0", + "currency": "INR" + }, + "title": "Delivery charges", + "@ondc/org/item_id": "fullfillment_id_0", + "@ondc/org/title_type": "delivery" + } + ] + }, + "payment": { + "@ondc/org/settlement_details": [ + { + "bank_name": "Bank of Springfield", + "branch_name": "Main Branch", + "settlement_type": "neft", + "beneficiary_name": "openfort", + "settlement_phase": "sale-amount", + "settlement_ifsc_code": "IFSC0001234", + "settlement_counterparty": "seller-app", + "settlement_bank_account_no": "1234567890" + } + ], + "@ondc/org/buyer_app_finder_fee_type": "Percent", + "@ondc/org/buyer_app_finder_fee_amount": "3.0" + }, + "created_at": "2024-09-27T12:10:55.177Z", + "updated_at": "2024-09-27T12:10:55.177Z", + "type": "DEFAULT", + "displayId": "142614" + } + } + } + ] + } + } +] \ No newline at end of file diff --git a/api-sample-response/init.json b/api-sample-response/init.json new file mode 100644 index 0000000..669735c --- /dev/null +++ b/api-sample-response/init.json @@ -0,0 +1,162 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "init", + "timestamp": "2024-09-27T12:08:36.887Z", + "message_id": "0fe65aa7-159c-46b7-ab11-3ef6abba97c7", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com" + }, + "message": { + "catalogs": { + "context": { + "ttl": "PT10M", + "action": "init", + "timestamp": "2024-09-27T12:08:36.887Z", + "message_id": "0fe65aa7-159c-46b7-ab11-3ef6abba97c7", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com" + }, + "responses": [ + { + "context": { + "domain": "Software Assurance", + "action": "on_init", + "version": "1.1.0", + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "message_id": "0fe65aa7-159c-46b7-ab11-3ef6abba97c7", + "ttl": "PT10M", + "timestamp": "2024-09-27T12:08:42.731Z" + }, + "message": { + "order": { + "provider": { + "id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5" + }, + "provider_location": {}, + "items": [ + { + "id": "e2b41750-a165-4a42-9255-f02966401783" + } + ], + "billing": { + "name": "Name", + "address": "address", + "state": { + "name": "Name" + }, + "city": { + "name": "Name" + }, + "email": "example@gmail.com", + "phone": "123456789" + }, + "fulfillments": [], + "quote": { + "price": { + "value": "11000", + "currency": "INR" + }, + "breakup": [ + { + "@ondc/org/item_id": "e2b41750-a165-4a42-9255-f02966401783", + "@ondc/org/item_quantity": { + "count": 1 + }, + "title": "beep", + "@ondc/org/title_type": "item", + "price": { + "value": "11000", + "currency": "INR" + }, + "item": { + "price": { + "value": "11000", + "currency": "INR" + } + } + }, + { + "title": "Delivery charges", + "@ondc/org/title_type": "delivery", + "@ondc/org/item_id": "fullfillment_id_0", + "price": { + "currency": "INR", + "value": "0" + } + } + ], + "ttl": "P1D" + }, + "payment": { + "@ondc/org/buyer_app_finder_fee_type": "Percent", + "@ondc/org/buyer_app_finder_fee_amount": "3.0", + "@ondc/org/settlement_details": [ + { + "settlement_counterparty": "seller-app", + "settlement_phase": "sale-amount", + "settlement_type": "neft", + "settlement_bank_account_no": "1234567890", + "settlement_ifsc_code": "IFSC0001234", + "beneficiary_name": "openfort", + "bank_name": "Bank of Springfield", + "branch_name": "Main Branch" + } + ] + }, + "type": "DEFAULT" + } + } + } + ] + } + } + } +] \ No newline at end of file diff --git a/api-sample-response/search.json b/api-sample-response/search.json new file mode 100644 index 0000000..662644f --- /dev/null +++ b/api-sample-response/search.json @@ -0,0 +1,131 @@ +{ + "context": { + "ttl": "PT10M", + "action": "search", + "timestamp": "2024-09-27T11:51:16.180Z", + "message_id": "2a704873-cde1-484a-b52a-2466bcf13688", + "transaction_id": "440cd085-6e93-43ae-aafd-69ca6d6c453a", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + } + }, + "message": { + "catalogs": [ + { + "context": { + "domain": "Software Assurance", + "action": "on_search", + "version": "1.1.0", + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com", + "country": "IND", + "city": "std:080", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "transaction_id": "440cd085-6e93-43ae-aafd-69ca6d6c453a", + "message_id": "2a704873-cde1-484a-b52a-2466bcf13688", + "ttl": "PT10M", + "timestamp": "2024-09-27T11:51:18.538Z" + }, + "message": { + "catalog": { + "bpp/fulfillments": [ + { + "id": "1", + "type": "OASP Service Delivery" + } + ], + "bpp/descriptor": { + "name": "Openfort", + "short_desc": "", + "long_desc": "", + "images": [ + null + ] + }, + "bpp/providers": [ + { + "id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5", + "descriptor": { + "name": "Openfort", + "short_desc": "", + "long_desc": "", + "images": [ + null + ] + }, + "items": [ + { + "id": "e2b41750-a165-4a42-9255-f02966401783", + "descriptor": { + "name": "beep", + "images": [] + }, + "price": { + "currency": "INR", + "value": "11000", + "maximum_value": "11000" + }, + "code": "PC0019", + "category_id": "OSS Project", + "sub_category_id": "Assurance & Assessment Service", + "description": "NA", + "longDescription": "NA" + }, + { + "id": "b7bfa320-d17d-48b0-8989-f2e53e2f9384", + "descriptor": { + "name": "beep", + "images": [] + }, + "price": { + "currency": "INR", + "value": "11000", + "maximum_value": "11000" + }, + "code": "PC0020", + "category_id": "OSS Project", + "sub_category_id": "Validation & Verification Service", + "description": "NA", + "longDescription": "NA" + } + ], + "fulfillments": [ + { + "contact": { + "phone": "0987654321", + "email": "openfort@example.com" + } + } + ], + "tags": [], + "@ondc/org/fssai_license_no": "12345678901234" + } + ] + } + } + } + ] + } +} \ No newline at end of file diff --git a/api-sample-response/select.json b/api-sample-response/select.json new file mode 100644 index 0000000..1b7ce57 --- /dev/null +++ b/api-sample-response/select.json @@ -0,0 +1,94 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "select", + "timestamp": "2024-09-27T12:06:15.537Z", + "message_id": "53209ede-db60-4a4c-b6f1-800eb1924785", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com" + }, + "message": { + "catalogs": { + "order": { + "provider": { + "id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5" + }, + "fulfillments": [ + { + "id": "1", + "@ondc/org/provider_name": "Openfort", + "tracking": false, + "@ondc/org/category": "Logistic type - dummy", + "@ondc/org/TAT": "P1D", + "provider_id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5", + "type": "Delivery", + "state": { + "descriptor": { + "code": "Non-serviceable" + } + }, + "end": "fulfilment-end" + } + ], + "quote": { + "price": { + "value": "11000", + "currency": "INR" + }, + "breakup": [ + { + "@ondc/org/item_id": "e2b41750-a165-4a42-9255-f02966401783", + "@ondc/org/item_quantity": {}, + "title": "beep", + "@ondc/org/title_type": "item", + "price": { + "value": "11000", + "currency": "INR" + }, + "item": { + "price": { + "currency": "INR", + "value": "11000" + }, + "quantity": { + "available": { + "count": 1 + }, + "maximum": { + "count": 1 + } + } + } + }, + {} + ], + "ttl": "P1D" + }, + "items": [ + { + "id": "e2b41750-a165-4a42-9255-f02966401783", + "fulfillment_id": "1" + } + ], + "type": "DEFAULT" + } + } + } + } +] \ No newline at end of file diff --git a/api-sample-response/status_completed.json b/api-sample-response/status_completed.json new file mode 100644 index 0000000..713971d --- /dev/null +++ b/api-sample-response/status_completed.json @@ -0,0 +1,143 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "status", + "timestamp": "2024-09-27T12:15:25.094Z", + "message_id": "f6a1d269-d636-449c-b3ab-0466198fe1f3", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com" + }, + "message": { + "order": { + "provider": { + "id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5", + "locations": [ + { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + } + ] + }, + "state": "Completed", + "items": [ + { + "descriptor": { + "name": "beep" + }, + "price": { + "currency": "INR", + "value": "11000" + }, + "category_id": "OSS Project", + "quantity": { + "count": 1, + "measure": { + "unit": "Unit-count", + "value": 1 + } + } + } + ], + "billing": { + "tax_number": "22AAAAA0000A1Z5", + "phone": "0987654321", + "email": "openfort@example.com", + "created_at": "2024-09-27T12:10:55.177Z", + "updated_at": "2024-09-27T12:10:55.177Z" + }, + "fulfillments": [ + { + "name": "bes-env-dummy", + "link": "https://github.com/env", + "tracking": false + }, + { + "name": "bes-playbook-dummy", + "link": "https://github.com/playbook", + "tracking": false + } + ], + "quote": { + "ttl": "P1D", + "price": { + "value": "11000", + "currency": "INR" + }, + "breakup": [ + { + "item": { + "price": { + "value": "11000", + "currency": "INR" + } + }, + "price": { + "value": "11000", + "currency": "INR" + }, + "title": "beep", + "@ondc/org/item_id": "e2b41750-a165-4a42-9255-f02966401783", + "@ondc/org/title_type": "item", + "@ondc/org/item_quantity": { + "count": 1 + } + }, + { + "price": { + "value": "0", + "currency": "INR" + }, + "title": "Delivery charges", + "@ondc/org/item_id": "fullfillment_id_0", + "@ondc/org/title_type": "delivery" + } + ] + }, + "payment": { + "@ondc/org/settlement_details": [ + { + "bank_name": "Bank of Springfield", + "branch_name": "Main Branch", + "settlement_type": "neft", + "beneficiary_name": "openfort", + "settlement_phase": "sale-amount", + "settlement_ifsc_code": "IFSC0001234", + "settlement_counterparty": "seller-app", + "settlement_bank_account_no": "1234567890" + } + ], + "@ondc/org/buyer_app_finder_fee_type": "Percent", + "@ondc/org/buyer_app_finder_fee_amount": "3.0" + }, + "id": "order-$2a$10$9P9PZmFwIerLIZJ6y7mShO4oeG6zcx2YDqr5iylD1jb0v39b5uuZ2", + "created_at": "2024-09-27T12:15:25.094Z", + "updated_at": "2024-09-27T12:15:25.094Z", + "type": "DEFAULT", + "displayId": "order-$2a$10$9P9PZmFwIerLIZJ6y7mShO4oeG6zcx2YDqr5iylD1jb0v39b5uuZ2" + } + }, + "qr_url": "" + } +] \ No newline at end of file diff --git a/api-sample-response/status_created.json b/api-sample-response/status_created.json new file mode 100644 index 0000000..fb6d226 --- /dev/null +++ b/api-sample-response/status_created.json @@ -0,0 +1,132 @@ +[ + { + "context": { + "ttl": "PT10M", + "action": "status", + "timestamp": "2024-09-27T12:13:06.657Z", + "message_id": "29535005-99ea-4de9-bd00-9bab30f8b644", + "transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38", + "domain": "Software Assurance", + "version": "1.1.0", + "bap_id": "bap.ossverse.com", + "bap_uri": "http://bap.ossverse.com", + "location": { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + }, + "bpp_id": "openfort-oasp.ossverse.com", + "bpp_uri": "http://openfort-oasp.ossverse.com" + }, + "message": { + "order": { + "provider": { + "id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5", + "locations": [ + { + "country": { + "name": "India", + "code": "IND" + }, + "city": { + "name": "Bengaluru", + "code": "std:080" + } + } + ] + }, + "state": "Created", + "items": [ + { + "descriptor": { + "name": "beep" + }, + "price": { + "currency": "INR", + "value": "11000" + }, + "category_id": "OSS Project", + "quantity": { + "count": 1, + "measure": { + "unit": "Unit-count", + "value": 1 + } + } + } + ], + "billing": { + "tax_number": "22AAAAA0000A1Z5", + "phone": "0987654321", + "email": "openfort@example.com", + "created_at": "2024-09-27T12:10:55.177Z", + "updated_at": "2024-09-27T12:10:55.177Z" + }, + "fulfillments": [], + "quote": { + "ttl": "P1D", + "price": { + "value": "11000", + "currency": "INR" + }, + "breakup": [ + { + "item": { + "price": { + "value": "11000", + "currency": "INR" + } + }, + "price": { + "value": "11000", + "currency": "INR" + }, + "title": "beep", + "@ondc/org/item_id": "e2b41750-a165-4a42-9255-f02966401783", + "@ondc/org/title_type": "item", + "@ondc/org/item_quantity": { + "count": 1 + } + }, + { + "price": { + "value": "0", + "currency": "INR" + }, + "title": "Delivery charges", + "@ondc/org/item_id": "fullfillment_id_0", + "@ondc/org/title_type": "delivery" + } + ] + }, + "payment": { + "@ondc/org/settlement_details": [ + { + "bank_name": "Bank of Springfield", + "branch_name": "Main Branch", + "settlement_type": "neft", + "beneficiary_name": "openfort", + "settlement_phase": "sale-amount", + "settlement_ifsc_code": "IFSC0001234", + "settlement_counterparty": "seller-app", + "settlement_bank_account_no": "1234567890" + } + ], + "@ondc/org/buyer_app_finder_fee_type": "Percent", + "@ondc/org/buyer_app_finder_fee_amount": "3.0" + }, + "id": "order-$2a$10$9P9PZmFwIerLIZJ6y7mShO4oeG6zcx2YDqr5iylD1jb0v39b5uuZ2", + "created_at": "2024-09-27T12:13:06.657Z", + "updated_at": "2024-09-27T12:13:06.657Z", + "type": "DEFAULT", + "displayId": "order-$2a$10$9P9PZmFwIerLIZJ6y7mShO4oeG6zcx2YDqr5iylD1jb0v39b5uuZ2" + } + }, + "qr_url": "" + } +] \ No newline at end of file