diff --git a/utilities/logistics-b2b/log-verification-utility/.gitignore b/utilities/logistics-b2b/log-verification-utility/.gitignore index 8c29104..3a79b99 100644 --- a/utilities/logistics-b2b/log-verification-utility/.gitignore +++ b/utilities/logistics-b2b/log-verification-utility/.gitignore @@ -3,6 +3,7 @@ package-lock.json *.env .vscode /public/logs/* +/public/server/* verification-logs /utils/*.json /utils/*.txt diff --git a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/347301e3-ea1d-48d1-9ca5-283b7c18d586/log_report.json b/utilities/logistics-b2b/log-verification-utility/public/server/logistics/347301e3-ea1d-48d1-9ca5-283b7c18d586/log_report.json deleted file mode 100644 index f33ebf7..0000000 --- a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/347301e3-ea1d-48d1-9ca5-283b7c18d586/log_report.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Schema": { - "schemaErr0": "/on_init/0/message/order/quote price is not matching with the total breakup price", - "schemaErr1": "/on_update/0/message/order/fulfillments/0/start/instructions must have required property 'code'", - "schemaErr2": "/on_update/0/message/order/fulfillments/0/start/instructions must have required property 'short_desc'", - "schemaErr3": "/on_update/0/message/order/fulfillments/0/start must pass \"$merge\" keyword validation" - } -} \ No newline at end of file diff --git a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/347301e3-ea1d-48d1-9ca5-283b7c18d586/merged.json b/utilities/logistics-b2b/log-verification-utility/public/server/logistics/347301e3-ea1d-48d1-9ca5-283b7c18d586/merged.json deleted file mode 100644 index 3e428f9..0000000 --- a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/347301e3-ea1d-48d1-9ca5-283b7c18d586/merged.json +++ /dev/null @@ -1 +0,0 @@ -{"search":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"search","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"b9913991-a295-4d22-ad19-82472d884117","timestamp":"2023-12-18T13:38:32.568Z","ttl":"PT30S"},"message":{"intent":{"category":{"id":"Express Delivery"},"fulfillment":{"type":"Delivery","end":{"location":{"gps":"28.5080098, 77.0909696","address":{"area_code":"122016"}}},"start":{"location":{"gps":"12.9298689, 77.6848366","address":{"area_code":"560103"}}}},"provider":{"time":{"range":{"start":"0000","end":"2359"},"days":"1,2,3,4,5,6,7","schedule":{"holidays":[]}}},"payment":{"type":"POST-FULFILLMENT"},"@ondc/org/payload_details":{"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}},"value":{"currency":"INR","value":"2000.0"},"category":"Grocery","weight":{"unit":"gram","value":10}}}}}],"on_search":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_search","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"b9913991-a295-4d22-ad19-82472d884117","timestamp":"2023-12-18T13:38:33.338Z","ttl":"PT30S"},"message":{"catalog":{"bpp/descriptor":{"name":"Ecom Express Private Limited"},"bpp/providers":[{"id":"I1","descriptor":{"name":"Ecom Express Private Limited","short_desc":"Ecom Express Private Limited","long_desc":"Ecom Express Private Limited"},"categories":[{"id":"Express Delivery","time":{"label":"TAT","timestamp":"2023-12-18","duration":"P5D"}}],"fulfillments":[{"id":"1","type":"Delivery"},{"id":"2","type":"RTO"}],"items":[{"id":"1","parent_item_id":"EXPP","descriptor":{"name":"Express Plus Delivery","code":"P2H2P","short_desc":"Fast Delivery For Items","long_desc":"Fast Delivery for Items"},"category_id":"Express Delivery","fulfillment_id":"1","price":{"currency":"INR","value":"618.38"},"time":{"label":"TAT","timestamp":"2023-12-18","duration":"P5D"}},{"id":"2","parent_item_id":"EXPP","descriptor":{"name":"Express Plus Delivery","code":"P2H2P","short_desc":"Fast Delivery For Items","long_desc":"Fast Delivery for Items"},"category_id":"Express Delivery","fulfillment_id":"2","price":{"currency":"INR","value":"618.38"},"time":{"label":"TAT","timestamp":"2023-12-18","duration":"P5D"}}]}]}}}],"init":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"init","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"11bdd314-e0d7-4f23-8cea-2d89b730342a","timestamp":"2023-12-18T13:38:36.110Z","ttl":"PT30S"},"message":{"order":{"payment":{"type":"POST-FULFILLMENT","collected_by":"BAP"},"provider":{"id":"I1"},"items":[{"id":"1","fulfillment_id":"1","category_id":"Express Delivery","descriptor":{"code":"P2H2P"}}],"fulfillments":[{"id":"1","type":"Delivery","end":{"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","area_code":"122016","country":"India"}}},"start":{"contact":{"phone":"09898767675","email":"abii@gmail.com"},"location":{"gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103","country":"India"}}}}],"billing":{"name":"Gofrugal Technologies Pvt Ltd","tax_number":"33AACCG2423J1ZZ","email":"accounts@gofrugal.com","phone":"9999988888","address":{"name":"KRISP IT Park","building":"942, Kelambakkam - Vandalur Rd","locality":"Kizhakottayur","city":"Chennai","state":"Tamil Nadu","area_code":"600127","country":"India"},"created_at":"2023-12-18T13:38:36.110Z","updated_at":"2023-12-18T13:38:36.110Z"}}}}],"on_init":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_init","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"11bdd314-e0d7-4f23-8cea-2d89b730342a","timestamp":"2023-12-18T13:38:36.906Z","ttl":"PT30S"},"message":{"order":{"payment":{"type":"POST-FULFILLMENT","collected_by":"BAP"},"provider":{"id":"I1"},"quote":{"price":{"currency":"INR","value":"618.38"},"breakup":[{"price":{"currency":"INR","value":"618.38"},"@ondc/org/item_id":"1","@ondc/org/title_type":"delivery"}]},"items":[{"id":"1","fulfillment_id":"1","category_id":"Express Delivery"}],"fulfillments":[{"id":"1","type":"Delivery","end":{"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","country":"India","area_code":"122016"}}},"start":{"contact":{"phone":"09898767675","email":"abii@gmail.com"},"location":{"gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","country":"India","area_code":"560103"}}}}]}}}],"confirm":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"confirm","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"f6991386-0c8b-4ef6-ba06-9946297c8bde","timestamp":"2023-12-18T13:38:39.642Z","ttl":"PT30S"},"message":{"order":{"id":"3Q1QNP3PGX","state":"Created","payment":{"type":"POST-FULFILLMENT","collected_by":"BAP"},"provider":{"id":"I1"},"quote":{"price":{"currency":"INR","value":"618.38"},"breakup":[{"price":{"currency":"INR","value":"618.38"},"@ondc/org/item_id":"1","@ondc/org/title_type":"delivery"}]},"items":[{"id":"1","quantity":{"count":1},"fulfillment_id":"1","category_id":"Express Delivery","descriptor":{"code":"P2H2P"}}],"fulfillments":[{"id":"1","type":"Delivery","tags":[{"code":"state","list":[{"code":"ready_to_ship","value":"no"}]},{"code":"rto_action","list":[{"code":"return_to_origin","value":"yes"}]}],"end":{"person":{"name":"Mithun Chakraborty 420"},"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","area_code":"122016","country":"India"}}},"start":{"person":{"name":"Abinaya"},"contact":{"phone":"09898767675","email":"abii@gmail.com"},"instructions":{"code":"4","short_desc":"1368","long_desc":"QR code will be attached to package"},"location":{"id":"19753-ONDC-1-3523_location","gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103","country":"India"}}}}],"billing":{"name":"Gofrugal Technologies Pvt Ltd","tax_number":"33AACCG2423J1ZZ","email":"accounts@gofrugal.com","phone":"9999988888","address":{"name":"KRISP IT Park","building":"942, Kelambakkam - Vandalur Rd","locality":"Kizhakottayur","city":"Chennai","state":"Tamil Nadu","area_code":"600127","country":"India"},"created_at":"2023-12-18T13:38:36.110Z","updated_at":"2023-12-18T13:38:36.110Z"},"@ondc/org/linked_order":{"items":[{"quantity":{"count":1,"measure":{"unit":"gram","value":10}},"price":{"currency":"INR","value":"2000.00"},"category_id":"Grocery","descriptor":{"name":"PLAIN ATTA"}}],"provider":{"descriptor":{"name":"Subbu Zoho ONDC"},"address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103"}},"order":{"id":"2023-12-07-225813","weight":{"unit":"gram","value":10},"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}}}},"updated_at":"2023-12-07T14:20:59.374Z","created_at":"2023-12-07T14:20:59.374Z"}}}],"on_confirm":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_confirm","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"f6991386-0c8b-4ef6-ba06-9946297c8bde","timestamp":"2023-12-18T13:38:39.973Z","ttl":"PT30S"},"message":{"order":{"id":"3Q1QNP3PGX","state":"Created","payment":{"type":"POST-FULFILLMENT","collected_by":"BAP"},"provider":{"id":"I1"},"quote":{"price":{"currency":"INR","value":"618.38"},"breakup":[{"price":{"currency":"INR","value":"618.38"},"@ondc/org/item_id":"1","@ondc/org/title_type":"delivery"}]},"items":[{"id":"1","quantity":{"count":1},"fulfillment_id":"1","category_id":"Express Delivery","descriptor":{"code":"P2H2P"}}],"fulfillments":[{"id":"1","type":"Delivery","tags":[{"code":"state","list":[{"code":"ready_to_ship","value":"no"}]},{"code":"rto_action","list":[{"code":"return_to_origin","value":"yes"}]}],"end":{"person":{"name":"Mithun Chakraborty 420"},"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","country":"India","area_code":"122016"}}},"start":{"person":{"name":"Abinaya"},"contact":{"phone":"09898767675","email":"abii@gmail.com"},"instructions":{"short_desc":"1368","long_desc":"QR code will be attached to package","code":"4"},"location":{"id":"19753-ONDC-1-3523_location","gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","country":"India","area_code":"560103"}}},"state":{"descriptor":{"code":"Pending"}},"tracking":false,"@ondc/org/awb_no":"112844922778"}],"billing":{"name":"Gofrugal Technologies Pvt Ltd","tax_number":"33AACCG2423J1ZZ","email":"accounts@gofrugal.com","phone":"9999988888","address":{"name":"KRISP IT Park","building":"942, Kelambakkam - Vandalur Rd","locality":"Kizhakottayur","city":"Chennai","state":"Tamil Nadu","country":"India","area_code":"600127"},"created_at":"2023-12-18T13:38:36.110Z","updated_at":"2023-12-18T13:38:36.110Z"},"@ondc/org/linked_order":{"items":[{"quantity":{"count":1,"measure":{"unit":"gram","value":10}},"price":{"currency":"INR","value":"2000.00"},"category_id":"Grocery","descriptor":{"name":"PLAIN ATTA"}}],"provider":{"descriptor":{"name":"Subbu Zoho ONDC"},"address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103"}},"order":{"id":"2023-12-07-225813","weight":{"unit":"gram","value":10},"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}}}},"updated_at":"2023-12-18T13:38:39.973Z","created_at":"2023-12-07T14:20:59.374Z"}}}],"update":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"update","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"889d3a90-9a20-4289-bb83-b05809918520","timestamp":"2023-12-18T13:38:54.815Z","ttl":"PT30S"},"message":{"order":{"id":"3Q1QNP3PGX","items":[{"id":"1","descriptor":{"code":"P2H2P"},"category_id":"Express Delivery"}],"fulfillments":[{"id":"1","type":"Delivery","tags":[{"code":"state","list":[{"code":"ready_to_ship","value":"yes"}]}],"@ondc/org/awb_no":"110919056165"}],"@ondc/org/linked_order":{"items":[{"quantity":{"count":1,"measure":{"unit":"gram","value":10}},"price":{"currency":"INR","value":"2000.00"},"category_id":"Grocery","descriptor":{"name":"PLAIN ATTA"}}],"provider":{"descriptor":{"name":"Subbu Zoho ONDC"},"address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103"}},"order":{"id":"2023-12-07-225813","weight":{"unit":"gram","value":10},"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}}}},"updated_at":"2023-12-07T14:32:39.165Z"},"update_target":"fulfillment"}}],"on_update":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_update","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"246cb466-8ac5-40b6-a586-08c8bdc1c72b","timestamp":"2023-12-18T13:38:55.288Z","ttl":"PT30S"},"message":{"order":{"id":"3Q1QNP3PGX","state":"Accepted","payment":{"type":"POST-FULFILLMENT","collected_by":"BAP"},"provider":{"id":"I1"},"quote":{"price":{"currency":"INR","value":"618.38"},"breakup":[{"price":{"currency":"INR","value":"618.38"},"@ondc/org/item_id":"1","@ondc/org/title_type":"delivery"}]},"items":[{"id":"1","quantity":{"count":1},"fulfillment_id":"1","category_id":"Express Delivery","descriptor":{"code":"P2H2P"}}],"fulfillments":[{"id":"1","type":"Delivery","tags":[{"code":"state","list":[{"code":"ready_to_ship","value":"yes"}]}],"end":{"person":{"name":"Mithun Chakraborty 420"},"time":{"range":{"start":"2023-12-23T00:00:00.000Z","end":"2023-12-23T23:59:00.000Z"}},"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","country":"India","area_code":"122016"}}},"start":{"person":{"name":"Abinaya"},"time":{"range":{"start":"2023-12-19T00:00:00.000Z","end":"2023-12-19T23:59:00.000Z"}},"contact":{"phone":"09898767675","email":"abii@gmail.com"},"instructions":{"images":["https://stage-ondc.ecomexpress.in/shippingLabel/110919056165"]},"location":{"id":"19753-ONDC-1-3523_location","gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","country":"India","area_code":"560103"}}},"state":{"descriptor":{"code":"Pending"}},"tracking":false,"@ondc/org/awb_no":"112844922778"}],"billing":{"name":"Gofrugal Technologies Pvt Ltd","tax_number":"33AACCG2423J1ZZ","email":"accounts@gofrugal.com","phone":"9999988888","address":{"name":"KRISP IT Park","building":"942, Kelambakkam - Vandalur Rd","locality":"Kizhakottayur","city":"Chennai","state":"Tamil Nadu","country":"India","area_code":"600127"},"created_at":"2023-12-18T13:38:36.110Z","updated_at":"2023-12-18T13:38:36.110Z"},"@ondc/org/linked_order":{"items":[{"quantity":{"count":1,"measure":{"unit":"gram","value":10}},"price":{"currency":"INR","value":"2000.00"},"category_id":"Grocery","descriptor":{"name":"PLAIN ATTA"}}],"provider":{"descriptor":{"name":"Subbu Zoho ONDC"},"address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103"}},"order":{"id":"2023-12-07-225813","weight":{"unit":"gram","value":10},"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}}}},"updated_at":"2023-12-18T13:38:55.288Z","created_at":"2023-12-07T14:20:59.374Z"}}}],"on_cancel":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_cancel","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"11457434-00a2-434d-bc7f-16eff98e3737","timestamp":"2023-12-18T13:39:37.639Z","ttl":"PT30S"},"message":{"order":{"id":"3Q1QNP3PGX","state":"Cancelled","payment":{"type":"POST-FULFILLMENT","collected_by":"BAP"},"cancellation":{"reason":{"id":"004"},"cancelled_by":"stage-ondc.ecomexpress.in"},"provider":{"id":"I1"},"quote":{"price":{"currency":"INR","value":"618.38"},"breakup":[{"price":{"currency":"INR","value":"618.38"},"@ondc/org/item_id":"1","@ondc/org/title_type":"delivery"}]},"items":[{"id":"1","quantity":{"count":1},"fulfillment_id":"1","category_id":"Express Delivery","descriptor":{"code":"P2H2P"}}],"fulfillments":[{"id":"2","type":"RTO","tags":[{"code":"rto_event","list":[{"code":"retry_count","value":"3"},{"code":"rto_id","value":"2"},{"code":"cancellation_reason_id","value":"004"},{"code":"cancelled_by","value":"stage-ondc.ecomexpress.in"}]}],"end":{"person":{"name":"Mithun Chakraborty 420"},"time":{"range":{"start":"2023-12-23T00:00:00.000Z","end":"2023-12-23T23:59:00.000Z"}},"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","country":"India","area_code":"122016"}}},"start":{"person":{"name":"Abinaya"},"time":{"timestamp":"2023-12-15T08:50:53.670Z","range":{"start":"2023-12-19T00:00:00.000Z","end":"2023-12-19T23:59:00.000Z"}},"contact":{"phone":"09898767675","email":"abii@gmail.com"},"instructions":{"images":["https://stage-ondc.ecomexpress.in/shippingLabel/110919056165"]},"location":{"id":"19753-ONDC-1-3523_location","gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","country":"India","area_code":"560103"}}},"state":{"descriptor":{"code":"Cancelled"}},"tracking":false,"@ondc/org/awb_no":"112844922778"}],"billing":{"name":"Gofrugal Technologies Pvt Ltd","tax_number":"33AACCG2423J1ZZ","email":"accounts@gofrugal.com","phone":"9999988888","address":{"name":"KRISP IT Park","building":"942, Kelambakkam - Vandalur Rd","locality":"Kizhakottayur","city":"Chennai","state":"Tamil Nadu","country":"India","area_code":"600127"},"created_at":"2023-12-18T13:38:36.110Z","updated_at":"2023-12-18T13:38:36.110Z"},"@ondc/org/linked_order":{"items":[{"quantity":{"count":1,"measure":{"unit":"gram","value":10}},"price":{"currency":"INR","value":"2000.00"},"category_id":"Grocery","descriptor":{"name":"PLAIN ATTA"}}],"provider":{"descriptor":{"name":"Subbu Zoho ONDC"},"address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103"}},"order":{"id":"2023-12-07-225813","weight":{"unit":"gram","value":10},"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}}}},"updated_at":"2023-12-18T13:39:37.639Z","created_at":"2023-12-07T14:20:59.374Z"}}}],"on_status":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_status","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"0bf1fd6a-8e8f-4fc1-aad2-79152c0237b4","timestamp":"2023-12-18T13:40:21.368Z","ttl":"PT30S"},"message":{"order":{"id":"3Q1QNP3PGX","state":"Cancelled","payment":{"type":"POST-FULFILLMENT","collected_by":"BAP","status":"PAID"},"cancellation":{"reason":{"id":"004"},"cancelled_by":"stage-ondc.ecomexpress.in"},"provider":{"id":"I1"},"quote":{"price":{"currency":"INR","value":"618.38"},"breakup":[{"price":{"currency":"INR","value":"618.38"},"@ondc/org/item_id":"1","@ondc/org/title_type":"delivery"}]},"items":[{"id":"1","quantity":{"count":1},"fulfillment_id":"1","category_id":"Express Delivery","descriptor":{"code":"P2H2P"}}],"fulfillments":[{"id":"2","type":"RTO","tags":[{"code":"rto_event","list":[{"code":"retry_count","value":"3"},{"code":"rto_id","value":"2"},{"code":"cancellation_reason_id","value":"004"},{"code":"cancelled_by","value":"stage-ondc.ecomexpress.in"}]}],"end":{"person":{"name":"Mithun Chakraborty 420"},"time":{"range":{"start":"2023-12-23T00:00:00.000Z","end":"2023-12-23T23:59:00.000Z"}},"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","country":"India","area_code":"122016"}}},"start":{"person":{"name":"Abinaya"},"time":{"timestamp":"2023-12-15T08:50:53.670Z","range":{"start":"2023-12-19T00:00:00.000Z","end":"2023-12-19T23:59:00.000Z"}},"contact":{"phone":"09898767675","email":"abii@gmail.com"},"instructions":{"images":["https://stage-ondc.ecomexpress.in/shippingLabel/110919056165"]},"location":{"id":"19753-ONDC-1-3523_location","gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","country":"India","area_code":"560103"}}},"state":{"descriptor":{"code":"RTO-Initiated"}},"tracking":false,"@ondc/org/awb_no":"112844922778"}],"billing":{"name":"Gofrugal Technologies Pvt Ltd","tax_number":"33AACCG2423J1ZZ","email":"accounts@gofrugal.com","phone":"9999988888","address":{"name":"KRISP IT Park","building":"942, Kelambakkam - Vandalur Rd","locality":"Kizhakottayur","city":"Chennai","state":"Tamil Nadu","country":"India","area_code":"600127"},"created_at":"2023-12-18T13:38:36.110Z","updated_at":"2023-12-18T13:38:36.110Z"},"@ondc/org/linked_order":{"items":[{"quantity":{"count":1,"measure":{"unit":"gram","value":10}},"price":{"currency":"INR","value":"2000.00"},"category_id":"Grocery","descriptor":{"name":"PLAIN ATTA"}}],"provider":{"descriptor":{"name":"Subbu Zoho ONDC"},"address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103"}},"order":{"id":"2023-12-07-225813","weight":{"unit":"gram","value":10},"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}}}},"updated_at":"2023-12-18T13:40:21.368Z","created_at":"2023-12-07T14:20:59.374Z"}}},{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_status","core_version":"1.2.0","bap_id":"stage-ondc.ecomexpress.in","bap_uri":"https://1b75-49-249-159-126.ngrok-free.app","bpp_id":"stage-ondc.ecomexpress.in","bpp_uri":"https://stage-ondc.ecomexpress.in","transaction_id":"347301e3-ea1d-48d1-9ca5-283b7c18d586","message_id":"2119685b-9816-4571-b6bd-4f428ee12812","timestamp":"2023-12-18T13:41:34.451Z","ttl":"PT30S"},"message":{"order":{"id":"3Q1QNP3PGX","state":"Cancelled","payment":{"type":"POST-FULFILLMENT","collected_by":"BAP","status":"PAID"},"cancellation":{"reason":{"id":"004"},"cancelled_by":"stage-ondc.ecomexpress.in"},"provider":{"id":"I1"},"quote":{"price":{"currency":"INR","value":"618.38"},"breakup":[{"price":{"currency":"INR","value":"618.38"},"@ondc/org/item_id":"1","@ondc/org/title_type":"delivery"}]},"items":[{"id":"1","quantity":{"count":1},"fulfillment_id":"1","category_id":"Express Delivery","descriptor":{"code":"P2H2P"}}],"fulfillments":[{"id":"2","type":"RTO","tags":[{"code":"rto_event","list":[{"code":"retry_count","value":"3"},{"code":"rto_id","value":"2"},{"code":"cancellation_reason_id","value":"004"},{"code":"cancelled_by","value":"stage-ondc.ecomexpress.in"}]}],"end":{"person":{"name":"Mithun Chakraborty 420"},"time":{"timestamp":"2023-12-15T08:50:53.670Z","range":{"start":"2023-12-23T00:00:00.000Z","end":"2023-12-23T23:59:00.000Z"}},"contact":{"phone":"9999988888","email":"Baba@Elaichi.com"},"location":{"gps":"28.5080098, 77.0909696","address":{"name":"Mithun Chakraborty 420","building":"IHQ ecom express","locality":"Unnamed Road","city":"Gurugram","state":"Haryana","country":"India","area_code":"122016"}}},"start":{"person":{"name":"Abinaya"},"time":{"timestamp":"2023-12-15T08:50:53.670Z","range":{"start":"2023-12-19T00:00:00.000Z","end":"2023-12-19T23:59:00.000Z"}},"contact":{"phone":"09898767675","email":"abii@gmail.com"},"instructions":{"images":["https://stage-ondc.ecomexpress.in/shippingLabel/110919056165"]},"location":{"id":"19753-ONDC-1-3523_location","gps":"12.9298689, 77.6848366","address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","country":"India","area_code":"560103"}}},"state":{"descriptor":{"code":"RTO-Delivered"}},"tracking":false,"@ondc/org/awb_no":"112844922778"}],"billing":{"name":"Gofrugal Technologies Pvt Ltd","tax_number":"33AACCG2423J1ZZ","email":"accounts@gofrugal.com","phone":"9999988888","address":{"name":"KRISP IT Park","building":"942, Kelambakkam - Vandalur Rd","locality":"Kizhakottayur","city":"Chennai","state":"Tamil Nadu","country":"India","area_code":"600127"},"created_at":"2023-12-18T13:38:36.110Z","updated_at":"2023-12-18T13:38:36.110Z"},"@ondc/org/linked_order":{"items":[{"quantity":{"count":1,"measure":{"unit":"gram","value":10}},"price":{"currency":"INR","value":"2000.00"},"category_id":"Grocery","descriptor":{"name":"PLAIN ATTA"}}],"provider":{"descriptor":{"name":"Subbu Zoho ONDC"},"address":{"name":"Subbu Zoho ONDC","building":"block v","locality":"Vannar Pettai","city":"Bangalore","state":"Tamil Nadu","area_code":"560103"}},"order":{"id":"2023-12-07-225813","weight":{"unit":"gram","value":10},"dimensions":{"length":{"unit":"centimeter","value":2},"breadth":{"unit":"centimeter","value":3},"height":{"unit":"centimeter","value":4}}}},"updated_at":"2023-12-18T13:41:34.451Z","created_at":"2023-12-07T14:20:59.374Z"}}}]} \ No newline at end of file diff --git a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/6802cbf8-dbb2-4562-abda-3fc2ebef2b75/log_report.json b/utilities/logistics-b2b/log-verification-utility/public/server/logistics/6802cbf8-dbb2-4562-abda-3fc2ebef2b75/log_report.json deleted file mode 100644 index fb6d4bf..0000000 --- a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/6802cbf8-dbb2-4562-abda-3fc2ebef2b75/log_report.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Flow Error": { - "0": "Incorrect Flow as per context/timestamps - (search,on_search,cancel,init,on_init,confirm,on_confirm,status,support,track,on_track,on_support,on_status,on_cancel)" - }, - "Schema": { - "schemaErr0": "/search/0/message/intent/payment @ondc/org/collection_amount is required only for payment/type 'ON-FULFILLMENT'", - "schemaErr1": "/search/0/message/intent/payment must match \"then\" schema", - "schemaErr2": "/confirm/0/message/order/billing/created_at mismatches in /billing in /init and /confirm", - "schemaErr3": "/confirm/0/message/order/billing/updated_at mismatches in /billing in /init and /confirm", - "schemaErr4": "/confirm/0/message/order/payment/collected_by mismatches in /payment in /on_init and /confirm", - "schemaErr5": "/on_confirm/0/message/order/payment/collected_by mismatches in /payment in /on_init and /confirm", - "schemaErr6": "/on_status/0/message/order/fulfillments/0/start/time must have required property 'range'", - "schemaErr7": "/on_status/0/message/order/fulfillments/0/end must have required property 'time'", - "schemaErr8": "/on_status/0/message/order/fulfillments/0 must match \"then\" schema", - "schemaErr9": "/on_cancel/0/message/order must have required property 'created_at'", - "schemaErr10": "/on_cancel/0/message/order/quote price is not matching with the total breakup price", - "schemaErr11": "/on_cancel/0/message/order/fulfillments/0/start/time must have required property 'range'", - "schemaErr12": "/on_cancel/0/message/order/fulfillments/0/end/time must have required property 'range'", - "schemaErr13": "/on_cancel/0/message/order/fulfillments/0 must match \"then\" schema" - }, - "Context": { - "init_0": { - "tmpstmpErr": "Timestamp mismatch for /init " - }, - "status_0": { - "tmpstmpErr": "Timestamp mismatch for /status " - }, - "support_0": { - "tmpstmpErr": "Timestamp mismatch for /support " - }, - "track_0": { - "tmpstmpErr": "Timestamp mismatch for /track " - }, - "on_track_0": { - "msgIdErr": "Message Id cannot be same for different sets of APIs" - }, - "on_support_0": { - "msgIdErr": "Message Id cannot be same for different sets of APIs" - }, - "on_status_0": { - "msgIdErr": "Message Id cannot be same for different sets of APIs" - }, - "on_cancel_0": { - "msgIdErr": "Message Id cannot be same for different sets of APIs" - } - }, - "Message": { - "on_search_0": { - "itemTAT": "For Same Day Delivery/Immediate Delivery, TAT date should be the same date i.e. 2023-12-08" - }, - "confirm_0": { - "itemDurationErr": "item duration does not match with the one provided in /on_search (LSP can send NACK)", - "avgPckupErr": "Average Pickup Time mismatches from the one provided in /on_search" - }, - "on_confirm_0": { - "trckErr": "tracking should be enabled (true) for hyperlocal (Immediate Delivery)" - }, - "on_status_0": { - "trckErr": "tracking should be enabled (true) for hyperlocal (Immediate Delivery)" - } - } -} \ No newline at end of file diff --git a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/6802cbf8-dbb2-4562-abda-3fc2ebef2b75/merged.json b/utilities/logistics-b2b/log-verification-utility/public/server/logistics/6802cbf8-dbb2-4562-abda-3fc2ebef2b75/merged.json deleted file mode 100644 index bc99584..0000000 --- a/utilities/logistics-b2b/log-verification-utility/public/server/logistics/6802cbf8-dbb2-4562-abda-3fc2ebef2b75/merged.json +++ /dev/null @@ -1 +0,0 @@ -{"search":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"search","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"2f7b0c90-edf2-485f-ae15-665229687122","timestamp":"2023-12-08T09:07:59.783Z","ttl":"PT30S"},"message":{"intent":{"category":{"id":"Immediate Delivery"},"provider":{"time":{"days":"1,2,3,4,5,6","schedule":{"holidays":[]},"duration":"PT30M","range":{"start":"0630","end":"2359"}}},"fulfillment":{"type":"Delivery","start":{"location":{"gps":"12.9029804, 77.6241936","address":{"area_code":"560068"}}},"end":{"location":{"gps":"12.903803216971028, 77.62518882751466","address":{"area_code":"560068"}}}},"payment":{"type":"ON-ORDER","@ondc/org/collection_amount":"0"},"@ondc/org/payload_details":{"weight":{"unit":"kilogram","value":3},"dimensions":{"length":{"unit":"centimeter","value":15},"breadth":{"unit":"centimeter","value":10},"height":{"unit":"centimeter","value":10}},"category":"F&B","value":{"currency":"INR","value":"238.0"}}}}}],"on_search":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_search","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"2f7b0c90-edf2-485f-ae15-665229687122","timestamp":"2023-12-08T09:07:59.909Z","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org"},"message":{"catalog":{"bpp/descriptor":{"name":"WITS Project Ref Logistic"},"bpp/providers":[{"id":"275b09c9-d0d9-42bb-98f1-2c4153a9d320","descriptor":{"name":"WITS Project Ref Logistic","long_desc":"WITS Project Ref Logistic","short_desc":"WITS Project Ref Logistic"},"categories":[{"id":"Immediate Delivery","time":{"label":"TAT","duration":"PT60M","timestamp":"2023-12-08"}}],"fulfillments":[{"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","type":"Delivery","start":{"time":{"duration":"PT15M"}},"tags":[{"code":"distance","list":[{"code":"motorable_distance_type","value":"kilometer"},{"code":"motorable_distance","value":"0.15"}]}]},{"id":"9ad1e641-0ba2-4689-a25a-82f8c74671e1","type":"RTO"}],"items":[{"id":"Standard","parent_item_id":"","category_id":"Immediate Delivery","fulfillment_id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","descriptor":{"code":"P2P","name":"Immediate Delivery","long_desc":"Upto 60 mins for Delivery","short_desc":"Upto 60 mins for Delivery"},"price":{"currency":"INR","value":"122.38"},"time":{"label":"TAT","duration":"PT60M","timestamp":"2023-12-08"}},{"id":"rto","parent_item_id":"Standard","category_id":"Immediate Delivery","fulfillment_id":"9ad1e641-0ba2-4689-a25a-82f8c74671e1","descriptor":{"code":"P2P","name":"RTO quote","short_desc":"RTO quote","long_desc":"RTO quote"},"price":{"currency":"INR","value":"34.82"},"time":{"label":"TAT","duration":"P1D","timestamp":"2023-12-09"}}]}]}}}],"cancel":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"cancel","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"extweb.oyeti.com/ecommerce/ondc","bpp_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"e292631e-2f47-4af4-b767-3f03bf44ef94","timestamp":"2023-12-08T09:08:09.356Z","ttl":"PT30S"},"message":{"order_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","cancellation_reason_id":"010"}}],"init":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"init","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"extweb.oyeti.com/ecommerce/ondc","bpp_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"e292631e-2f47-4af4-b767-3f03bf44ef94","timestamp":"2023-12-08T09:08:09.356Z","ttl":"PT30S"},"message":{"order":{"provider":{"id":"275b09c9-d0d9-42bb-98f1-2c4153a9d320"},"items":[{"id":"Standard","fulfillment_id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","category_id":"Immediate Delivery","descriptor":{"code":"P2P"}}],"fulfillments":[{"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","type":"Delivery","start":{"location":{"gps":"12.9029804, 77.6241936","address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"}},"end":{"location":{"gps":"12.903803216971028, 77.62518882751466","address":{"name":"Venkateswara Reddy","building":"Venky House","locality":"9th A Cross Road","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"}}}],"billing":{"name":"Kumar Abhishek","email":"accounts@tonetag.com","phone":"8197153537","address":{"city":"Bengaluru","name":"Naffa Innovations Pvt Ltd","state":"Karnataka","country":"IND","building":"117, The Arcade, Brigade Metropolis, Garudachar Palya","locality":"Mahadevapura","area_code":"560048"},"created_at":"2023-12-08T09:08:09.356Z","updated_at":"2023-12-08T09:08:09.356Z","tax_number":"29AAECN5025F1ZK"},"payment":{"type":"ON-ORDER","collected_by":"BPP","@ondc/org/settlement_details":[]}}}}],"on_init":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_init","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"extweb.oyeti.com/ecommerce/ondc","bpp_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"e292631e-2f47-4af4-b767-3f03bf44ef94","timestamp":"2023-12-08T09:08:09.525Z"},"message":{"order":{"provider":{"id":"275b09c9-d0d9-42bb-98f1-2c4153a9d320"},"items":[{"id":"Standard","fulfillment_id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","descriptor":{"code":"P2P"},"category_id":"Immediate Delivery"}],"fulfillments":[{"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","type":"Delivery","start":{"location":{"gps":"12.9029804, 77.6241936","address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"images":[]}},"end":{"location":{"gps":"12.903803216971028, 77.62518882751466","address":{"name":"Venkateswara Reddy","building":"Venky House","locality":"9th A Cross Road","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"images":[]}},"tags":[{"code":"rider_check","list":[{"code":"inline_check_for_rider","value":"yes"}]}]}],"quote":{"price":{"currency":"INR","value":"122.38"},"breakup":[{"@ondc/org/item_id":"Standard","@ondc/org/title_type":"delivery","price":{"currency":"INR","value":"116.00"}},{"@ondc/org/item_id":"Standard","@ondc/org/title_type":"tax","price":{"currency":"INR","value":"6.38"}}],"ttl":"PT15M"},"payment":{"type":"ON-ORDER","collected_by":"BAP","@ondc/org/settlement_details":[]},"cancellation_terms":[{"fulfillment_state":{"descriptor":{"code":"Pending","short_desc":""}},"refund_eligible":true,"reason_required":false,"cancellation_fee":{"amount":{"currency":"INR","value":"0.0"}}},{"fulfillment_state":{"descriptor":{"code":"Agent-assigned","short_desc":"001,003"}},"refund_eligible":true,"reason_required":true,"cancellation_fee":{"amount":{"currency":"INR","value":"50"}}},{"fulfillment_state":{"descriptor":{"code":"Order-picked-up","short_desc":"001,003"}},"refund_eligible":true,"reason_required":true,"cancellation_fee":{"amount":{"currency":"INR","value":"100"}}},{"fulfillment_state":{"descriptor":{"code":"Out-for-delivery","short_desc":"011,012,013,014,015"}},"refund_eligible":true,"reason_required":true,"cancellation_fee":{"amount":{"currency":"INR","value":"100.0"}}}],"tags":[{"code":"bpp_terms","list":[{"code":"max_liability","value":"2"},{"code":"max_liability_cap","value":"10000"},{"code":"mandatory_arbitration","value":"false"},{"code":"court_jurisdiction","value":"Bengaluru"},{"code":"delay_interest","value":"1000"},{"code":"static_terms","value":"https://github.com/ONDC-Official/protocol-network-extension/discussions/79"}]}]}}}],"confirm":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"confirm","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"extweb.oyeti.com/ecommerce/ondc","bpp_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:11.306Z","ttl":"PT30S"},"message":{"order":{"id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","state":"Created","provider":{"id":"275b09c9-d0d9-42bb-98f1-2c4153a9d320"},"items":[{"id":"Standard","fulfillment_id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","descriptor":{"code":"P2P"},"category_id":"Immediate Delivery","time":{"label":"TAT","duration":"PT30M","timestamp":"2023-12-08"}}],"quote":{"price":{"value":"122.38","currency":"INR"},"breakup":[{"@ondc/org/item_id":"Standard","price":{"value":"116.00","currency":"INR"},"@ondc/org/title_type":"delivery"},{"@ondc/org/item_id":"Standard","price":{"value":"6.38","currency":"INR"},"@ondc/org/title_type":"tax"}]},"fulfillments":[{"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","type":"Delivery","tracking":true,"start":{"time":{"duration":"P1D"},"person":{"name":"Nandyal Chefs"},"location":{"gps":"12.9029804, 77.6241936","address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","long_desc":"Order Numer Last 6 Digits"}},"end":{"person":{"name":"Venkateswara Reddy"},"location":{"gps":"12.903803216971028, 77.62518882751466","address":{"name":"Venkateswara Reddy","building":"Venky House","locality":"9th A Cross Road","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","long_desc":"Order Numer Last 6 Digits"}},"tags":[{"code":"state","list":[{"code":"ready_to_ship","value":"no"}]},{"code":"rto_action","list":[{"code":"return_to_origin","value":"yes"}]}]}],"billing":{"name":"Kumar Abhishek","email":"accounts@tonetag.com","phone":"8197153537","address":{"city":"Bengaluru","name":"Naffa Innovations Pvt Ltd","state":"Karnataka","country":"IND","building":"117, The Arcade, Brigade Metropolis, Garudachar Palya","locality":"Mahadevapura","area_code":"560048"},"created_at":"2023-12-08T09:08:11.306Z","updated_at":"2023-12-08T09:08:11.306Z","tax_number":"29AAECN5025F1ZK"},"payment":{"type":"ON-ORDER","collected_by":"BPP"},"@ondc/org/linked_order":{"items":[{"category_id":"F&B","descriptor":{"name":"Almond Filter Coffee"},"quantity":{"count":2,"measure":{"unit":"kilogram","value":3}},"price":{"currency":"INR","value":"119.0"}}],"provider":{"descriptor":{"name":"Nandyal Chefs"},"address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"order":{"id":"2023-12-08-650909","weight":{"unit":"kilogram","value":3},"dimensions":{"length":{"unit":"centimeter","value":15},"breadth":{"unit":"centimeter","value":10},"height":{"unit":"centimeter","value":10}}},"tags":[{"code":"bpp_terms","list":[{"code":"max_liability","value":"2"},{"code":"max_liability_cap","value":"10000"},{"code":"mandatory_arbitration","value":"false"},{"code":"court_jurisdiction","value":"Bengaluru"},{"code":"delay_interest","value":"1000"},{"code":"static_terms","value":"https://github.com/ONDC-Official/protocol-network-extension/discussions/79"}]}]},"created_at":"2023-12-08T09:08:11.306Z","updated_at":"2023-12-08T09:08:11.306Z"}}}],"on_confirm":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_confirm","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:11.489Z"},"message":{"order":{"id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","state":"Accepted","provider":{"id":"275b09c9-d0d9-42bb-98f1-2c4153a9d320"},"items":[{"descriptor":{"code":"P2P"},"time":{"label":"TAT","duration":"PT30M","timestamp":"2023-12-08"},"id":"Standard","fulfillment_id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","category_id":"Immediate Delivery"}],"quote":{"price":{"value":"122.38","currency":"INR"},"breakup":[{"price":{"currency":"INR","value":"116.00"},"@ondc/org/item_id":"Standard","@ondc/org/title_type":"delivery"},{"price":{"currency":"INR","value":"6.38"},"@ondc/org/item_id":"Standard","@ondc/org/title_type":"tax"}]},"fulfillments":[{"state":{"descriptor":{"code":"Pending"}},"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","type":"Delivery","start":{"time":{"duration":"P1D"},"person":{"name":"Nandyal Chefs"},"location":{"gps":"12.9029804, 77.6241936","address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","images":[]}},"end":{"person":{"name":"Venkateswara Reddy"},"location":{"gps":"12.903803216971028, 77.62518882751466","address":{"name":"Venkateswara Reddy","building":"Venky House","locality":"9th A Cross Road","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","images":[]}},"tags":[{"code":"state","list":[{"code":"ready_to_ship","value":"no"}]},{"code":"rto_action","list":[{"code":"return_to_origin","value":"yes"}]}],"tracking":false}],"billing":{"name":"Kumar Abhishek","email":"accounts@tonetag.com","phone":"8197153537","address":{"name":"Naffa Innovations Pvt Ltd","building":"117, The Arcade, Brigade Metropolis, Garudachar Palya","locality":"Mahadevapura","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560048"},"created_at":"2023-12-08T09:08:11.306Z","updated_at":"2023-12-08T09:08:11.306Z","tax_number":"29AAECN5025F1ZK"},"payment":{"type":"ON-ORDER","collected_by":"BPP","status":"PAID","@ondc/org/settlement_details":[]},"@ondc/org/linked_order":{"provider":{"descriptor":{"name":"Nandyal Chefs"},"address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"order":{"weight":{"unit":"kilogram","value":3},"id":"2023-12-08-650909","dimensions":{"length":{"unit":"centimeter","value":15},"breadth":{"unit":"centimeter","value":10},"height":{"unit":"centimeter","value":10}}},"items":[{"descriptor":{"name":"Almond Filter Coffee"},"quantity":{"measure":{"value":3,"unit":"kilogram"},"count":2},"price":{"currency":"INR","value":"119.0"},"category_id":"F&B"}]},"cancellation_terms":[{"fulfillment_state":{"descriptor":{"code":"Pending","short_desc":""}},"cancellation_fee":{"amount":{"currency":"INR","value":"0.0"}},"refund_eligible":true,"reason_required":false},{"fulfillment_state":{"descriptor":{"code":"Agent-assigned","short_desc":"001,003"}},"cancellation_fee":{"amount":{"currency":"INR","value":"50"}},"refund_eligible":true,"reason_required":true},{"fulfillment_state":{"descriptor":{"code":"Order-picked-up","short_desc":"001,003"}},"cancellation_fee":{"amount":{"currency":"INR","value":"100"}},"refund_eligible":true,"reason_required":true},{"fulfillment_state":{"descriptor":{"code":"Out-for-delivery","short_desc":"011,012,013,014,015"}},"cancellation_fee":{"amount":{"currency":"INR","value":"100.0"}},"refund_eligible":true,"reason_required":true}],"tags":[{"code":"bpp_terms","list":[{"code":"max_liability","value":"2"},{"code":"max_liability_cap","value":"10000"},{"code":"mandatory_arbitration","value":"false"},{"code":"court_jurisdiction","value":"Bengaluru"},{"code":"delay_interest","value":"1000"},{"code":"static_terms","value":"https://github.com/ONDC-Official/protocol-network-extension/discussions/79"}]}],"created_at":"2023-12-08T09:08:11.306Z","updated_at":"2023-12-08T09:08:11.489Z"}}}],"status":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"status","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:11.489Z","ttl":"PT30S"},"message":{"order_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75"}}],"support":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"support","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:11.489Z","ttl":"PT30S"},"message":{"ref_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75"}}],"track":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"track","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:11.489Z","ttl":"PT30S"},"message":{"order_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75"}}],"on_track":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_track","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:11.763Z"},"message":{"tracking":{"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","location":{"gps":"12.958766,77.625282","time":{"timestamp":"2023-12-08T09:08:11.489Z"},"updated_at":"1970-01-01T00:00:00.000Z"},"status":"active"}}}],"on_support":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_support","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:11.785Z"},"message":{"phone":"8755555551","email":"accounts@thewitslab.com","uri":"http://t.me/supportBot"}}],"on_status":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_status","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"47f3f650-4661-425b-b68d-031efaba239b","timestamp":"2023-12-08T09:08:39.272Z"},"message":{"order":{"id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","state":"In-progress","provider":{"id":"275b09c9-d0d9-42bb-98f1-2c4153a9d320"},"items":[{"descriptor":{"code":"P2P"},"time":{"label":"TAT","duration":"PT30M","timestamp":"2023-12-08"},"id":"Standard","fulfillment_id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","category_id":"Immediate Delivery"}],"quote":{"price":{"value":"122.38","currency":"INR"},"breakup":[{"price":{"currency":"INR","value":"116.00"},"@ondc/org/item_id":"Standard","@ondc/org/title_type":"delivery"},{"price":{"currency":"INR","value":"6.38"},"@ondc/org/item_id":"Standard","@ondc/org/title_type":"tax"}]},"fulfillments":[{"state":{"descriptor":{"code":"Pending"}},"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","type":"Delivery","start":{"time":{"duration":"P1D"},"person":{"name":"Nandyal Chefs"},"location":{"gps":"12.9029804, 77.6241936","address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","images":[]}},"end":{"person":{"name":"Venkateswara Reddy"},"location":{"gps":"12.903803216971028, 77.62518882751466","address":{"name":"Venkateswara Reddy","building":"Venky House","locality":"9th A Cross Road","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","images":[]}},"tracking":false}],"payment":{"type":"ON-ORDER","collected_by":"BPP","@ondc/org/collection_amount":"0","status":"PAID","@ondc/org/settlement_details":[]},"billing":{"name":"Kumar Abhishek","email":"accounts@tonetag.com","phone":"8197153537","address":{"name":"Naffa Innovations Pvt Ltd","building":"117, The Arcade, Brigade Metropolis, Garudachar Palya","locality":"Mahadevapura","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560048"},"created_at":"2023-12-08T09:08:11.306Z","updated_at":"2023-12-08T09:08:11.306Z","tax_number":"29AAECN5025F1ZK"},"@ondc/org/linked_order":{"provider":{"descriptor":{"name":"Nandyal Chefs"},"address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"order":{"weight":{"unit":"kilogram","value":3},"id":"2023-12-08-650909","dimensions":{"length":{"unit":"centimeter","value":15},"breadth":{"unit":"centimeter","value":10},"height":{"unit":"centimeter","value":10}}},"items":[{"descriptor":{"name":"Almond Filter Coffee"},"quantity":{"measure":{"value":3,"unit":"kilogram"},"count":2},"price":{"currency":"INR","value":"119.0"},"category_id":"F&B"}]}}}}],"on_cancel":[{"context":{"domain":"nic2004:60232","country":"IND","city":"std:080","action":"on_cancel","core_version":"1.2.0","bap_id":"extweb.oyeti.com/ecommerce/ondc","bap_uri":"https://extweb.oyeti.com/ecommerce/ondc/ecommerce/ondc","bpp_id":"ref-logistics-app-preprod.ondc.org","bpp_uri":"https://ref-logistics-app-preprod.ondc.org","transaction_id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","message_id":"e292631e-2f47-4af4-b767-3f03bf44ef94","timestamp":"2023-12-08T09:34:28.223Z"},"message":{"order":{"id":"6802cbf8-dbb2-4562-abda-3fc2ebef2b75","state":"Cancelled","cancellation":{"cancelled_by":"extweb.oyeti.com/ecommerce/ondc","reason":{"id":"010"}},"provider":{"id":"275b09c9-d0d9-42bb-98f1-2c4153a9d320"},"items":[{"id":"Standard","fulfillment_id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","descriptor":{"code":"P2P"},"category_id":"Immediate Delivery","time":{"label":"TAT","duration":"PT30M","timestamp":"2023-12-08"}},{"id":"rto","fulfillment_id":"9ad1e641-0ba2-4689-a25a-82f8c74671e1","descriptor":{"code":"P2P"},"category_id":"Immediate Delivery","time":{"label":"TAT","duration":"PT60M","timestamp":"2023-12-08"}}],"quote":{"price":{"value":"159.09","currency":"INR"},"breakup":[{"@ondc/org/item_id":"Standard","@ondc/org/title_type":"delivery","price":{"currency":"INR","value":"116.00"}},{"@ondc/org/item_id":"Standard","@ondc/org/title_type":"tax","price":{"currency":"INR","value":"6.38"}},{"@ondc/org/item_id":"rto","@ondc/org/title_type":"rto","price":{"currency":"INR","value":"36.71"}},{"@ondc/org/item_id":"rto","@ondc/org/title_type":"tax","price":{"currency":"INR","value":"3.67"}}]},"fulfillments":[{"id":"cc9f3061-29eb-4baf-80dd-4a4b3900c978","type":"Delivery","state":{"descriptor":{"code":"Cancelled"}},"tracking":false,"start":{"time":{"duration":"P1D","timestamp":"2023-12-08T09:18:06.524Z"},"person":{"name":"Nandyal Chefs"},"location":{"gps":"12.9029804, 77.6241936","address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","images":[]}},"end":{"person":{"name":"Venkateswara Reddy"},"location":{"gps":"12.903803216971028, 77.62518882751466","address":{"name":"Venkateswara Reddy","building":"Venky House","locality":"9th A Cross Road","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560068"}},"contact":{"phone":"7893847511","email":"venkateshmurapureddy@gmail.com"},"instructions":{"code":"2","short_desc":"650909","images":[]},"time":{"timestamp":"2023-12-08T09:19:27.742Z"}}}],"billing":{"name":"Kumar Abhishek","email":"accounts@tonetag.com","phone":"8197153537","address":{"name":"Naffa Innovations Pvt Ltd","building":"117, The Arcade, Brigade Metropolis, Garudachar Palya","locality":"Mahadevapura","city":"Bengaluru","state":"Karnataka","country":"IND","area_code":"560048"},"created_at":"2023-12-08T09:08:11.306Z","updated_at":"2023-12-08T09:08:11.306Z","tax_number":"29AAECN5025F1ZK"},"payment":{"type":"ON-ORDER","collected_by":"BPP","@ondc/org/collection_amount":"0","status":"PAID","time":{"timestamp":"2023-12-08T09:19:27.742Z"}},"@ondc/org/linked_order":{"items":[{"category_id":"F&B","descriptor":{"name":"Almond Filter Coffee"},"quantity":{"count":2,"measure":{"value":3,"unit":"kilogram"}},"price":{"currency":"INR","value":"119.0"}}],"provider":{"descriptor":{"name":"Nandyal Chefs"},"address":{"name":"Nandyal Chefs","building":"Bommanahalli","locality":"Bengaluru, Bangalore Division, Karnataka, India","city":"Bengaluru","state":"Karnataka","country":"India","area_code":"560068"}},"order":{"id":"2023-12-08-650909","weight":{"unit":"kilogram","value":3},"dimensions":{"length":{"unit":"centimeter","value":15},"breadth":{"unit":"centimeter","value":10},"height":{"unit":"centimeter","value":10}}}},"updated_at":"2023-12-08T09:34:28.223Z"}}}]} \ No newline at end of file diff --git a/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_status.js b/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_status.js index 487e02a..ecaf332 100644 --- a/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_status.js +++ b/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_status.js @@ -235,9 +235,10 @@ module.exports = { type: "string", enum: [ "Pending", - "Packed", - "Agent-assigned", + "Out-for-pickup", "Order-picked-up", + "In-transit", + "At-destination-hub", "Out-for-delivery", "Order-delivered", ], @@ -327,21 +328,27 @@ module.exports = { properties: { start: { type: "string", - pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", - errorMessage:"should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format" + pattern: + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", + errorMessage: + "should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format", }, end: { type: "string", - pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", - errorMessage:"should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format" + pattern: + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", + errorMessage: + "should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format", }, }, required: ["start", "end"], }, timestamp: { type: "string", - pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", - errorMessage:"should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format" + pattern: + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", + errorMessage: + "should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format", }, }, required: ["range"], @@ -568,7 +575,7 @@ module.exports = { }, }, isQuoteMatching: true, - + required: ["price", "breakup", "ttl"], }, payments: { @@ -753,6 +760,6 @@ module.exports = { required: ["order"], }, }, - + required: ["context", "message"], }; diff --git a/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_update.js b/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_update.js index 55c6645..1301497 100644 --- a/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_update.js +++ b/utilities/logistics-b2b/log-verification-utility/schema/B2B_json_schema/v2/on_update.js @@ -56,18 +56,18 @@ module.exports = { }, transaction_id: { type: "string", - const: { $data: "/select/0/context/transaction_id" }, + const: { $data: "/select/0/context/transaction_id" }, }, message_id: { type: "string", - const: { $data: "/update/0/context/message_id" }, + const: { $data: "/update/0/context/message_id" }, }, timestamp: { type: "string", format: "date-time", }, ttl: { - type: "string" + type: "string", }, }, required: [ @@ -93,22 +93,18 @@ module.exports = { properties: { id: { type: "string", - const: { $data: "/confirm/0/message/order/id" }, + const: { $data: "/confirm/0/message/order/id" }, }, state: { type: "string", - enum: [ - "Created", - "Accepted", - "In-progress" - ], + enum: ["Created", "Accepted", "In-progress"], }, provider: { type: "object", properties: { id: { type: "string", - const: { $data: "/select/0/message/order/provider/id" }, + const: { $data: "/init/0/message/order/provider/id" }, }, }, required: ["id"], @@ -178,7 +174,7 @@ module.exports = { }, collected_by: { type: "string", - enum:["BAP","BPP"] + enum: ["BAP", "BPP"], }, "@ondc/org/buyer_app_finder_fee_type": { type: "string", @@ -255,13 +251,13 @@ module.exports = { }, }, if: { properties: { type: { const: "ON-FULFILLMENT" } } }, - then: { - properties: { - collected_by: { - const: "BPP", - }, + then: { + properties: { + collected_by: { + const: "BPP", }, }, + }, required: [ "params", "status", @@ -290,7 +286,15 @@ module.exports = { properties: { code: { type: "string", - enum:["Pending","Agent-assigned","Order-picked-up","Out-for-delivery","Delivered"] + enum: [ + "Pending", + "Out-for-pickup", + "Order-picked-up", + "In-transit", + "At-destination-hub", + "Out-for-delivery", + "Order-delivered", + ], }, }, required: ["code"], @@ -374,13 +378,17 @@ module.exports = { properties: { start: { type: "string", - pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", - errorMessage:"should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format" + pattern: + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", + errorMessage: + "should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format", }, end: { type: "string", - pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", - errorMessage:"should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format" + pattern: + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", + errorMessage: + "should be in RFC 3339 (YYYY-MM-DDTHH:MN:SS.MSSZ) Format", }, }, required: ["start", "end"], @@ -435,7 +443,7 @@ module.exports = { properties: { code: { type: "string", - enum:["ITEM_DETAILS"] + enum: ["ITEM_DETAILS"], }, }, required: ["code"], @@ -450,7 +458,12 @@ module.exports = { properties: { code: { type: "string", - enum:["ITEM_ID","COUNT","MEASURE_UNIT","MEASURE_VALUE"] + enum: [ + "ITEM_ID", + "COUNT", + "MEASURE_UNIT", + "MEASURE_VALUE", + ], }, }, required: ["code"], @@ -472,12 +485,12 @@ module.exports = { "@ondc/org/provider_name", "state", "type", - "stops" + "stops", ], }, }, }, - + required: ["id", "state", "provider", "items"], }, },