diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/cancel.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/cancel.json deleted file mode 100644 index 27820bc..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "SOFT_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/confirm.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/confirm.json deleted file mode 100644 index c198095..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/confirm.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-12-10T04:34:48.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/init.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/init.json deleted file mode 100644 index 2b93c6a..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/init.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:09:31.307Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_cancel.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_cancel.json deleted file mode 100644 index e8c1921..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_cancel.json +++ /dev/null @@ -1,390 +0,0 @@ -{ - "context": { - "action": "on_cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "version": "2.0.1", - "ttl": "PT30S" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "time": { - "duration": "PT2H" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "CAB Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "156", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BAP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "Delivery" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "2.5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://www.icicibank.com/personal-banking/loans/personal-loan" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "85" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "10" - }, - "title": "CANCELLATION_CHARGES" - }, - { - "price": { - "currency": "INR", - "value": "-146" - }, - "title": "REFUND" - } - ], - "price": { - "currency": "INR", - "value": "10" - }, - "ttl": "P200S" - }, - "status": "SOFT_CANCEL" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_confirm.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_confirm.json deleted file mode 100644 index de4017a..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_confirm.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-10T08:03:34.294Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-10T08:03:34.294Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_rating.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_search.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_search.json deleted file mode 100644 index b921b15..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_search.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Servies BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_select.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_select.json deleted file mode 100644 index 1dbac52..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_select.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_status.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_status.json deleted file mode 100644 index 59da10d..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_status.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "5ee2001f-e612-431d-9e07-49574af60e88", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_support.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_track.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_track.json deleted file mode 100644 index 066efb4..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_track.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_update.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_update.json deleted file mode 100644 index 57ee6a5..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/on_update.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-10T08:03:34.294Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "SELF_PICKUP", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-10T08:03:34.294Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/rating.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/select.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/select.json deleted file mode 100644 index 1ac2e28..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/select.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/status.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/status.json deleted file mode 100644 index 911166d..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/status.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - } -} diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/support.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/track.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/update.json b/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Assign Driver Assign_Driver_post_OnConfirm(Self-Pickup)/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/cancel.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/cancel.json deleted file mode 100644 index 27820bc..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "SOFT_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/confirm.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/confirm.json deleted file mode 100644 index c198095..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/confirm.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-12-10T04:34:48.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/init.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/init.json deleted file mode 100644 index 259b266..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/init.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:09:31.307Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "AUTO_RICKSHAW", - "energy_type": "CNG" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "144.54" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_cancel.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_cancel.json deleted file mode 100644 index e8c1921..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_cancel.json +++ /dev/null @@ -1,390 +0,0 @@ -{ - "context": { - "action": "on_cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "version": "2.0.1", - "ttl": "PT30S" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "time": { - "duration": "PT2H" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "CAB Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "156", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BAP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "Delivery" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "2.5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://www.icicibank.com/personal-banking/loans/personal-loan" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "85" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "10" - }, - "title": "CANCELLATION_CHARGES" - }, - { - "price": { - "currency": "INR", - "value": "-146" - }, - "title": "REFUND" - } - ], - "price": { - "currency": "INR", - "value": "10" - }, - "ttl": "P200S" - }, - "status": "SOFT_CANCEL" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_confirm.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_confirm.json deleted file mode 100644 index de4017a..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_confirm.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-10T08:03:34.294Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-10T08:03:34.294Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_init.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_init.json deleted file mode 100644 index 38f4ee8..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_init.json +++ /dev/null @@ -1,356 +0,0 @@ -{ - "context": { - "action": "on_init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:11:32.859Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - } - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_rating.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_search.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_search.json deleted file mode 100644 index daaea02..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_search.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Services BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "AUTO_RICKSHAW" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BAP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_select.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_select.json deleted file mode 100644 index 0cbe642..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_select.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_status.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_status.json deleted file mode 100644 index 59da10d..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_status.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "5ee2001f-e612-431d-9e07-49574af60e88", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_support.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_track.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_track.json deleted file mode 100644 index d546596..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_track.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_update.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_update.json deleted file mode 100644 index 01e3bc8..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/on_update.json +++ /dev/null @@ -1,361 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-11T03:54:28.832Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENDED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "CLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-11T03:54:28.832Z" - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/rating.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/select.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/select.json deleted file mode 100644 index ae53bc2..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/select.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/status.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/status.json deleted file mode 100644 index 911166d..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/status.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/support.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/track.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/update.json b/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_on_onConfirm/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/cancel.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/cancel.json deleted file mode 100644 index 27820bc..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "SOFT_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/confirm.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/confirm.json deleted file mode 100644 index c198095..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/confirm.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-12-10T04:34:48.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/init.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/init.json deleted file mode 100644 index 2b93c6a..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/init.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:09:31.307Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_cancel.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_cancel.json deleted file mode 100644 index e8c1921..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_cancel.json +++ /dev/null @@ -1,390 +0,0 @@ -{ - "context": { - "action": "on_cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "version": "2.0.1", - "ttl": "PT30S" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "time": { - "duration": "PT2H" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "CAB Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "156", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BAP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "Delivery" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "2.5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://www.icicibank.com/personal-banking/loans/personal-loan" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "85" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "10" - }, - "title": "CANCELLATION_CHARGES" - }, - { - "price": { - "currency": "INR", - "value": "-146" - }, - "title": "REFUND" - } - ], - "price": { - "currency": "INR", - "value": "10" - }, - "ttl": "P200S" - }, - "status": "SOFT_CANCEL" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_confirm.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_confirm.json deleted file mode 100644 index de4017a..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_confirm.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-10T08:03:34.294Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-10T08:03:34.294Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_init.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_init.json deleted file mode 100644 index d591334..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_init.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "context": { - "action": "on_init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:11:32.859Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_rating.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_search.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_search.json deleted file mode 100644 index b921b15..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_search.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Servies BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_select.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_select.json deleted file mode 100644 index 1dbac52..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_select.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_status.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_status.json deleted file mode 100644 index 59da10d..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_status.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "5ee2001f-e612-431d-9e07-49574af60e88", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_support.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_track.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_track.json deleted file mode 100644 index 066efb4..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_track.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_update.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_update.json deleted file mode 100644 index b54c8bc..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/on_update.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/rating.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/search.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/search.json deleted file mode 100644 index ae3a356..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/search.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "context": { - "action": "search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "40963dc1-e402-4f4d-ae70-7c5864ca682c", - "timestamp": "2023-12-09T13:39:56.645Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "intent": { - "fulfillment": { - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ] - }, - "payment": { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - } - ] - } - ] - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/select.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/select.json deleted file mode 100644 index 1ac2e28..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/select.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/status.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/status.json deleted file mode 100644 index 911166d..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/status.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/support.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/track.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/update.json b/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Assign_Driver_post_OnConfirm/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/cancel.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/cancel.json deleted file mode 100644 index 90371f5..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "CONFIRM_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/confirm.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/confirm.json deleted file mode 100644 index 71c2c82..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/confirm.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "9a7be37d-f228-432b-9aa9-65144d48da38", - "timestamp": "2023-12-10T04:34:49.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "transaction_id": "f08966dc-4c7d-4152-9a15-1046798cc39c", - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "144.54" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/init.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/init.json deleted file mode 100644 index c8577b6..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/init.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BAP", - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT1D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "144.54" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_cancel.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_cancel.json deleted file mode 100644 index 47a63eb..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_cancel.json +++ /dev/null @@ -1,403 +0,0 @@ -{ - "context": { - "action": "on_cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53.253Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "version": "2.0.1", - "ttl": "PT30S" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_CANCELLED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "time": { - "duration": "PT2H" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "AUTO_RICKSHAW", - "energy_type": "CNG", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "CAB Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "156", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BAP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "Delivery" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "2.5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://www.icicibank.com/personal-banking/loans/personal-loan" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "85" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "10" - }, - "title": "CANCELLATION_CHARGES" - }, - { - "price": { - "currency": "INR", - "value": "-146" - }, - "title": "REFUND" - } - ], - "price": { - "currency": "INR", - "value": "10" - }, - "ttl": "P200S" - }, - "status": "CANCELLED", - "cancellation": { - "cancelled_by": "CONSUMER", - "reason": { - "descriptor": { - "code": "001" - } - } - }, - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-03-23T04:48:53.253Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_confirm.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_confirm.json deleted file mode 100644 index 44bf1a7..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_confirm.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "9a7be37d-f228-432b-9aa9-65144d48da38", - "timestamp": "2023-12-10T04:34:52.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic", - "transaction_id": "f08966dc-4c7d-4152-9a15-1046798cc39c", - "amount": "146" - }, - "status": "PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "144.54" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T04:34:52.031Z", - "updated_at": "2023-12-10T04:34:52.031Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_init.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_init.json deleted file mode 100644 index ea94991..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_init.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "context": { - "action": "on_init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:11:32.859Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BAP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "144.54" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_rating.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_search.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_search.json deleted file mode 100644 index b921b15..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_search.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Servies BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_select.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_select.json deleted file mode 100644 index 1dbac52..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_select.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_status.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_status.json deleted file mode 100644 index 2aa161f..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_status.json +++ /dev/null @@ -1,350 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "d883e7f9-f6bc-4ddf-b64c-a2bc44e63ae2", - "timestamp": "2023-03-23T04:48:59Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic", - "transaction_id": "f08966dc-4c7d-4152-9a15-1046798cc39c", - "amount": "146" - }, - "status": "PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "144.54" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - } - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_support.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_track.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_track.json deleted file mode 100644 index 066efb4..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_track.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_update.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_update.json deleted file mode 100644 index f1d22da..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/on_update.json +++ /dev/null @@ -1,362 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-11T03:54:28.832Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENDED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "CLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "AUTO_RICKSHAW", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-11T03:54:28.832Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/rating.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/search.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/search.json deleted file mode 100644 index ae3a356..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/search.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "context": { - "action": "search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "40963dc1-e402-4f4d-ae70-7c5864ca682c", - "timestamp": "2023-12-09T13:39:56.645Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "intent": { - "fulfillment": { - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ] - }, - "payment": { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - } - ] - } - ] - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/select.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/select.json deleted file mode 100644 index 1ac2e28..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/select.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/status.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/status.json deleted file mode 100644 index 5e64f83..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/status.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "d883e7f9-f6bc-4ddf-b64c-a2bc44e63ae2", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "870782be-6757-43f1-945c-8eeaf9536259" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/support.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/track.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/update.json b/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Bpp_Collecting_Payement/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/cancel.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/cancel.json deleted file mode 100644 index 27820bc..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "SOFT_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/confirm.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/confirm.json deleted file mode 100644 index c198095..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/confirm.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-12-10T04:34:48.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/init.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/init.json deleted file mode 100644 index 2b93c6a..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/init.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:09:31.307Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_init.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_init.json deleted file mode 100644 index d591334..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_init.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "context": { - "action": "on_init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:11:32.859Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_rating.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_search.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_search.json deleted file mode 100644 index b921b15..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_search.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Servies BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_select.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_select.json deleted file mode 100644 index 1dbac52..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_select.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_status.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_status.json deleted file mode 100644 index 59da10d..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_status.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "5ee2001f-e612-431d-9e07-49574af60e88", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_support.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_track.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_track.json deleted file mode 100644 index 066efb4..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_track.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_update.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_update.json deleted file mode 100644 index b54c8bc..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/on_update.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/rating.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/search.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/search.json deleted file mode 100644 index ae3a356..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/search.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "context": { - "action": "search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "40963dc1-e402-4f4d-ae70-7c5864ca682c", - "timestamp": "2023-12-09T13:39:56.645Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "intent": { - "fulfillment": { - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ] - }, - "payment": { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - } - ] - } - ] - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/select.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/select.json deleted file mode 100644 index 1ac2e28..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/select.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/status.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/status.json deleted file mode 100644 index 911166d..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/status.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/support.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/track.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/update.json b/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_On_on_confirm/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/cancel.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/cancel.json deleted file mode 100644 index 27820bc..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "SOFT_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/confirm.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/confirm.json deleted file mode 100644 index c198095..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/confirm.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-12-10T04:34:48.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/init.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/init.json deleted file mode 100644 index 2b93c6a..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/init.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:09:31.307Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_cancel.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_cancel.json deleted file mode 100644 index a43d8fe..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_cancel.json +++ /dev/null @@ -1,374 +0,0 @@ -{ - "context": { - "action": "on_cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_CANCELLED" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "CANCELLED", - "cancellation": { - "cancelled_by": "PROVIDER", - "reason": { - "descriptor": { - "code": "011" - } - } - }, - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:48:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_confirm.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_confirm.json deleted file mode 100644 index 4c3de86..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_confirm.json +++ /dev/null @@ -1,366 +0,0 @@ -{ - "context": { - "action": "on_confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_CONFIRMED" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:48:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_init.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_init.json deleted file mode 100644 index d591334..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_init.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "context": { - "action": "on_init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:11:32.859Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_rating.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_search.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_search.json deleted file mode 100644 index b921b15..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_search.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Servies BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_select.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_select.json deleted file mode 100644 index 1dbac52..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_select.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_status.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_status.json deleted file mode 100644 index 59da10d..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_status.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "5ee2001f-e612-431d-9e07-49574af60e88", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_support.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_track.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_track.json deleted file mode 100644 index 066efb4..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_track.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_update.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_update.json deleted file mode 100644 index b54c8bc..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/on_update.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/rating.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/search.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/search.json deleted file mode 100644 index ae3a356..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/search.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "context": { - "action": "search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "40963dc1-e402-4f4d-ae70-7c5864ca682c", - "timestamp": "2023-12-09T13:39:56.645Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "intent": { - "fulfillment": { - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ] - }, - "payment": { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - } - ] - } - ] - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/select.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/select.json deleted file mode 100644 index 1ac2e28..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/select.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/status.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/status.json deleted file mode 100644 index 911166d..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/status.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/support.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/track.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/update.json b/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Driver_not_found_post_on_confirm/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/cancel.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/cancel.json deleted file mode 100644 index 27820bc..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "SOFT_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/confirm.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/confirm.json deleted file mode 100644 index c198095..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/confirm.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-12-10T04:34:48.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/init.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/init.json deleted file mode 100644 index 2b93c6a..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/init.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:09:31.307Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_cancel.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_cancel.json deleted file mode 100644 index f52f9c8..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_cancel.json +++ /dev/null @@ -1,390 +0,0 @@ -{ - "context": { - "action": "on_cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "version": "2.0.1", - "ttl": "PT30S" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_CANCELLED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "time": { - "duration": "PT2H" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "CAB Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "156", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BAP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "Delivery" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "2.5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://www.icicibank.com/personal-banking/loans/personal-loan" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "85" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "10" - }, - "title": "CANCELLATION_CHARGES" - }, - { - "price": { - "currency": "INR", - "value": "-146" - }, - "title": "REFUND" - } - ], - "price": { - "currency": "INR", - "value": "10" - }, - "ttl": "P200S" - }, - "status": "CANCELLED" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_confirm.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_confirm.json deleted file mode 100644 index de4017a..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_confirm.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-10T08:03:34.294Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-10T08:03:34.294Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_init.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_init.json deleted file mode 100644 index d591334..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_init.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "context": { - "action": "on_init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:11:32.859Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_rating.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_search.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_search.json deleted file mode 100644 index b921b15..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_search.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Servies BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_select.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_select.json deleted file mode 100644 index 1dbac52..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_select.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_status.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_status.json deleted file mode 100644 index 59da10d..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_status.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "5ee2001f-e612-431d-9e07-49574af60e88", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_support.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_track.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_track.json deleted file mode 100644 index d546596..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_track.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_update.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_update.json deleted file mode 100644 index 01e3bc8..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/on_update.json +++ /dev/null @@ -1,361 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-11T03:54:28.832Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENDED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "CLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-11T03:54:28.832Z" - } - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/rating.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/search.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/search.json deleted file mode 100644 index ae3a356..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/search.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "context": { - "action": "search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "40963dc1-e402-4f4d-ae70-7c5864ca682c", - "timestamp": "2023-12-09T13:39:56.645Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "intent": { - "fulfillment": { - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ] - }, - "payment": { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - } - ] - } - ] - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/select.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/select.json deleted file mode 100644 index 1ac2e28..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/select.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/status.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/status.json deleted file mode 100644 index e1bfeae..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/status.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/support.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/track.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/update.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_driver/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/cancel.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/cancel.json deleted file mode 100644 index 27820bc..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/cancel.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "be6a495a-e941-4fbf-9d59-f1e6166cccc8", - "timestamp": "2023-03-23T05:15:08Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "cancellation_reason_id": "7", - "descriptor": { - "code": "SOFT_CANCEL", - "name": "Ride Cancellation" - }, - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/confirm.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/confirm.json deleted file mode 100644 index c198095..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/confirm.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "context": { - "action": "confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-12-10T04:34:48.031Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/init.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/init.json deleted file mode 100644 index 2b93c6a..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/init.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "context": { - "action": "init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:09:31.307Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "billing": { - "name": "Joe Adams" - }, - "fulfillments": [ - { - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "id": "I1" - } - ], - "payments": [ - { - "collected_by": "BPP", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_cancel.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_cancel.json deleted file mode 100644 index f52f9c8..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_cancel.json +++ /dev/null @@ -1,390 +0,0 @@ -{ - "context": { - "action": "on_cancel", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "version": "2.0.1", - "ttl": "PT30S" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_CANCELLED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "time": { - "duration": "PT2H" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "CAB Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "156", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BAP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "Delivery" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "2.5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://www.icicibank.com/personal-banking/loans/personal-loan" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "85" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "10" - }, - "title": "CANCELLATION_CHARGES" - }, - { - "price": { - "currency": "INR", - "value": "-146" - }, - "title": "REFUND" - } - ], - "price": { - "currency": "INR", - "value": "10" - }, - "ttl": "P200S" - }, - "status": "CANCELLED" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_confirm.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_confirm.json deleted file mode 100644 index de4017a..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_confirm.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_confirm", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-10T08:03:34.294Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-10T08:03:34.294Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_init.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_init.json deleted file mode 100644 index d591334..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_init.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "context": { - "action": "on_init", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T14:11:32.859Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "id": "F1", - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_rating.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_rating.json deleted file mode 100644 index 7f6dabe..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_rating.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "on_rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "api.beckn.juspay.in/dobpp/beckn/7f7896dd-787e-4a0b-8675-e9e6fe93bb8f", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "2a17e268-1dc4-4d1a-98a2-17554a50c7d2", - "timestamp": "2023-03-23T05:41:15Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "feedback_ack": true, - "rating_ack": true - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_search.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_search.json deleted file mode 100644 index b921b15..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_search.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "context": { - "action": "on_search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "21e54d3c-9c3b-47c1-aa3b-b0e7b20818ee", - "timestamp": "2023-12-09T13:41:16.161Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "catalog": { - "descriptor": { - "name": "Mobility Servies BPP" - }, - "providers": [ - { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - }, - { - "id": "F2", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "CAB", - "variant": "SEDAN" - } - } - ], - "id": "P1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - } - }, - { - "descriptor": { - "code": "RIDE", - "name": "CAB Economy Ride" - }, - "fulfillment_ids": [ - "F2" - ], - "id": "I2", - "location_ids": [ - "L2", - "L4" - ], - "price": { - "currency": "INR", - "maximum_value": "236", - "minimum_value": "206", - "value": "206" - } - } - ], - "locations": [ - { - "gps": "12.916468,77.608998", - "id": "L1" - }, - { - "gps": "12.916714,77.609298", - "id": "L2" - }, - { - "gps": "12.916573,77.615216", - "id": "L3" - }, - { - "gps": "12.906857,77.604456", - "id": "L4" - } - ], - "payments": [ - { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT60M" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - } - ] - } - ] - } - ] - } - ] - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_select.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_select.json deleted file mode 100644 index 1dbac52..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_select.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "context": { - "action": "on_select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-09T13:49:26.132Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "fulfillments": [ - { - "id": "F1", - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV" - } - } - ], - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "P200s" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_status.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_status.json deleted file mode 100644 index 59da10d..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_status.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "context": { - "action": "on_status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "5ee2001f-e612-431d-9e07-49574af60e88", - "timestamp": "2023-03-23T04:49:34.53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "UNCLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - }, - { - "descriptor": { - "code": "INFO", - "name": "General Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "DISTANCE_TO_NEAREST_DRIVER_METER" - }, - "value": "661" - }, - { - "descriptor": { - "code": "ETA_TO_NEAREST_DRIVER_MIN" - }, - "value": "3" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-03-23T04:48:34.53Z", - "updated_at": "2023-03-23T04:49:34.53Z" - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_support.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_support.json deleted file mode 100644 index b0d398c..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_support.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "context": { - "action": "on_support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "support": { - "email": "support@nammayatri.in", - "phone": "+918068870525", - "url": "https://support.nammayatri.com/gethelp" - } - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_track.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_track.json deleted file mode 100644 index d546596..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_track.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "context": { - "action": "on_track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "ec3dea8c-c64c-4f06-b2a0-ec1f9584d7ba", - "timestamp": "2023-03-23T05:41:09Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "tracking": { - "status": "active", - "location": { - "gps": "28.620976, 77.046732", - "updated_at": "2023-03-23T05:41:09Z" - } - } - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_update.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_update.json deleted file mode 100644 index 01e3bc8..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/on_update.json +++ /dev/null @@ -1,361 +0,0 @@ -{ - "context": { - "action": "on_update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-12-11T03:54:28.832Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order": { - "cancellation_terms": [ - { - "cancellation_fee": { - "percentage": "0" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ASSIGNED" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "30" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ENROUTE_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "amount": { - "currency": "INR", - "value": "50" - } - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_ARRIVED_PICKUP" - } - }, - "reason_required": true - }, - { - "cancellation_fee": { - "percentage": "100" - }, - "fulfillment_state": { - "descriptor": { - "code": "RIDE_STARTED" - } - }, - "reason_required": true - } - ], - "fulfillments": [ - { - "agent": { - "contact": { - "phone": "9856798567" - }, - "person": { - "name": "Jason Roy" - } - }, - "customer": { - "contact": { - "phone": "9876556789" - }, - "person": { - "name": "Joe Adams" - } - }, - "id": "F1", - "state": { - "descriptor": { - "code": "RIDE_ENDED" - } - }, - "stops": [ - { - "authorization": { - "token": "234234", - "type": "OTP", - "valid_to": "2023-12-10T08:05:34.294Z", - "status": "CLAIMED" - }, - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START", - "instructions": { - "short_desc": "short description of the location", - "long_desc": "long description of the location" - } - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ], - "tags": [ - { - "descriptor": { - "code": "ROUTE_INFO", - "name": "Route Information" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "ENCODED_POLYLINE", - "name": "Path" - }, - "value": "_p~iF~ps|U_ulLnnqC_mqNvxq`@" - }, - { - "descriptor": { - "code": "WAYPOINTS", - "name": "Waypoints" - }, - "value": "[{\"gps\":\"12.909982, 77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982,77.611822\"},{\"gps\":\"12.909982, 77.611822\"}]" - } - ] - } - ], - "type": "DELIVERY", - "vehicle": { - "category": "AUTO_RICKSHAW", - "variant": "EV", - "make": "Bajaj", - "model": "Compact RE", - "registration": "KA-01-AD-9876" - } - } - ], - "id": "O1", - "items": [ - { - "descriptor": { - "code": "RIDE", - "name": "Auto Ride" - }, - "fulfillment_ids": [ - "F1" - ], - "id": "I1", - "location_ids": [ - "L1", - "L3" - ], - "payment_ids": [ - "PA1" - ], - "price": { - "currency": "INR", - "maximum_value": "176", - "minimum_value": "136", - "value": "146" - }, - "tags": [ - { - "descriptor": { - "code": "FARE_POLICY", - "name": "Daytime Charges" - }, - "display": true, - "list": [ - { - "descriptor": { - "code": "MIN_FARE" - }, - "value": "30" - }, - { - "descriptor": { - "code": "MIN_FARE_DISTANCE_KM" - }, - "value": "2" - }, - { - "descriptor": { - "code": "PER_KM_CHARGE" - }, - "value": "15" - }, - { - "descriptor": { - "code": "PICKUP_CHARGE" - }, - "value": "10" - }, - { - "descriptor": { - "code": "WAITING_CHARGE_PER_MIN" - }, - "value": "2" - }, - { - "descriptor": { - "code": "NIGHT_CHARGE_MULTIPLIER" - }, - "value": "1.5" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_START_TIME" - }, - "value": "22:00:00" - }, - { - "descriptor": { - "code": "NIGHT_SHIFT_END_TIME" - }, - "value": "05:00:00" - } - ] - } - ] - } - ], - "payments": [ - { - "collected_by": "BPP", - "id": "PA1", - "params": { - "bank_account_number": "xxxxxxxxxxxxxx", - "bank_code": "XXXXXXXX", - "virtual_payment_address": "9988199772@okicic" - }, - "status": "NOT-PAID", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "SETTLEMENT_TYPE" - }, - "value": "UPI" - }, - { - "descriptor": { - "code": "SETTLEMENT_WINDOW" - }, - "value": "PT2D" - }, - { - "descriptor": { - "code": "SETTLEMENT_BASIS" - }, - "value": "DELIVERY" - }, - { - "descriptor": { - "code": "MANDATORY_ARBITRATION" - }, - "value": "true" - }, - { - "descriptor": { - "code": "COURT_JURISDICTION" - }, - "value": "New Delhi" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bpp.com/static-terms.txt" - }, - { - "descriptor": { - "code": "SETTLEMENT_AMOUNT" - }, - "value": "1.46" - } - ] - } - ], - "type": "ON-FULFILLMENT" - } - ], - "provider": { - "id": "P1" - }, - "quote": { - "breakup": [ - { - "price": { - "currency": "INR", - "value": "30" - }, - "title": "BASE_FARE" - }, - { - "price": { - "currency": "INR", - "value": "116" - }, - "title": "DISTANCE_FARE" - } - ], - "price": { - "currency": "INR", - "value": "146" - }, - "ttl": "PT30S" - }, - "status": "ACTIVE", - "created_at": "2023-12-10T08:03:34.294Z", - "updated_at": "2023-12-11T03:54:28.832Z" - } - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/rating.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/rating.json deleted file mode 100644 index 300a828..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/rating.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "context": { - "action": "rating", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "b462a835-97d6-4479-bec8-9660a0f8513e", - "timestamp": "2023-03-23T04:46:45Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "id": "b0462745-f6c9-4100-bbe7-4fa3648b6b40", - "rating_category": "DRIVER", - "value": 4 - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/search.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/search.json deleted file mode 100644 index ae3a356..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/search.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "context": { - "action": "search", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "40963dc1-e402-4f4d-ae70-7c5864ca682c", - "timestamp": "2023-12-09T13:39:56.645Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "intent": { - "fulfillment": { - "stops": [ - { - "location": { - "gps": "13.008935, 77.644408" - }, - "type": "START" - }, - { - "location": { - "gps": "12.971186, 77.586812" - }, - "type": "END" - } - ] - }, - "payment": { - "collected_by": "BPP", - "tags": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "BUYER_FINDER_FEES_PERCENTAGE" - }, - "value": "1" - } - ] - }, - { - "descriptor": { - "code": "SETTLEMENT_TERMS" - }, - "display": false, - "list": [ - { - "descriptor": { - "code": "DELAY_INTEREST" - }, - "value": "5" - }, - { - "descriptor": { - "code": "STATIC_TERMS" - }, - "value": "https://example-test-bap.com/static-terms.txt" - } - ] - } - ] - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/select.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/select.json deleted file mode 100644 index 1ac2e28..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/select.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "context": { - "action": "select", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "432fdfd6-0457-47b6-9fac-80cbe5c0a75b", - "timestamp": "2023-12-09T13:49:01.460Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "P120S", - "version": "2.0.1" - }, - "message": { - "order": { - "items": [ - { - "id": "I1" - } - ], - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/status.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/status.json deleted file mode 100644 index e1bfeae..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/status.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "status", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/support.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/support.json deleted file mode 100644 index 5d2e454..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/support.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "context": { - "action": "support", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "ref_id": "7751bd26-3fdc-47ca-9b64-e998dc5abe68" - } -} diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/track.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/track.json deleted file mode 100644 index 520ba45..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/track.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "context": { - "action": "track", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/seller", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "8926b747-0362-4fcc-b795-0994a6287700", - "timestamp": "2023-03-23T04:48:53Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "order_id": "O1" - } - } - \ No newline at end of file diff --git a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/update.json b/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/update.json deleted file mode 100644 index 826c3d3..0000000 --- a/pkg/plugin/testData/payloads/Ride_Cancellation_by_rider/update.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "context": { - "action": "update", - "bap_id": "example-bap.com", - "bap_uri": "https://example-bap.com/prod/trv10", - "bpp_id": "example-bpp.com", - "bpp_uri": "https://example-bpp.com/prod/trv10", - "domain": "ONDC:TRV10", - "location": { - "city": { - "code": "std:080" - }, - "country": { - "code": "IND" - } - }, - "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176", - "timestamp": "2023-03-23T04:41:16Z", - "transaction_id": "870782be-6757-43f1-945c-8eeaf9536259", - "ttl": "PT30S", - "version": "2.0.1" - }, - "message": { - "update_target": "order", - "order": { - "billing": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "phone": "+91-9897867564" - }, - "id": "O1", - "provider": { - "id": "P1" - } - } - } - } - \ No newline at end of file