ondc-code-generator 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/operations.d.ts +6 -0
- package/dist/constants/syntax.d.ts +15 -0
- package/dist/generator/config-compiler.d.ts +23 -0
- package/dist/generator/generators/classes/abstract-generator.d.ts +11 -0
- package/dist/generator/generators/documentation/markdown-message-generator.d.ts +2 -0
- package/dist/generator/generators/documentation/md-generator.d.ts +9 -0
- package/dist/generator/generators/typescript/templates/json-path-utils.d.ts +5 -0
- package/dist/generator/generators/typescript/templates/validation-utils.d.ts +21 -0
- package/dist/generator/generators/typescript/ts-ast.d.ts +1 -0
- package/dist/generator/generators/typescript/ts-generator.d.ts +17 -0
- package/dist/generator/validators/abstract-validator.d.ts +17 -0
- package/dist/generator/validators/config-validator.d.ts +11 -0
- package/dist/generator/validators/session-data-config/session-data-validator.d.ts +9 -0
- package/dist/generator/validators/tests-config/sub-validations.d.ts +38 -0
- package/dist/generator/validators/tests-config/test-list-validator.d.ts +10 -0
- package/dist/generator/validators/tests-config/test-validator.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +39 -1
- package/dist/services/return-complier/ast-functions/compile-to-markdown.d.ts +2 -0
- package/dist/services/return-complier/ast-functions/semantic-validations.d.ts +2 -0
- package/dist/services/return-complier/ast.d.ts +42 -0
- package/dist/services/return-complier/combined.d.ts +2 -0
- package/dist/services/return-complier/parser.d.ts +14 -0
- package/dist/services/return-complier/tokens.d.ts +22 -0
- package/dist/services/schema-service.d.ts +6 -0
- package/dist/types/build.d.ts +48 -0
- package/dist/types/compiler-types.d.ts +3 -0
- package/dist/types/config-types.d.ts +21 -0
- package/dist/types/error-codes.d.ts +6 -0
- package/dist/types/general-types.d.ts +2 -0
- package/dist/utils/config-utils/json-schema-utils.d.ts +7 -0
- package/dist/utils/config-utils/yaml.d.ts +1 -0
- package/dist/utils/fs-utils.d.ts +3 -0
- package/dist/utils/general-utils/string-utils.d.ts +27 -0
- package/dist/utils/general-utils/test-object-utils.d.ts +2 -0
- package/dist/utils/general-utils/validation-utils.d.ts +5 -0
- package/dist/utils/json-path-utils/extract-string-paths.d.ts +8 -0
- package/dist/utils/json-path-utils/paths.d.ts +9 -0
- package/dist/utils/logger.d.ts +3 -0
- package/package.json +2 -2
- package/generated/L1-validations/api-tests/cancel.ts +0 -569
- package/generated/L1-validations/api-tests/confirm.ts +0 -1162
- package/generated/L1-validations/api-tests/init.ts +0 -1063
- package/generated/L1-validations/api-tests/on_cancel.ts +0 -2069
- package/generated/L1-validations/api-tests/on_confirm.ts +0 -2219
- package/generated/L1-validations/api-tests/on_init.ts +0 -1949
- package/generated/L1-validations/api-tests/on_search.ts +0 -1574
- package/generated/L1-validations/api-tests/on_select.ts +0 -1723
- package/generated/L1-validations/api-tests/on_status.ts +0 -2221
- package/generated/L1-validations/api-tests/on_update.ts +0 -1969
- package/generated/L1-validations/api-tests/search.ts +0 -695
- package/generated/L1-validations/api-tests/select.ts +0 -994
- package/generated/L1-validations/api-tests/status.ts +0 -443
- package/generated/L1-validations/api-tests/update.ts +0 -898
- package/generated/L1-validations/error.ts +0 -64
- package/generated/L1-validations/index.ts +0 -138
- package/generated/L1-validations/page/index.html +0 -2118
- package/generated/L1-validations/page/style.css +0 -225
- package/generated/L1-validations/readme.md +0 -1779
- package/generated/L1-validations/types/test-config.ts +0 -27
- package/generated/L1-validations/utils/json-path-utils.ts +0 -17
- package/generated/L1-validations/utils/validation-utils.ts +0 -116
- package/generated-structure/api-tests/search.ts +0 -24
- package/generated-structure/types/test-config.ts +0 -21
- package/samples/build.yaml +0 -24799
- package/samples/output.md +0 -91
- package/samples/output.ts +0 -27
- package/samples/selections.json +0 -216
- package/samples/validation-config.json +0 -3422
- package/samples/x-validations.yaml +0 -2893
- /package/{generated-structure/error.ts → dist/example.d.ts} +0 -0
- /package/{generated-structure/index.ts → dist/generator/generators/python/py-generator.d.ts} +0 -0
|
@@ -1,2118 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>API SERVICE VALIDATIONS</title>
|
|
7
|
-
<!-- Link to the CSS file -->
|
|
8
|
-
<link rel="stylesheet" href="./style.css">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<div id="content">
|
|
12
|
-
<h2>List of validations of api</h2>
|
|
13
|
-
<ul>
|
|
14
|
-
<li><p><strong>search</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
15
|
-
<ul>
|
|
16
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
17
|
-
</li>
|
|
18
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
19
|
-
</li>
|
|
20
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
21
|
-
</li>
|
|
22
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
23
|
-
</li>
|
|
24
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
25
|
-
</li>
|
|
26
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
27
|
-
</li>
|
|
28
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
29
|
-
</li>
|
|
30
|
-
<li><p><strong>condition Enum_Required_8_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
31
|
-
<ul>
|
|
32
|
-
<li><strong>condition Enum_Required_8_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["search"]</li>
|
|
33
|
-
<li><strong>condition Enum_Required_8_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
34
|
-
</ul>
|
|
35
|
-
</li>
|
|
36
|
-
<li><p><strong>condition Enum_Required_9_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
37
|
-
<ul>
|
|
38
|
-
<li><strong>condition Enum_Required_9_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
39
|
-
<li><strong>condition Enum_Required_9_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
40
|
-
</ul>
|
|
41
|
-
</li>
|
|
42
|
-
<li><p><strong>condition Enum_Required_10_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
43
|
-
</li>
|
|
44
|
-
<li><p><strong>condition Enum_Required_11_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
45
|
-
<ul>
|
|
46
|
-
<li><strong>condition Enum_Required_11_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
47
|
-
<li><strong>condition Enum_Required_11_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
48
|
-
</ul>
|
|
49
|
-
</li>
|
|
50
|
-
<li><p><strong>condition Enum_Required_12_VEHICLE_CATEGORY</strong>: all of the following sub conditions must be met:</p>
|
|
51
|
-
<ul>
|
|
52
|
-
<li><strong>condition Enum_Required_12_VEHICLE_CATEGORY.1</strong>: every element of $.message.intent.fulfillment.vehicle.category must be in ["BUS", "METRO"]</li>
|
|
53
|
-
<li><strong>condition Enum_Required_12_VEHICLE_CATEGORY.2</strong>: $.message.intent.fulfillment.vehicle.category must be present in the payload</li>
|
|
54
|
-
</ul>
|
|
55
|
-
</li>
|
|
56
|
-
<li><p><strong>condition Enum_Required_13_FULFILLMENT_TYPE</strong>: every element of $.message.intent.fulfillment.type must be in ["ROUTE", "TRIP"]</p>
|
|
57
|
-
<blockquote>
|
|
58
|
-
<p>Note: <strong>Condition Enum_Required_13_FULFILLMENT_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
59
|
-
<ul>
|
|
60
|
-
<li><strong>condition B</strong>: $.message.intent.fulfillment.type must <strong>not</strong> be present in the payload</li>
|
|
61
|
-
</ul>
|
|
62
|
-
</blockquote>
|
|
63
|
-
</li>
|
|
64
|
-
<li><p><strong>condition Enum_Required_14_STOPS_TYPE</strong>: every element of $.message.intent.fulfillment.stops[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
65
|
-
<blockquote>
|
|
66
|
-
<p>Note: <strong>Condition Enum_Required_14_STOPS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
67
|
-
<ul>
|
|
68
|
-
<li><strong>condition B</strong>: $.message.intent.fulfillment.stops[*].type must <strong>not</strong> be present in the payload</li>
|
|
69
|
-
</ul>
|
|
70
|
-
</blockquote>
|
|
71
|
-
</li>
|
|
72
|
-
<li><p><strong>condition Enum_Required_15_AUTHORIZATION_TYPE</strong>: every element of $.message.intent.fulfillment.stops[*].authorization.type must be in ["QR"]</p>
|
|
73
|
-
<blockquote>
|
|
74
|
-
<p>Note: <strong>Condition Enum_Required_15_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
75
|
-
<ul>
|
|
76
|
-
<li><strong>condition B</strong>: $.message.intent.fulfillment.stops[*].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
77
|
-
</ul>
|
|
78
|
-
</blockquote>
|
|
79
|
-
</li>
|
|
80
|
-
<li><p><strong>condition Enum_Required_16_AUTHORIZATION_STATUS</strong>: every element of $.message.intent.fulfillment.stops[*].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
81
|
-
<blockquote>
|
|
82
|
-
<p>Note: <strong>Condition Enum_Required_16_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
83
|
-
<ul>
|
|
84
|
-
<li><strong>condition B</strong>: $.message.intent.fulfillment.stops[*].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
85
|
-
</ul>
|
|
86
|
-
</blockquote>
|
|
87
|
-
</li>
|
|
88
|
-
<li><p><strong>condition BUYER_FINDER_FEES_Tag_Required_17_DESCRIPTOR_CODE</strong>: every element of $.message.intent.payment.tags[*].descriptor.code must be in ["BUYER_FINDER_FEES", "SETTLEMENT_TERMS"]</p>
|
|
89
|
-
<blockquote>
|
|
90
|
-
<p>Note: <strong>Condition BUYER_FINDER_FEES_Tag_Required_17_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
91
|
-
<ul>
|
|
92
|
-
<li><strong>condition B</strong>: $.message.intent.payment.tags[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
93
|
-
</ul>
|
|
94
|
-
</blockquote>
|
|
95
|
-
</li>
|
|
96
|
-
<li><p><strong>condition validate_tag_0_BUYER_FINDER_FEES</strong>: every element of $.message.intent.payment.tags[?(@.descriptor.code=='BUYER_FINDER_FEES')].list[*].descriptor.code must be in ["BUYER_FINDER_FEES_TYPE", "BUYER_FINDER_FEES_PERCENTAGE", "BUYER_FINDER_FEES_AMOUNT"]</p>
|
|
97
|
-
</li>
|
|
98
|
-
<li><p><strong>condition validate_tag_0_SETTLEMENT_TERMS</strong>: every element of $.message.intent.payment.tags[?(@.descriptor.code=='SETTLEMENT_TERMS')].list[*].descriptor.code must be in ["SETTLEMENT_WINDOW", "SETTLEMENT_BASIS", "SETTLEMENT_TYPE", "MANDATORY_ARBITRATION", "COURT_JURISDICTION", "DELAY_INTEREST", "STATIC_TERMS", "SETTLEMENT_AMOUNT"]</p>
|
|
99
|
-
</li>
|
|
100
|
-
</ul>
|
|
101
|
-
</li>
|
|
102
|
-
<li><p><strong>select</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
103
|
-
<ul>
|
|
104
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
105
|
-
</li>
|
|
106
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
107
|
-
</li>
|
|
108
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
109
|
-
</li>
|
|
110
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
111
|
-
</li>
|
|
112
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
113
|
-
</li>
|
|
114
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
115
|
-
</li>
|
|
116
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
117
|
-
</li>
|
|
118
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
119
|
-
</li>
|
|
120
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
121
|
-
</li>
|
|
122
|
-
<li><p><strong>condition Attri_Required_10_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
123
|
-
</li>
|
|
124
|
-
<li><p><strong>condition Attri_Required_11_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
125
|
-
</li>
|
|
126
|
-
<li><p><strong>condition Attri_Required_12_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
127
|
-
</li>
|
|
128
|
-
<li><p><strong>condition Enum_Required_13_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
129
|
-
<ul>
|
|
130
|
-
<li><strong>condition Enum_Required_13_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["select"]</li>
|
|
131
|
-
<li><strong>condition Enum_Required_13_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
132
|
-
</ul>
|
|
133
|
-
</li>
|
|
134
|
-
<li><p><strong>condition Enum_Required_14_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
135
|
-
<ul>
|
|
136
|
-
<li><strong>condition Enum_Required_14_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
137
|
-
<li><strong>condition Enum_Required_14_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
138
|
-
</ul>
|
|
139
|
-
</li>
|
|
140
|
-
<li><p><strong>condition Enum_Required_15_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
141
|
-
</li>
|
|
142
|
-
<li><p><strong>condition Enum_Required_16_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
143
|
-
<ul>
|
|
144
|
-
<li><strong>condition Enum_Required_16_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
145
|
-
<li><strong>condition Enum_Required_16_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
146
|
-
</ul>
|
|
147
|
-
</li>
|
|
148
|
-
<li><p><strong>condition Enum_Required_17_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</p>
|
|
149
|
-
<blockquote>
|
|
150
|
-
<p>Note: <strong>Condition Enum_Required_17_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
151
|
-
<ul>
|
|
152
|
-
<li><strong>condition B</strong>: $.message.order.items[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
153
|
-
</ul>
|
|
154
|
-
</blockquote>
|
|
155
|
-
</li>
|
|
156
|
-
<li><p><strong>condition Enum_Required_18_VEHICLE_CATEGORY</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</p>
|
|
157
|
-
<blockquote>
|
|
158
|
-
<p>Note: <strong>Condition Enum_Required_18_VEHICLE_CATEGORY</strong> can be skipped if the following conditions are met:</p>
|
|
159
|
-
<ul>
|
|
160
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].vehicle.category must <strong>not</strong> be present in the payload</li>
|
|
161
|
-
</ul>
|
|
162
|
-
</blockquote>
|
|
163
|
-
</li>
|
|
164
|
-
<li><p><strong>condition Enum_Required_19_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</p>
|
|
165
|
-
<blockquote>
|
|
166
|
-
<p>Note: <strong>Condition Enum_Required_19_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
167
|
-
<ul>
|
|
168
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
169
|
-
</ul>
|
|
170
|
-
</blockquote>
|
|
171
|
-
</li>
|
|
172
|
-
<li><p><strong>condition Enum_Required_20_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
173
|
-
<blockquote>
|
|
174
|
-
<p>Note: <strong>Condition Enum_Required_20_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
175
|
-
<ul>
|
|
176
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
177
|
-
</ul>
|
|
178
|
-
</blockquote>
|
|
179
|
-
</li>
|
|
180
|
-
<li><p><strong>condition Enum_Required_21_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
181
|
-
<blockquote>
|
|
182
|
-
<p>Note: <strong>Condition Enum_Required_21_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
183
|
-
<ul>
|
|
184
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
185
|
-
</ul>
|
|
186
|
-
</blockquote>
|
|
187
|
-
</li>
|
|
188
|
-
<li><p><strong>condition Enum_Required_22_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
189
|
-
<blockquote>
|
|
190
|
-
<p>Note: <strong>Condition Enum_Required_22_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
191
|
-
<ul>
|
|
192
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
193
|
-
</ul>
|
|
194
|
-
</blockquote>
|
|
195
|
-
</li>
|
|
196
|
-
<li><p><strong>condition Enum_Required_23_ORDER_STATUS</strong>: every element of $.message.order.status must be in ["SOFT_CANCEL", "CONFIRM_CANCEL", "ACTIVE", "COMPLETE", "CANCELLED"]</p>
|
|
197
|
-
<blockquote>
|
|
198
|
-
<p>Note: <strong>Condition Enum_Required_23_ORDER_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
199
|
-
<ul>
|
|
200
|
-
<li><strong>condition B</strong>: $.message.order.status must <strong>not</strong> be present in the payload</li>
|
|
201
|
-
</ul>
|
|
202
|
-
</blockquote>
|
|
203
|
-
</li>
|
|
204
|
-
<li><p><strong>condition Enum_Required_24_BREAKUP_TITLE</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</p>
|
|
205
|
-
<blockquote>
|
|
206
|
-
<p>Note: <strong>Condition Enum_Required_24_BREAKUP_TITLE</strong> can be skipped if the following conditions are met:</p>
|
|
207
|
-
<ul>
|
|
208
|
-
<li><strong>condition B</strong>: $.message.order.quote.breakup[*].title must <strong>not</strong> be present in the payload</li>
|
|
209
|
-
</ul>
|
|
210
|
-
</blockquote>
|
|
211
|
-
</li>
|
|
212
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_25_DESCRIPTOR_CODE</strong>: every element of $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
213
|
-
<blockquote>
|
|
214
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_25_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
215
|
-
<ul>
|
|
216
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
217
|
-
</ul>
|
|
218
|
-
</blockquote>
|
|
219
|
-
</li>
|
|
220
|
-
<li><p><strong>condition validate_tag_0_ROUTE_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[</em>].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
221
|
-
</li>
|
|
222
|
-
<li><p><strong>condition validate_tag_0_TICKET_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[</em>].descriptor.code must be in ["NUMBER"]</p>
|
|
223
|
-
</li>
|
|
224
|
-
<li><p><strong>condition validate_tag_0_TRIP_DETAILS</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[</em>].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
225
|
-
</li>
|
|
226
|
-
</ul>
|
|
227
|
-
</li>
|
|
228
|
-
<li><p><strong>init</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
229
|
-
<ul>
|
|
230
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
231
|
-
</li>
|
|
232
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
233
|
-
</li>
|
|
234
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
235
|
-
</li>
|
|
236
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
237
|
-
</li>
|
|
238
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
239
|
-
</li>
|
|
240
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
241
|
-
</li>
|
|
242
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
243
|
-
</li>
|
|
244
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
245
|
-
</li>
|
|
246
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
247
|
-
</li>
|
|
248
|
-
<li><p><strong>condition Attri_Required_10_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
249
|
-
</li>
|
|
250
|
-
<li><p><strong>condition Attri_Required_11_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
251
|
-
</li>
|
|
252
|
-
<li><p><strong>condition Attri_Required_12_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
253
|
-
</li>
|
|
254
|
-
<li><p><strong>condition Attri_Required_13_PAYMENTS_COLLECTED_BY</strong>: $.message.order.payments[*].collected_by must be present in the payload</p>
|
|
255
|
-
</li>
|
|
256
|
-
<li><p><strong>condition Attri_Required_14_PAYMENTS_STATUS</strong>: $.message.order.payments[*].status must be present in the payload</p>
|
|
257
|
-
</li>
|
|
258
|
-
<li><p><strong>condition Attri_Required_15_PAYMENTS_TYPE</strong>: $.message.order.payments[*].type must be present in the payload</p>
|
|
259
|
-
</li>
|
|
260
|
-
<li><p><strong>condition Enum_Required_16_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
261
|
-
<ul>
|
|
262
|
-
<li><strong>condition Enum_Required_16_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["init"]</li>
|
|
263
|
-
<li><strong>condition Enum_Required_16_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
264
|
-
</ul>
|
|
265
|
-
</li>
|
|
266
|
-
<li><p><strong>condition Enum_Required_17_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
267
|
-
<ul>
|
|
268
|
-
<li><strong>condition Enum_Required_17_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
269
|
-
<li><strong>condition Enum_Required_17_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
270
|
-
</ul>
|
|
271
|
-
</li>
|
|
272
|
-
<li><p><strong>condition Enum_Required_18_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
273
|
-
</li>
|
|
274
|
-
<li><p><strong>condition Enum_Required_19_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
275
|
-
<ul>
|
|
276
|
-
<li><strong>condition Enum_Required_19_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
277
|
-
<li><strong>condition Enum_Required_19_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
278
|
-
</ul>
|
|
279
|
-
</li>
|
|
280
|
-
<li><p><strong>condition Enum_Required_20_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</p>
|
|
281
|
-
<blockquote>
|
|
282
|
-
<p>Note: <strong>Condition Enum_Required_20_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
283
|
-
<ul>
|
|
284
|
-
<li><strong>condition B</strong>: $.message.order.items[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
285
|
-
</ul>
|
|
286
|
-
</blockquote>
|
|
287
|
-
</li>
|
|
288
|
-
<li><p><strong>condition Enum_Required_21_VEHICLE_CATEGORY</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</p>
|
|
289
|
-
<blockquote>
|
|
290
|
-
<p>Note: <strong>Condition Enum_Required_21_VEHICLE_CATEGORY</strong> can be skipped if the following conditions are met:</p>
|
|
291
|
-
<ul>
|
|
292
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].vehicle.category must <strong>not</strong> be present in the payload</li>
|
|
293
|
-
</ul>
|
|
294
|
-
</blockquote>
|
|
295
|
-
</li>
|
|
296
|
-
<li><p><strong>condition Enum_Required_22_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</p>
|
|
297
|
-
<blockquote>
|
|
298
|
-
<p>Note: <strong>Condition Enum_Required_22_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
299
|
-
<ul>
|
|
300
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
301
|
-
</ul>
|
|
302
|
-
</blockquote>
|
|
303
|
-
</li>
|
|
304
|
-
<li><p><strong>condition Enum_Required_23_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
305
|
-
<blockquote>
|
|
306
|
-
<p>Note: <strong>Condition Enum_Required_23_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
307
|
-
<ul>
|
|
308
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
309
|
-
</ul>
|
|
310
|
-
</blockquote>
|
|
311
|
-
</li>
|
|
312
|
-
<li><p><strong>condition Enum_Required_24_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
313
|
-
<blockquote>
|
|
314
|
-
<p>Note: <strong>Condition Enum_Required_24_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
315
|
-
<ul>
|
|
316
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
317
|
-
</ul>
|
|
318
|
-
</blockquote>
|
|
319
|
-
</li>
|
|
320
|
-
<li><p><strong>condition Enum_Required_25_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
321
|
-
<blockquote>
|
|
322
|
-
<p>Note: <strong>Condition Enum_Required_25_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
323
|
-
<ul>
|
|
324
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
325
|
-
</ul>
|
|
326
|
-
</blockquote>
|
|
327
|
-
</li>
|
|
328
|
-
<li><p><strong>condition Enum_Required_26_ORDER_STATUS</strong>: every element of $.message.order.status must be in ["SOFT_CANCEL", "CONFIRM_CANCEL", "ACTIVE", "COMPLETE", "CANCELLED"]</p>
|
|
329
|
-
<blockquote>
|
|
330
|
-
<p>Note: <strong>Condition Enum_Required_26_ORDER_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
331
|
-
<ul>
|
|
332
|
-
<li><strong>condition B</strong>: $.message.order.status must <strong>not</strong> be present in the payload</li>
|
|
333
|
-
</ul>
|
|
334
|
-
</blockquote>
|
|
335
|
-
</li>
|
|
336
|
-
<li><p><strong>condition Enum_Required_27_BREAKUP_TITLE</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</p>
|
|
337
|
-
<blockquote>
|
|
338
|
-
<p>Note: <strong>Condition Enum_Required_27_BREAKUP_TITLE</strong> can be skipped if the following conditions are met:</p>
|
|
339
|
-
<ul>
|
|
340
|
-
<li><strong>condition B</strong>: $.message.order.quote.breakup[*].title must <strong>not</strong> be present in the payload</li>
|
|
341
|
-
</ul>
|
|
342
|
-
</blockquote>
|
|
343
|
-
</li>
|
|
344
|
-
<li><p><strong>condition BUYER_FINDER_FEES_Tag_Required_28_DESCRIPTOR_CODE</strong>: every element of $.message.order.payments[<em>].tags[</em>].descriptor.code must be in ["BUYER_FINDER_FEES", "SETTLEMENT_TERMS"]</p>
|
|
345
|
-
<blockquote>
|
|
346
|
-
<p>Note: <strong>Condition BUYER_FINDER_FEES_Tag_Required_28_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
347
|
-
<ul>
|
|
348
|
-
<li><strong>condition B</strong>: $.message.order.payments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
349
|
-
</ul>
|
|
350
|
-
</blockquote>
|
|
351
|
-
</li>
|
|
352
|
-
<li><p><strong>condition validate_tag_0_BUYER_FINDER_FEES</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='BUYER_FINDER_FEES')].list[</em>].descriptor.code must be in ["BUYER_FINDER_FEES_TYPE", "BUYER_FINDER_FEES_PERCENTAGE", "BUYER_FINDER_FEES_AMOUNT"]</p>
|
|
353
|
-
</li>
|
|
354
|
-
<li><p><strong>condition validate_tag_0_SETTLEMENT_TERMS</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='SETTLEMENT_TERMS')].list[</em>].descriptor.code must be in ["SETTLEMENT_WINDOW", "SETTLEMENT_BASIS", "SETTLEMENT_TYPE", "MANDATORY_ARBITRATION", "COURT_JURISDICTION", "DELAY_INTEREST", "STATIC_TERMS", "SETTLEMENT_AMOUNT"]</p>
|
|
355
|
-
</li>
|
|
356
|
-
</ul>
|
|
357
|
-
</li>
|
|
358
|
-
<li><p><strong>confirm</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
359
|
-
<ul>
|
|
360
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
361
|
-
</li>
|
|
362
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
363
|
-
</li>
|
|
364
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
365
|
-
</li>
|
|
366
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
367
|
-
</li>
|
|
368
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
369
|
-
</li>
|
|
370
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
371
|
-
</li>
|
|
372
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
373
|
-
</li>
|
|
374
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
375
|
-
</li>
|
|
376
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
377
|
-
</li>
|
|
378
|
-
<li><p><strong>condition Attri_Required_10_ORDER_ID</strong>: $.message.order.id must be present in the payload</p>
|
|
379
|
-
</li>
|
|
380
|
-
<li><p><strong>condition Attri_Required_11_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
381
|
-
</li>
|
|
382
|
-
<li><p><strong>condition Attri_Required_12_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
383
|
-
</li>
|
|
384
|
-
<li><p><strong>condition Attri_Required_13_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
385
|
-
</li>
|
|
386
|
-
<li><p><strong>condition Attri_Required_14_PAYMENTS_ID</strong>: $.message.order.payments[*].id must be present in the payload</p>
|
|
387
|
-
</li>
|
|
388
|
-
<li><p><strong>condition Attri_Required_15_PARAMS_TRANSACTION_ID</strong>: $.message.order.payments[*].params.transaction_id must be present in the payload</p>
|
|
389
|
-
</li>
|
|
390
|
-
<li><p><strong>condition Attri_Required_16_PARAMS_CURRENCY</strong>: $.message.order.payments[*].params.currency must be present in the payload</p>
|
|
391
|
-
</li>
|
|
392
|
-
<li><p><strong>condition Attri_Required_17_PARAMS_AMOUNT</strong>: $.message.order.payments[*].params.amount must be present in the payload</p>
|
|
393
|
-
</li>
|
|
394
|
-
<li><p><strong>condition Attri_Required_18_PARAMS_TRANSACTION_ID</strong>: $.message.order.payments[*].params.transaction_id must be present in the payload</p>
|
|
395
|
-
</li>
|
|
396
|
-
<li><p><strong>condition Attri_Required_19_PARAMS_CURRENCY</strong>: $.message.order.payments[*].params.currency must be present in the payload</p>
|
|
397
|
-
</li>
|
|
398
|
-
<li><p><strong>condition Attri_Required_20_PARAMS_AMOUNT</strong>: $.message.order.payments[*].params.amount must be present in the payload</p>
|
|
399
|
-
</li>
|
|
400
|
-
<li><p><strong>condition Enum_Required_21_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
401
|
-
<ul>
|
|
402
|
-
<li><strong>condition Enum_Required_21_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["confirm"]</li>
|
|
403
|
-
<li><strong>condition Enum_Required_21_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
404
|
-
</ul>
|
|
405
|
-
</li>
|
|
406
|
-
<li><p><strong>condition Enum_Required_22_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
407
|
-
<ul>
|
|
408
|
-
<li><strong>condition Enum_Required_22_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
409
|
-
<li><strong>condition Enum_Required_22_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
410
|
-
</ul>
|
|
411
|
-
</li>
|
|
412
|
-
<li><p><strong>condition Enum_Required_23_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
413
|
-
</li>
|
|
414
|
-
<li><p><strong>condition Enum_Required_24_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
415
|
-
<ul>
|
|
416
|
-
<li><strong>condition Enum_Required_24_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
417
|
-
<li><strong>condition Enum_Required_24_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
418
|
-
</ul>
|
|
419
|
-
</li>
|
|
420
|
-
<li><p><strong>condition Enum_Required_25_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</p>
|
|
421
|
-
<blockquote>
|
|
422
|
-
<p>Note: <strong>Condition Enum_Required_25_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
423
|
-
<ul>
|
|
424
|
-
<li><strong>condition B</strong>: $.message.order.items[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
425
|
-
</ul>
|
|
426
|
-
</blockquote>
|
|
427
|
-
</li>
|
|
428
|
-
<li><p><strong>condition Enum_Required_26_VEHICLE_CATEGORY</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</p>
|
|
429
|
-
<blockquote>
|
|
430
|
-
<p>Note: <strong>Condition Enum_Required_26_VEHICLE_CATEGORY</strong> can be skipped if the following conditions are met:</p>
|
|
431
|
-
<ul>
|
|
432
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].vehicle.category must <strong>not</strong> be present in the payload</li>
|
|
433
|
-
</ul>
|
|
434
|
-
</blockquote>
|
|
435
|
-
</li>
|
|
436
|
-
<li><p><strong>condition Enum_Required_27_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</p>
|
|
437
|
-
<blockquote>
|
|
438
|
-
<p>Note: <strong>Condition Enum_Required_27_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
439
|
-
<ul>
|
|
440
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
441
|
-
</ul>
|
|
442
|
-
</blockquote>
|
|
443
|
-
</li>
|
|
444
|
-
<li><p><strong>condition Enum_Required_28_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
445
|
-
<blockquote>
|
|
446
|
-
<p>Note: <strong>Condition Enum_Required_28_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
447
|
-
<ul>
|
|
448
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
449
|
-
</ul>
|
|
450
|
-
</blockquote>
|
|
451
|
-
</li>
|
|
452
|
-
<li><p><strong>condition Enum_Required_29_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
453
|
-
<blockquote>
|
|
454
|
-
<p>Note: <strong>Condition Enum_Required_29_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
455
|
-
<ul>
|
|
456
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
457
|
-
</ul>
|
|
458
|
-
</blockquote>
|
|
459
|
-
</li>
|
|
460
|
-
<li><p><strong>condition Enum_Required_30_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
461
|
-
<blockquote>
|
|
462
|
-
<p>Note: <strong>Condition Enum_Required_30_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
463
|
-
<ul>
|
|
464
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
465
|
-
</ul>
|
|
466
|
-
</blockquote>
|
|
467
|
-
</li>
|
|
468
|
-
<li><p><strong>condition Enum_Required_31_PAYMENTS_STATUS</strong>: all of the following sub conditions must be met:</p>
|
|
469
|
-
<ul>
|
|
470
|
-
<li><strong>condition Enum_Required_31_PAYMENTS_STATUS.1</strong>: every element of $.message.order.payments[*].status must be in ["NOT-PAID", "PAID"]</li>
|
|
471
|
-
<li><strong>condition Enum_Required_31_PAYMENTS_STATUS.2</strong>: $.message.order.payments[*].status must be present in the payload</li>
|
|
472
|
-
</ul>
|
|
473
|
-
</li>
|
|
474
|
-
<li><p><strong>condition Enum_Required_32_PAYMENTS_COLLECTED_BY</strong>: all of the following sub conditions must be met:</p>
|
|
475
|
-
<ul>
|
|
476
|
-
<li><strong>condition Enum_Required_32_PAYMENTS_COLLECTED_BY.1</strong>: every element of $.message.order.payments[*].collected_by must be in ["BPP", "BAP"]</li>
|
|
477
|
-
<li><strong>condition Enum_Required_32_PAYMENTS_COLLECTED_BY.2</strong>: $.message.order.payments[*].collected_by must be present in the payload</li>
|
|
478
|
-
</ul>
|
|
479
|
-
</li>
|
|
480
|
-
<li><p><strong>condition Enum_Required_33_PAYMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
481
|
-
<ul>
|
|
482
|
-
<li><strong>condition Enum_Required_33_PAYMENTS_TYPE.1</strong>: every element of $.message.order.payments[*].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</li>
|
|
483
|
-
<li><strong>condition Enum_Required_33_PAYMENTS_TYPE.2</strong>: $.message.order.payments[*].type must be present in the payload</li>
|
|
484
|
-
</ul>
|
|
485
|
-
</li>
|
|
486
|
-
<li><p><strong>condition Enum_Required_34_BREAKUP_TITLE</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</p>
|
|
487
|
-
<blockquote>
|
|
488
|
-
<p>Note: <strong>Condition Enum_Required_34_BREAKUP_TITLE</strong> can be skipped if the following conditions are met:</p>
|
|
489
|
-
<ul>
|
|
490
|
-
<li><strong>condition B</strong>: $.message.order.quote.breakup[*].title must <strong>not</strong> be present in the payload</li>
|
|
491
|
-
</ul>
|
|
492
|
-
</blockquote>
|
|
493
|
-
</li>
|
|
494
|
-
</ul>
|
|
495
|
-
</li>
|
|
496
|
-
<li><p><strong>status</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
497
|
-
<ul>
|
|
498
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
499
|
-
</li>
|
|
500
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
501
|
-
</li>
|
|
502
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
503
|
-
</li>
|
|
504
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
505
|
-
</li>
|
|
506
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
507
|
-
</li>
|
|
508
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
509
|
-
</li>
|
|
510
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
511
|
-
</li>
|
|
512
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
513
|
-
</li>
|
|
514
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
515
|
-
</li>
|
|
516
|
-
<li><p><strong>condition Enum_Required_10_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
517
|
-
<ul>
|
|
518
|
-
<li><strong>condition Enum_Required_10_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["status"]</li>
|
|
519
|
-
<li><strong>condition Enum_Required_10_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
520
|
-
</ul>
|
|
521
|
-
</li>
|
|
522
|
-
<li><p><strong>condition Enum_Required_11_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
523
|
-
<ul>
|
|
524
|
-
<li><strong>condition Enum_Required_11_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
525
|
-
<li><strong>condition Enum_Required_11_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
526
|
-
</ul>
|
|
527
|
-
</li>
|
|
528
|
-
<li><p><strong>condition Enum_Required_12_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
529
|
-
</li>
|
|
530
|
-
<li><p><strong>condition Enum_Required_13_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
531
|
-
<ul>
|
|
532
|
-
<li><strong>condition Enum_Required_13_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
533
|
-
<li><strong>condition Enum_Required_13_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
534
|
-
</ul>
|
|
535
|
-
</li>
|
|
536
|
-
</ul>
|
|
537
|
-
</li>
|
|
538
|
-
<li><p><strong>cancel</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
539
|
-
<ul>
|
|
540
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
541
|
-
</li>
|
|
542
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
543
|
-
</li>
|
|
544
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
545
|
-
</li>
|
|
546
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
547
|
-
</li>
|
|
548
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
549
|
-
</li>
|
|
550
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
551
|
-
</li>
|
|
552
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
553
|
-
</li>
|
|
554
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
555
|
-
</li>
|
|
556
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
557
|
-
</li>
|
|
558
|
-
<li><p><strong>condition Attri_Required_10_MESSAGE_ORDER_ID</strong>: $.message.order_id must be present in the payload</p>
|
|
559
|
-
</li>
|
|
560
|
-
<li><p><strong>condition Attri_Required_11_MESSAGE_CANCELLATION_REASON_ID</strong>: $.message.cancellation_reason_id must be present in the payload</p>
|
|
561
|
-
</li>
|
|
562
|
-
<li><p><strong>condition Attri_Required_12_DESCRIPTOR_NAME</strong>: $.message.descriptor.name must be present in the payload</p>
|
|
563
|
-
</li>
|
|
564
|
-
<li><p><strong>condition Enum_Required_13_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
565
|
-
<ul>
|
|
566
|
-
<li><strong>condition Enum_Required_13_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["cancel"]</li>
|
|
567
|
-
<li><strong>condition Enum_Required_13_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
568
|
-
</ul>
|
|
569
|
-
</li>
|
|
570
|
-
<li><p><strong>condition Enum_Required_14_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
571
|
-
<ul>
|
|
572
|
-
<li><strong>condition Enum_Required_14_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
573
|
-
<li><strong>condition Enum_Required_14_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
574
|
-
</ul>
|
|
575
|
-
</li>
|
|
576
|
-
<li><p><strong>condition Enum_Required_15_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
577
|
-
</li>
|
|
578
|
-
<li><p><strong>condition Enum_Required_16_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
579
|
-
<ul>
|
|
580
|
-
<li><strong>condition Enum_Required_16_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
581
|
-
<li><strong>condition Enum_Required_16_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
582
|
-
</ul>
|
|
583
|
-
</li>
|
|
584
|
-
<li><p><strong>condition Enum_Required_17_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
585
|
-
<ul>
|
|
586
|
-
<li><strong>condition Enum_Required_17_DESCRIPTOR_CODE.1</strong>: every element of $.message.descriptor.code must be in ["SOFT-CANCEL", "CONFIRM-CANCEL"]</li>
|
|
587
|
-
<li><strong>condition Enum_Required_17_DESCRIPTOR_CODE.2</strong>: $.message.descriptor.code must be present in the payload</li>
|
|
588
|
-
</ul>
|
|
589
|
-
</li>
|
|
590
|
-
</ul>
|
|
591
|
-
</li>
|
|
592
|
-
<li><p><strong>update</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
593
|
-
<ul>
|
|
594
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
595
|
-
</li>
|
|
596
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
597
|
-
</li>
|
|
598
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
599
|
-
</li>
|
|
600
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
601
|
-
</li>
|
|
602
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
603
|
-
</li>
|
|
604
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
605
|
-
</li>
|
|
606
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
607
|
-
</li>
|
|
608
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
609
|
-
</li>
|
|
610
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
611
|
-
</li>
|
|
612
|
-
<li><p><strong>condition Attri_Required_10_MESSAGE_UPDATE_TARGET</strong>: $.message.update_target must be present in the payload</p>
|
|
613
|
-
</li>
|
|
614
|
-
<li><p><strong>condition Attri_Required_11_ORDER_ID</strong>: $.message.order.id must be present in the payload</p>
|
|
615
|
-
</li>
|
|
616
|
-
<li><p><strong>condition Enum_Required_12_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
617
|
-
<ul>
|
|
618
|
-
<li><strong>condition Enum_Required_12_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["update"]</li>
|
|
619
|
-
<li><strong>condition Enum_Required_12_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
620
|
-
</ul>
|
|
621
|
-
</li>
|
|
622
|
-
<li><p><strong>condition Enum_Required_13_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
623
|
-
<ul>
|
|
624
|
-
<li><strong>condition Enum_Required_13_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
625
|
-
<li><strong>condition Enum_Required_13_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
626
|
-
</ul>
|
|
627
|
-
</li>
|
|
628
|
-
<li><p><strong>condition Enum_Required_14_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
629
|
-
</li>
|
|
630
|
-
<li><p><strong>condition Enum_Required_15_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
631
|
-
<ul>
|
|
632
|
-
<li><strong>condition Enum_Required_15_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
633
|
-
<li><strong>condition Enum_Required_15_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
634
|
-
</ul>
|
|
635
|
-
</li>
|
|
636
|
-
<li><p><strong>condition Enum_Required_16_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</p>
|
|
637
|
-
<blockquote>
|
|
638
|
-
<p>Note: <strong>Condition Enum_Required_16_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
639
|
-
<ul>
|
|
640
|
-
<li><strong>condition B</strong>: $.message.order.items[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
641
|
-
</ul>
|
|
642
|
-
</blockquote>
|
|
643
|
-
</li>
|
|
644
|
-
<li><p><strong>condition Enum_Required_17_VEHICLE_CATEGORY</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</p>
|
|
645
|
-
<blockquote>
|
|
646
|
-
<p>Note: <strong>Condition Enum_Required_17_VEHICLE_CATEGORY</strong> can be skipped if the following conditions are met:</p>
|
|
647
|
-
<ul>
|
|
648
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].vehicle.category must <strong>not</strong> be present in the payload</li>
|
|
649
|
-
</ul>
|
|
650
|
-
</blockquote>
|
|
651
|
-
</li>
|
|
652
|
-
<li><p><strong>condition Enum_Required_18_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</p>
|
|
653
|
-
<blockquote>
|
|
654
|
-
<p>Note: <strong>Condition Enum_Required_18_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
655
|
-
<ul>
|
|
656
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
657
|
-
</ul>
|
|
658
|
-
</blockquote>
|
|
659
|
-
</li>
|
|
660
|
-
<li><p><strong>condition Enum_Required_19_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
661
|
-
<blockquote>
|
|
662
|
-
<p>Note: <strong>Condition Enum_Required_19_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
663
|
-
<ul>
|
|
664
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
665
|
-
</ul>
|
|
666
|
-
</blockquote>
|
|
667
|
-
</li>
|
|
668
|
-
<li><p><strong>condition Enum_Required_20_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
669
|
-
<blockquote>
|
|
670
|
-
<p>Note: <strong>Condition Enum_Required_20_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
671
|
-
<ul>
|
|
672
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
673
|
-
</ul>
|
|
674
|
-
</blockquote>
|
|
675
|
-
</li>
|
|
676
|
-
<li><p><strong>condition Enum_Required_21_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
677
|
-
<blockquote>
|
|
678
|
-
<p>Note: <strong>Condition Enum_Required_21_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
679
|
-
<ul>
|
|
680
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
681
|
-
</ul>
|
|
682
|
-
</blockquote>
|
|
683
|
-
</li>
|
|
684
|
-
<li><p><strong>condition Enum_Required_22_PAYMENTS_STATUS</strong>: every element of $.message.order.payments[*].status must be in ["NOT-PAID", "PAID"]</p>
|
|
685
|
-
<blockquote>
|
|
686
|
-
<p>Note: <strong>Condition Enum_Required_22_PAYMENTS_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
687
|
-
<ul>
|
|
688
|
-
<li><strong>condition B</strong>: $.message.order.payments[*].status must <strong>not</strong> be present in the payload</li>
|
|
689
|
-
</ul>
|
|
690
|
-
</blockquote>
|
|
691
|
-
</li>
|
|
692
|
-
<li><p><strong>condition Enum_Required_23_PAYMENTS_COLLECTED_BY</strong>: every element of $.message.order.payments[*].collected_by must be in ["BPP", "BAP"]</p>
|
|
693
|
-
<blockquote>
|
|
694
|
-
<p>Note: <strong>Condition Enum_Required_23_PAYMENTS_COLLECTED_BY</strong> can be skipped if the following conditions are met:</p>
|
|
695
|
-
<ul>
|
|
696
|
-
<li><strong>condition B</strong>: $.message.order.payments[*].collected_by must <strong>not</strong> be present in the payload</li>
|
|
697
|
-
</ul>
|
|
698
|
-
</blockquote>
|
|
699
|
-
</li>
|
|
700
|
-
<li><p><strong>condition Enum_Required_24_PAYMENTS_TYPE</strong>: every element of $.message.order.payments[*].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</p>
|
|
701
|
-
<blockquote>
|
|
702
|
-
<p>Note: <strong>Condition Enum_Required_24_PAYMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
703
|
-
<ul>
|
|
704
|
-
<li><strong>condition B</strong>: $.message.order.payments[*].type must <strong>not</strong> be present in the payload</li>
|
|
705
|
-
</ul>
|
|
706
|
-
</blockquote>
|
|
707
|
-
</li>
|
|
708
|
-
<li><p><strong>condition Enum_Required_25_BREAKUP_TITLE</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</p>
|
|
709
|
-
<blockquote>
|
|
710
|
-
<p>Note: <strong>Condition Enum_Required_25_BREAKUP_TITLE</strong> can be skipped if the following conditions are met:</p>
|
|
711
|
-
<ul>
|
|
712
|
-
<li><strong>condition B</strong>: $.message.order.quote.breakup[*].title must <strong>not</strong> be present in the payload</li>
|
|
713
|
-
</ul>
|
|
714
|
-
</blockquote>
|
|
715
|
-
</li>
|
|
716
|
-
</ul>
|
|
717
|
-
</li>
|
|
718
|
-
<li><p><strong>on_search</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
719
|
-
<ul>
|
|
720
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
721
|
-
</li>
|
|
722
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
723
|
-
</li>
|
|
724
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
725
|
-
</li>
|
|
726
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
727
|
-
</li>
|
|
728
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
729
|
-
</li>
|
|
730
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
731
|
-
</li>
|
|
732
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
733
|
-
</li>
|
|
734
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
735
|
-
</li>
|
|
736
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
737
|
-
</li>
|
|
738
|
-
<li><p><strong>condition Enum_Required_19_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
739
|
-
<ul>
|
|
740
|
-
<li><strong>condition Enum_Required_19_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["on_search"]</li>
|
|
741
|
-
<li><strong>condition Enum_Required_19_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
742
|
-
</ul>
|
|
743
|
-
</li>
|
|
744
|
-
<li><p><strong>condition Enum_Required_20_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
745
|
-
<ul>
|
|
746
|
-
<li><strong>condition Enum_Required_20_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
747
|
-
<li><strong>condition Enum_Required_20_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
748
|
-
</ul>
|
|
749
|
-
</li>
|
|
750
|
-
<li><p><strong>condition Enum_Required_21_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
751
|
-
</li>
|
|
752
|
-
<li><p><strong>condition Enum_Required_22_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
753
|
-
<ul>
|
|
754
|
-
<li><strong>condition Enum_Required_22_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
755
|
-
<li><strong>condition Enum_Required_22_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
756
|
-
</ul>
|
|
757
|
-
</li>
|
|
758
|
-
<li><p><strong>on_search_Message_TESTS</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
759
|
-
<ul>
|
|
760
|
-
<li><p><strong>condition Attri_Required_10_DESCRIPTOR_NAME</strong>: $.message.catalog.descriptor.name must be present in the payload</p>
|
|
761
|
-
</li>
|
|
762
|
-
<li><p><strong>condition Attri_Required_11_PROVIDERS_ID</strong>: $.message.catalog.providers[*].id must be present in the payload</p>
|
|
763
|
-
</li>
|
|
764
|
-
<li><p><strong>condition Attri_Required_12_DESCRIPTOR_NAME</strong>: $.message.catalog.providers[*].descriptor.name must be present in the payload</p>
|
|
765
|
-
</li>
|
|
766
|
-
<li><p><strong>condition Attri_Required_13_FULFILLMENTS_ID</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].id must be present in the payload</p>
|
|
767
|
-
</li>
|
|
768
|
-
<li><p><strong>condition Attri_Required_14_LOCATION_GPS</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].stops[*].location.gps must be present in the payload</p>
|
|
769
|
-
</li>
|
|
770
|
-
<li><p><strong>condition Attri_Required_15_FULFILLMENTS_ID</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].id must be present in the payload</p>
|
|
771
|
-
</li>
|
|
772
|
-
<li><p><strong>condition Attri_Required_16_CATEGORIES_ID</strong>: $.message.catalog.providers[<em>].categories[</em>].id must be present in the payload</p>
|
|
773
|
-
</li>
|
|
774
|
-
<li><p><strong>condition Attri_Required_17_RANGE_START</strong>: $.message.catalog.providers[*].time.range.start must be present in the payload</p>
|
|
775
|
-
</li>
|
|
776
|
-
<li><p><strong>condition Attri_Required_18_RANGE_END</strong>: $.message.catalog.providers[*].time.range.end must be present in the payload</p>
|
|
777
|
-
</li>
|
|
778
|
-
<li><p><strong>condition Enum_Required_23_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
779
|
-
<ul>
|
|
780
|
-
<li><strong>condition Enum_Required_23_DESCRIPTOR_CODE.1</strong>: every element of $.message.catalog.providers[<em>].categories[</em>].descriptor.code must be in ["TICKET", "PASS"]</li>
|
|
781
|
-
<li><strong>condition Enum_Required_23_DESCRIPTOR_CODE.2</strong>: $.message.catalog.providers[<em>].categories[</em>].descriptor.code must be present in the payload</li>
|
|
782
|
-
</ul>
|
|
783
|
-
</li>
|
|
784
|
-
<li><p><strong>condition Enum_Required_24_DESCRIPTOR_CODE</strong>: every element of $.message.catalog.providers[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</p>
|
|
785
|
-
<blockquote>
|
|
786
|
-
<p>Note: <strong>Condition Enum_Required_24_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
787
|
-
<ul>
|
|
788
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
789
|
-
</ul>
|
|
790
|
-
</blockquote>
|
|
791
|
-
</li>
|
|
792
|
-
<li><p><strong>condition Enum_Required_25_VEHICLE_CATEGORY</strong>: all of the following sub conditions must be met:</p>
|
|
793
|
-
<ul>
|
|
794
|
-
<li><strong>condition Enum_Required_25_VEHICLE_CATEGORY.1</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].vehicle.category must be in ["BUS", "METRO"]</li>
|
|
795
|
-
<li><strong>condition Enum_Required_25_VEHICLE_CATEGORY.2</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].vehicle.category must be present in the payload</li>
|
|
796
|
-
</ul>
|
|
797
|
-
</li>
|
|
798
|
-
<li><p><strong>condition Enum_Required_26_FULFILLMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
799
|
-
<ul>
|
|
800
|
-
<li><strong>condition Enum_Required_26_FULFILLMENTS_TYPE.1</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].type must be in ["ROUTE", "TRIP"]</li>
|
|
801
|
-
<li><strong>condition Enum_Required_26_FULFILLMENTS_TYPE.2</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].type must be present in the payload</li>
|
|
802
|
-
</ul>
|
|
803
|
-
</li>
|
|
804
|
-
<li><p><strong>condition Enum_Required_27_FULFILLMENTS_TYPE</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
805
|
-
<blockquote>
|
|
806
|
-
<p>Note: <strong>Condition Enum_Required_27_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
807
|
-
<ul>
|
|
808
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].type must <strong>not</strong> be present in the payload</li>
|
|
809
|
-
</ul>
|
|
810
|
-
</blockquote>
|
|
811
|
-
</li>
|
|
812
|
-
<li><p><strong>condition Enum_Required_28_AUTHORIZATION_TYPE</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].stops[*].authorization.type must be in ["QR"]</p>
|
|
813
|
-
<blockquote>
|
|
814
|
-
<p>Note: <strong>Condition Enum_Required_28_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
815
|
-
<ul>
|
|
816
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].stops[*].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
817
|
-
</ul>
|
|
818
|
-
</blockquote>
|
|
819
|
-
</li>
|
|
820
|
-
<li><p><strong>condition Enum_Required_29_AUTHORIZATION_STATUS</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].stops[*].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
821
|
-
<blockquote>
|
|
822
|
-
<p>Note: <strong>Condition Enum_Required_29_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
823
|
-
<ul>
|
|
824
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].stops[*].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
825
|
-
</ul>
|
|
826
|
-
</blockquote>
|
|
827
|
-
</li>
|
|
828
|
-
<li><p><strong>condition Enum_Required_30_PAYMENTS_STATUS</strong>: every element of $.message.catalog.providers[<em>].payments[</em>].status must be in ["NOT-PAID", "PAID"]</p>
|
|
829
|
-
<blockquote>
|
|
830
|
-
<p>Note: <strong>Condition Enum_Required_30_PAYMENTS_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
831
|
-
<ul>
|
|
832
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].payments[</em>].status must <strong>not</strong> be present in the payload</li>
|
|
833
|
-
</ul>
|
|
834
|
-
</blockquote>
|
|
835
|
-
</li>
|
|
836
|
-
<li><p><strong>condition Enum_Required_31_PAYMENTS_COLLECTED_BY</strong>: all of the following sub conditions must be met:</p>
|
|
837
|
-
<ul>
|
|
838
|
-
<li><strong>condition Enum_Required_31_PAYMENTS_COLLECTED_BY.1</strong>: every element of $.message.catalog.providers[<em>].payments[</em>].collected_by must be in ["BPP", "BAP"]</li>
|
|
839
|
-
<li><strong>condition Enum_Required_31_PAYMENTS_COLLECTED_BY.2</strong>: $.message.catalog.providers[<em>].payments[</em>].collected_by must be present in the payload</li>
|
|
840
|
-
</ul>
|
|
841
|
-
</li>
|
|
842
|
-
<li><p><strong>condition Enum_Required_32_PAYMENTS_TYPE</strong>: every element of $.message.catalog.providers[<em>].payments[</em>].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</p>
|
|
843
|
-
<blockquote>
|
|
844
|
-
<p>Note: <strong>Condition Enum_Required_32_PAYMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
845
|
-
<ul>
|
|
846
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].payments[</em>].type must <strong>not</strong> be present in the payload</li>
|
|
847
|
-
</ul>
|
|
848
|
-
</blockquote>
|
|
849
|
-
</li>
|
|
850
|
-
<li><p><strong>condition FARE_POLICY_Tag_Required_33_DESCRIPTOR_CODE</strong>: every element of $.message.catalog.providers[<em>].items[</em>].tags[*].descriptor.code must be in ["FARE_POLICY"]</p>
|
|
851
|
-
<blockquote>
|
|
852
|
-
<p>Note: <strong>Condition FARE_POLICY_Tag_Required_33_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
853
|
-
<ul>
|
|
854
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].items[</em>].tags[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
855
|
-
</ul>
|
|
856
|
-
</blockquote>
|
|
857
|
-
</li>
|
|
858
|
-
<li><p><strong>condition validate_tag_0_FARE_POLICY</strong>: every element of $.message.catalog.providers[<em>].items[</em>].tags[?(@.descriptor.code=='FARE_POLICY')].list[*].descriptor.code must be in ["RESTRICTED_PERSON", "RESTRICTION_PROOF"]</p>
|
|
859
|
-
</li>
|
|
860
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_35_DESCRIPTOR_CODE</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].tags[*].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
861
|
-
<blockquote>
|
|
862
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_35_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
863
|
-
<ul>
|
|
864
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].fulfillments[</em>].tags[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
865
|
-
</ul>
|
|
866
|
-
</blockquote>
|
|
867
|
-
</li>
|
|
868
|
-
<li><p><strong>condition validate_tag_1_ROUTE_INFO</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[*].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
869
|
-
</li>
|
|
870
|
-
<li><p><strong>condition validate_tag_1_TICKET_INFO</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[*].descriptor.code must be in ["NUMBER"]</p>
|
|
871
|
-
</li>
|
|
872
|
-
<li><p><strong>condition validate_tag_1_TRIP_DETAILS</strong>: every element of $.message.catalog.providers[<em>].fulfillments[</em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[*].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
873
|
-
</li>
|
|
874
|
-
<li><p><strong>condition BUYER_FINDER_FEES_Tag_Required_39_DESCRIPTOR_CODE</strong>: every element of $.message.catalog.providers[<em>].payments[</em>].tags[*].descriptor.code must be in ["BUYER_FINDER_FEES", "SETTLEMENT_TERMS"]</p>
|
|
875
|
-
<blockquote>
|
|
876
|
-
<p>Note: <strong>Condition BUYER_FINDER_FEES_Tag_Required_39_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
877
|
-
<ul>
|
|
878
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].payments[</em>].tags[*].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
879
|
-
</ul>
|
|
880
|
-
</blockquote>
|
|
881
|
-
</li>
|
|
882
|
-
<li><p><strong>condition validate_tag_2_BUYER_FINDER_FEES</strong>: every element of $.message.catalog.providers[<em>].payments[</em>].tags[?(@.descriptor.code=='BUYER_FINDER_FEES')].list[*].descriptor.code must be in ["BUYER_FINDER_FEES_TYPE", "BUYER_FINDER_FEES_PERCENTAGE", "BUYER_FINDER_FEES_AMOUNT"]</p>
|
|
883
|
-
</li>
|
|
884
|
-
<li><p><strong>condition validate_tag_2_SETTLEMENT_TERMS</strong>: every element of $.message.catalog.providers[<em>].payments[</em>].tags[?(@.descriptor.code=='SETTLEMENT_TERMS')].list[*].descriptor.code must be in ["SETTLEMENT_WINDOW", "SETTLEMENT_BASIS", "SETTLEMENT_TYPE", "MANDATORY_ARBITRATION", "COURT_JURISDICTION", "DELAY_INTEREST", "STATIC_TERMS", "SETTLEMENT_AMOUNT"]</p>
|
|
885
|
-
</li>
|
|
886
|
-
<li><p><strong>condition SCHEDULED_INFO_Tag_Required_42_DESCRIPTOR_CODE</strong>: every element of $.message.catalog.providers[<em>].tags[</em>].descriptor.code must be in ["SCHEDULED_INFO"]</p>
|
|
887
|
-
<blockquote>
|
|
888
|
-
<p>Note: <strong>Condition SCHEDULED_INFO_Tag_Required_42_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
889
|
-
<ul>
|
|
890
|
-
<li><strong>condition B</strong>: $.message.catalog.providers[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
891
|
-
</ul>
|
|
892
|
-
</blockquote>
|
|
893
|
-
</li>
|
|
894
|
-
<li><p><strong>condition validate_tag_3_SCHEDULED_INFO</strong>: every element of $.message.catalog.providers[<em>].tags[?(@.descriptor.code=='SCHEDULED_INFO')].list[</em>].descriptor.code must be in ["GTFS"]</p>
|
|
895
|
-
</li>
|
|
896
|
-
</ul>
|
|
897
|
-
</li>
|
|
898
|
-
</ul>
|
|
899
|
-
</li>
|
|
900
|
-
<li><p><strong>on_select</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
901
|
-
<ul>
|
|
902
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
903
|
-
</li>
|
|
904
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
905
|
-
</li>
|
|
906
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
907
|
-
</li>
|
|
908
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
909
|
-
</li>
|
|
910
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
911
|
-
</li>
|
|
912
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
913
|
-
</li>
|
|
914
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
915
|
-
</li>
|
|
916
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
917
|
-
</li>
|
|
918
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
919
|
-
</li>
|
|
920
|
-
<li><p><strong>condition Enum_Required_33_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
921
|
-
<ul>
|
|
922
|
-
<li><strong>condition Enum_Required_33_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["on_select"]</li>
|
|
923
|
-
<li><strong>condition Enum_Required_33_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
924
|
-
</ul>
|
|
925
|
-
</li>
|
|
926
|
-
<li><p><strong>condition Enum_Required_34_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
927
|
-
<ul>
|
|
928
|
-
<li><strong>condition Enum_Required_34_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
929
|
-
<li><strong>condition Enum_Required_34_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
930
|
-
</ul>
|
|
931
|
-
</li>
|
|
932
|
-
<li><p><strong>condition Enum_Required_35_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
933
|
-
</li>
|
|
934
|
-
<li><p><strong>condition Enum_Required_36_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
935
|
-
<ul>
|
|
936
|
-
<li><strong>condition Enum_Required_36_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
937
|
-
<li><strong>condition Enum_Required_36_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
938
|
-
</ul>
|
|
939
|
-
</li>
|
|
940
|
-
<li><p><strong>on_select_Message_TESTS</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
941
|
-
<ul>
|
|
942
|
-
<li><p><strong>condition Attri_Required_10_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
943
|
-
</li>
|
|
944
|
-
<li><p><strong>condition Attri_Required_11_PRICE_CURRENCY</strong>: $.message.order.items[*].price.currency must be present in the payload</p>
|
|
945
|
-
</li>
|
|
946
|
-
<li><p><strong>condition Attri_Required_12_PRICE_VALUE</strong>: $.message.order.items[*].price.value must be present in the payload</p>
|
|
947
|
-
</li>
|
|
948
|
-
<li><p><strong>condition Attri_Required_13_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
949
|
-
</li>
|
|
950
|
-
<li><p><strong>condition Attri_Required_14_ITEMS_FULFILLMENT_IDS</strong>: $.message.order.items[<em>].fulfillment_ids[</em>] must be present in the payload</p>
|
|
951
|
-
</li>
|
|
952
|
-
<li><p><strong>condition Attri_Required_15_TIME_LABEL</strong>: $.message.order.items[*].time.label must be present in the payload</p>
|
|
953
|
-
</li>
|
|
954
|
-
<li><p><strong>condition Attri_Required_16_TIME_DURATION</strong>: $.message.order.items[*].time.duration must be present in the payload</p>
|
|
955
|
-
</li>
|
|
956
|
-
<li><p><strong>condition Attri_Required_17_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
957
|
-
</li>
|
|
958
|
-
<li><p><strong>condition Attri_Required_18_DESCRIPTOR_NAME</strong>: $.message.order.provider.descriptor.name must be present in the payload</p>
|
|
959
|
-
</li>
|
|
960
|
-
<li><p><strong>condition Attri_Required_19_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
961
|
-
</li>
|
|
962
|
-
<li><p><strong>condition Attri_Required_20_LOCATION_GPS</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.gps must be present in the payload</p>
|
|
963
|
-
</li>
|
|
964
|
-
<li><p><strong>condition Attri_Required_21_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
965
|
-
</li>
|
|
966
|
-
<li><p><strong>condition Attri_Required_22_PRICE_VALUE</strong>: $.message.order.quote.price.value must be present in the payload</p>
|
|
967
|
-
</li>
|
|
968
|
-
<li><p><strong>condition Attri_Required_23_PRICE_CURRENCY</strong>: $.message.order.quote.price.currency must be present in the payload</p>
|
|
969
|
-
</li>
|
|
970
|
-
<li><p><strong>condition Attri_Required_24_ITEM_ID</strong>: $.message.order.quote.breakup[*].item.id must be present in the payload</p>
|
|
971
|
-
</li>
|
|
972
|
-
<li><p><strong>condition Attri_Required_25_ITEMS_CATEGORY_IDS</strong>: $.message.order.items[<em>].category_ids[</em>] must be present in the payload</p>
|
|
973
|
-
</li>
|
|
974
|
-
<li><p><strong>condition Attri_Required_26_RANGE_START</strong>: $.message.order.provider.time.range.start must be present in the payload</p>
|
|
975
|
-
</li>
|
|
976
|
-
<li><p><strong>condition Attri_Required_27_RANGE_END</strong>: $.message.order.provider.time.range.end must be present in the payload</p>
|
|
977
|
-
</li>
|
|
978
|
-
<li><p><strong>condition Attri_Required_28_PRICE_CURRENCY</strong>: $.message.order.quote.breakup[*].item.price.currency must be present in the payload</p>
|
|
979
|
-
</li>
|
|
980
|
-
<li><p><strong>condition Attri_Required_29_PRICE_VALUE</strong>: $.message.order.quote.breakup[*].item.price.value must be present in the payload</p>
|
|
981
|
-
</li>
|
|
982
|
-
<li><p><strong>condition Attri_Required_30_SELECTED_COUNT</strong>: $.message.order.quote.breakup[*].item.quantity.selected.count must be present in the payload</p>
|
|
983
|
-
</li>
|
|
984
|
-
<li><p><strong>condition Attri_Required_31_EXTERNAL_REF_URL</strong>: $.message.order.cancellation_terms[*].external_ref.url must be present in the payload</p>
|
|
985
|
-
</li>
|
|
986
|
-
<li><p><strong>condition Attri_Required_32_EXTERNAL_REF_MIMETYPE</strong>: $.message.order.cancellation_terms[*].external_ref.mimetype must be present in the payload</p>
|
|
987
|
-
</li>
|
|
988
|
-
<li><p><strong>condition Enum_Required_37_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
989
|
-
<ul>
|
|
990
|
-
<li><strong>condition Enum_Required_37_DESCRIPTOR_CODE.1</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</li>
|
|
991
|
-
<li><strong>condition Enum_Required_37_DESCRIPTOR_CODE.2</strong>: $.message.order.items[*].descriptor.code must be present in the payload</li>
|
|
992
|
-
</ul>
|
|
993
|
-
</li>
|
|
994
|
-
<li><p><strong>condition Enum_Required_38_VEHICLE_CATEGORY</strong>: all of the following sub conditions must be met:</p>
|
|
995
|
-
<ul>
|
|
996
|
-
<li><strong>condition Enum_Required_38_VEHICLE_CATEGORY.1</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</li>
|
|
997
|
-
<li><strong>condition Enum_Required_38_VEHICLE_CATEGORY.2</strong>: $.message.order.fulfillments[*].vehicle.category must be present in the payload</li>
|
|
998
|
-
</ul>
|
|
999
|
-
</li>
|
|
1000
|
-
<li><p><strong>condition Enum_Required_39_FULFILLMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1001
|
-
<ul>
|
|
1002
|
-
<li><strong>condition Enum_Required_39_FULFILLMENTS_TYPE.1</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</li>
|
|
1003
|
-
<li><strong>condition Enum_Required_39_FULFILLMENTS_TYPE.2</strong>: $.message.order.fulfillments[*].type must be present in the payload</li>
|
|
1004
|
-
</ul>
|
|
1005
|
-
</li>
|
|
1006
|
-
<li><p><strong>condition Enum_Required_40_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
1007
|
-
<blockquote>
|
|
1008
|
-
<p>Note: <strong>Condition Enum_Required_40_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1009
|
-
<ul>
|
|
1010
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
1011
|
-
</ul>
|
|
1012
|
-
</blockquote>
|
|
1013
|
-
</li>
|
|
1014
|
-
<li><p><strong>condition Enum_Required_41_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
1015
|
-
<blockquote>
|
|
1016
|
-
<p>Note: <strong>Condition Enum_Required_41_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1017
|
-
<ul>
|
|
1018
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
1019
|
-
</ul>
|
|
1020
|
-
</blockquote>
|
|
1021
|
-
</li>
|
|
1022
|
-
<li><p><strong>condition Enum_Required_42_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
1023
|
-
<blockquote>
|
|
1024
|
-
<p>Note: <strong>Condition Enum_Required_42_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
1025
|
-
<ul>
|
|
1026
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
1027
|
-
</ul>
|
|
1028
|
-
</blockquote>
|
|
1029
|
-
</li>
|
|
1030
|
-
<li><p><strong>condition Enum_Required_43_ORDER_STATUS</strong>: every element of $.message.order.status must be in ["SOFT_CANCEL", "CONFIRM_CANCEL", "ACTIVE", "COMPLETE", "CANCELLED"]</p>
|
|
1031
|
-
<blockquote>
|
|
1032
|
-
<p>Note: <strong>Condition Enum_Required_43_ORDER_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
1033
|
-
<ul>
|
|
1034
|
-
<li><strong>condition B</strong>: $.message.order.status must <strong>not</strong> be present in the payload</li>
|
|
1035
|
-
</ul>
|
|
1036
|
-
</blockquote>
|
|
1037
|
-
</li>
|
|
1038
|
-
<li><p><strong>condition Enum_Required_44_BREAKUP_TITLE</strong>: all of the following sub conditions must be met:</p>
|
|
1039
|
-
<ul>
|
|
1040
|
-
<li><strong>condition Enum_Required_44_BREAKUP_TITLE.1</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</li>
|
|
1041
|
-
<li><strong>condition Enum_Required_44_BREAKUP_TITLE.2</strong>: $.message.order.quote.breakup[*].title must be present in the payload</li>
|
|
1042
|
-
</ul>
|
|
1043
|
-
</li>
|
|
1044
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_45_DESCRIPTOR_CODE</strong>: every element of $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
1045
|
-
<blockquote>
|
|
1046
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_45_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1047
|
-
<ul>
|
|
1048
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1049
|
-
</ul>
|
|
1050
|
-
</blockquote>
|
|
1051
|
-
</li>
|
|
1052
|
-
<li><p><strong>condition validate_tag_0_ROUTE_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[</em>].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
1053
|
-
</li>
|
|
1054
|
-
<li><p><strong>condition validate_tag_0_TICKET_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[</em>].descriptor.code must be in ["NUMBER"]</p>
|
|
1055
|
-
</li>
|
|
1056
|
-
<li><p><strong>condition validate_tag_0_TRIP_DETAILS</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[</em>].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
1057
|
-
</li>
|
|
1058
|
-
<li><p><strong>condition FARE_POLICY_Tag_Required_49_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[<em>].tags[</em>].descriptor.code must be in ["FARE_POLICY"]</p>
|
|
1059
|
-
<blockquote>
|
|
1060
|
-
<p>Note: <strong>Condition FARE_POLICY_Tag_Required_49_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1061
|
-
<ul>
|
|
1062
|
-
<li><strong>condition B</strong>: $.message.order.items[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1063
|
-
</ul>
|
|
1064
|
-
</blockquote>
|
|
1065
|
-
</li>
|
|
1066
|
-
<li><p><strong>condition validate_tag_1_FARE_POLICY</strong>: every element of $.message.order.items[<em>].tags[?(@.descriptor.code=='FARE_POLICY')].list[</em>].descriptor.code must be in ["RESTRICTED_PERSON", "RESTRICTION_PROOF"]</p>
|
|
1067
|
-
</li>
|
|
1068
|
-
</ul>
|
|
1069
|
-
</li>
|
|
1070
|
-
</ul>
|
|
1071
|
-
</li>
|
|
1072
|
-
<li><p><strong>on_init</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1073
|
-
<ul>
|
|
1074
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
1075
|
-
</li>
|
|
1076
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
1077
|
-
</li>
|
|
1078
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
1079
|
-
</li>
|
|
1080
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
1081
|
-
</li>
|
|
1082
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
1083
|
-
</li>
|
|
1084
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
1085
|
-
</li>
|
|
1086
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
1087
|
-
</li>
|
|
1088
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
1089
|
-
</li>
|
|
1090
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
1091
|
-
</li>
|
|
1092
|
-
<li><p><strong>condition Enum_Required_34_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
1093
|
-
<ul>
|
|
1094
|
-
<li><strong>condition Enum_Required_34_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["on_init"]</li>
|
|
1095
|
-
<li><strong>condition Enum_Required_34_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
1096
|
-
</ul>
|
|
1097
|
-
</li>
|
|
1098
|
-
<li><p><strong>condition Enum_Required_35_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1099
|
-
<ul>
|
|
1100
|
-
<li><strong>condition Enum_Required_35_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
1101
|
-
<li><strong>condition Enum_Required_35_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
1102
|
-
</ul>
|
|
1103
|
-
</li>
|
|
1104
|
-
<li><p><strong>condition Enum_Required_36_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
1105
|
-
</li>
|
|
1106
|
-
<li><p><strong>condition Enum_Required_37_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
1107
|
-
<ul>
|
|
1108
|
-
<li><strong>condition Enum_Required_37_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
1109
|
-
<li><strong>condition Enum_Required_37_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
1110
|
-
</ul>
|
|
1111
|
-
</li>
|
|
1112
|
-
<li><p><strong>on_init_Message_TESTS</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1113
|
-
<ul>
|
|
1114
|
-
<li><p><strong>condition Attri_Required_10_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
1115
|
-
</li>
|
|
1116
|
-
<li><p><strong>condition Attri_Required_11_PRICE_CURRENCY</strong>: $.message.order.items[*].price.currency must be present in the payload</p>
|
|
1117
|
-
</li>
|
|
1118
|
-
<li><p><strong>condition Attri_Required_12_PRICE_VALUE</strong>: $.message.order.items[*].price.value must be present in the payload</p>
|
|
1119
|
-
</li>
|
|
1120
|
-
<li><p><strong>condition Attri_Required_13_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
1121
|
-
</li>
|
|
1122
|
-
<li><p><strong>condition Attri_Required_14_ITEMS_FULFILLMENT_IDS</strong>: $.message.order.items[<em>].fulfillment_ids[</em>] must be present in the payload</p>
|
|
1123
|
-
</li>
|
|
1124
|
-
<li><p><strong>condition Attri_Required_15_TIME_LABEL</strong>: $.message.order.items[*].time.label must be present in the payload</p>
|
|
1125
|
-
</li>
|
|
1126
|
-
<li><p><strong>condition Attri_Required_16_TIME_DURATION</strong>: $.message.order.items[*].time.duration must be present in the payload</p>
|
|
1127
|
-
</li>
|
|
1128
|
-
<li><p><strong>condition Attri_Required_17_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
1129
|
-
</li>
|
|
1130
|
-
<li><p><strong>condition Attri_Required_18_DESCRIPTOR_NAME</strong>: $.message.order.provider.descriptor.name must be present in the payload</p>
|
|
1131
|
-
</li>
|
|
1132
|
-
<li><p><strong>condition Attri_Required_19_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1133
|
-
</li>
|
|
1134
|
-
<li><p><strong>condition Attri_Required_20_LOCATION_GPS</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.gps must be present in the payload</p>
|
|
1135
|
-
</li>
|
|
1136
|
-
<li><p><strong>condition Attri_Required_21_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1137
|
-
</li>
|
|
1138
|
-
<li><p><strong>condition Attri_Required_22_PRICE_VALUE</strong>: $.message.order.quote.price.value must be present in the payload</p>
|
|
1139
|
-
</li>
|
|
1140
|
-
<li><p><strong>condition Attri_Required_23_PRICE_CURRENCY</strong>: $.message.order.quote.price.currency must be present in the payload</p>
|
|
1141
|
-
</li>
|
|
1142
|
-
<li><p><strong>condition Attri_Required_24_ITEM_ID</strong>: $.message.order.quote.breakup[*].item.id must be present in the payload</p>
|
|
1143
|
-
</li>
|
|
1144
|
-
<li><p><strong>condition Attri_Required_25_PAYMENTS_ID</strong>: $.message.order.payments[*].id must be present in the payload</p>
|
|
1145
|
-
</li>
|
|
1146
|
-
<li><p><strong>condition Attri_Required_26_ITEMS_CATEGORY_IDS</strong>: $.message.order.items[<em>].category_ids[</em>] must be present in the payload</p>
|
|
1147
|
-
</li>
|
|
1148
|
-
<li><p><strong>condition Attri_Required_27_RANGE_START</strong>: $.message.order.provider.time.range.start must be present in the payload</p>
|
|
1149
|
-
</li>
|
|
1150
|
-
<li><p><strong>condition Attri_Required_28_RANGE_END</strong>: $.message.order.provider.time.range.end must be present in the payload</p>
|
|
1151
|
-
</li>
|
|
1152
|
-
<li><p><strong>condition Attri_Required_29_SELECTED_COUNT</strong>: $.message.order.quote.breakup[*].item.quantity.selected.count must be present in the payload</p>
|
|
1153
|
-
</li>
|
|
1154
|
-
<li><p><strong>condition Attri_Required_30_PRICE_VALUE</strong>: $.message.order.quote.breakup[*].item.price.value must be present in the payload</p>
|
|
1155
|
-
</li>
|
|
1156
|
-
<li><p><strong>condition Attri_Required_31_PRICE_CURRENCY</strong>: $.message.order.quote.breakup[*].item.price.currency must be present in the payload</p>
|
|
1157
|
-
</li>
|
|
1158
|
-
<li><p><strong>condition Attri_Required_32_EXTERNAL_REF_URL</strong>: $.message.order.cancellation_terms[*].external_ref.url must be present in the payload</p>
|
|
1159
|
-
</li>
|
|
1160
|
-
<li><p><strong>condition Attri_Required_33_EXTERNAL_REF_MIMETYPE</strong>: $.message.order.cancellation_terms[*].external_ref.mimetype must be present in the payload</p>
|
|
1161
|
-
</li>
|
|
1162
|
-
<li><p><strong>condition Enum_Required_38_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1163
|
-
<ul>
|
|
1164
|
-
<li><strong>condition Enum_Required_38_DESCRIPTOR_CODE.1</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</li>
|
|
1165
|
-
<li><strong>condition Enum_Required_38_DESCRIPTOR_CODE.2</strong>: $.message.order.items[*].descriptor.code must be present in the payload</li>
|
|
1166
|
-
</ul>
|
|
1167
|
-
</li>
|
|
1168
|
-
<li><p><strong>condition Enum_Required_39_VEHICLE_CATEGORY</strong>: all of the following sub conditions must be met:</p>
|
|
1169
|
-
<ul>
|
|
1170
|
-
<li><strong>condition Enum_Required_39_VEHICLE_CATEGORY.1</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</li>
|
|
1171
|
-
<li><strong>condition Enum_Required_39_VEHICLE_CATEGORY.2</strong>: $.message.order.fulfillments[*].vehicle.category must be present in the payload</li>
|
|
1172
|
-
</ul>
|
|
1173
|
-
</li>
|
|
1174
|
-
<li><p><strong>condition Enum_Required_40_FULFILLMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1175
|
-
<ul>
|
|
1176
|
-
<li><strong>condition Enum_Required_40_FULFILLMENTS_TYPE.1</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</li>
|
|
1177
|
-
<li><strong>condition Enum_Required_40_FULFILLMENTS_TYPE.2</strong>: $.message.order.fulfillments[*].type must be present in the payload</li>
|
|
1178
|
-
</ul>
|
|
1179
|
-
</li>
|
|
1180
|
-
<li><p><strong>condition Enum_Required_41_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
1181
|
-
<blockquote>
|
|
1182
|
-
<p>Note: <strong>Condition Enum_Required_41_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1183
|
-
<ul>
|
|
1184
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
1185
|
-
</ul>
|
|
1186
|
-
</blockquote>
|
|
1187
|
-
</li>
|
|
1188
|
-
<li><p><strong>condition Enum_Required_42_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
1189
|
-
<blockquote>
|
|
1190
|
-
<p>Note: <strong>Condition Enum_Required_42_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1191
|
-
<ul>
|
|
1192
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
1193
|
-
</ul>
|
|
1194
|
-
</blockquote>
|
|
1195
|
-
</li>
|
|
1196
|
-
<li><p><strong>condition Enum_Required_43_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
1197
|
-
<blockquote>
|
|
1198
|
-
<p>Note: <strong>Condition Enum_Required_43_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
1199
|
-
<ul>
|
|
1200
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
1201
|
-
</ul>
|
|
1202
|
-
</blockquote>
|
|
1203
|
-
</li>
|
|
1204
|
-
<li><p><strong>condition Enum_Required_44_PAYMENTS_STATUS</strong>: all of the following sub conditions must be met:</p>
|
|
1205
|
-
<ul>
|
|
1206
|
-
<li><strong>condition Enum_Required_44_PAYMENTS_STATUS.1</strong>: every element of $.message.order.payments[*].status must be in ["NOT-PAID", "PAID"]</li>
|
|
1207
|
-
<li><strong>condition Enum_Required_44_PAYMENTS_STATUS.2</strong>: $.message.order.payments[*].status must be present in the payload</li>
|
|
1208
|
-
</ul>
|
|
1209
|
-
</li>
|
|
1210
|
-
<li><p><strong>condition Enum_Required_45_PAYMENTS_COLLECTED_BY</strong>: all of the following sub conditions must be met:</p>
|
|
1211
|
-
<ul>
|
|
1212
|
-
<li><strong>condition Enum_Required_45_PAYMENTS_COLLECTED_BY.1</strong>: every element of $.message.order.payments[*].collected_by must be in ["BPP", "BAP"]</li>
|
|
1213
|
-
<li><strong>condition Enum_Required_45_PAYMENTS_COLLECTED_BY.2</strong>: $.message.order.payments[*].collected_by must be present in the payload</li>
|
|
1214
|
-
</ul>
|
|
1215
|
-
</li>
|
|
1216
|
-
<li><p><strong>condition Enum_Required_46_PAYMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1217
|
-
<ul>
|
|
1218
|
-
<li><strong>condition Enum_Required_46_PAYMENTS_TYPE.1</strong>: every element of $.message.order.payments[*].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</li>
|
|
1219
|
-
<li><strong>condition Enum_Required_46_PAYMENTS_TYPE.2</strong>: $.message.order.payments[*].type must be present in the payload</li>
|
|
1220
|
-
</ul>
|
|
1221
|
-
</li>
|
|
1222
|
-
<li><p><strong>condition Enum_Required_47_BREAKUP_TITLE</strong>: all of the following sub conditions must be met:</p>
|
|
1223
|
-
<ul>
|
|
1224
|
-
<li><strong>condition Enum_Required_47_BREAKUP_TITLE.1</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</li>
|
|
1225
|
-
<li><strong>condition Enum_Required_47_BREAKUP_TITLE.2</strong>: $.message.order.quote.breakup[*].title must be present in the payload</li>
|
|
1226
|
-
</ul>
|
|
1227
|
-
</li>
|
|
1228
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_48_DESCRIPTOR_CODE</strong>: every element of $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
1229
|
-
<blockquote>
|
|
1230
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_48_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1231
|
-
<ul>
|
|
1232
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1233
|
-
</ul>
|
|
1234
|
-
</blockquote>
|
|
1235
|
-
</li>
|
|
1236
|
-
<li><p><strong>condition validate_tag_0_ROUTE_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[</em>].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
1237
|
-
</li>
|
|
1238
|
-
<li><p><strong>condition validate_tag_0_TICKET_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[</em>].descriptor.code must be in ["NUMBER"]</p>
|
|
1239
|
-
</li>
|
|
1240
|
-
<li><p><strong>condition validate_tag_0_TRIP_DETAILS</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[</em>].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
1241
|
-
</li>
|
|
1242
|
-
<li><p><strong>condition FARE_POLICY_Tag_Required_52_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[<em>].tags[</em>].descriptor.code must be in ["FARE_POLICY"]</p>
|
|
1243
|
-
<blockquote>
|
|
1244
|
-
<p>Note: <strong>Condition FARE_POLICY_Tag_Required_52_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1245
|
-
<ul>
|
|
1246
|
-
<li><strong>condition B</strong>: $.message.order.items[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1247
|
-
</ul>
|
|
1248
|
-
</blockquote>
|
|
1249
|
-
</li>
|
|
1250
|
-
<li><p><strong>condition validate_tag_1_FARE_POLICY</strong>: every element of $.message.order.items[<em>].tags[?(@.descriptor.code=='FARE_POLICY')].list[</em>].descriptor.code must be in ["RESTRICTED_PERSON", "RESTRICTION_PROOF"]</p>
|
|
1251
|
-
</li>
|
|
1252
|
-
<li><p><strong>condition BUYER_FINDER_FEES_Tag_Required_54_DESCRIPTOR_CODE</strong>: every element of $.message.order.payments[<em>].tags[</em>].descriptor.code must be in ["BUYER_FINDER_FEES", "SETTLEMENT_TERMS"]</p>
|
|
1253
|
-
<blockquote>
|
|
1254
|
-
<p>Note: <strong>Condition BUYER_FINDER_FEES_Tag_Required_54_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1255
|
-
<ul>
|
|
1256
|
-
<li><strong>condition B</strong>: $.message.order.payments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1257
|
-
</ul>
|
|
1258
|
-
</blockquote>
|
|
1259
|
-
</li>
|
|
1260
|
-
<li><p><strong>condition validate_tag_2_BUYER_FINDER_FEES</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='BUYER_FINDER_FEES')].list[</em>].descriptor.code must be in ["BUYER_FINDER_FEES_TYPE", "BUYER_FINDER_FEES_PERCENTAGE", "BUYER_FINDER_FEES_AMOUNT"]</p>
|
|
1261
|
-
</li>
|
|
1262
|
-
<li><p><strong>condition validate_tag_2_SETTLEMENT_TERMS</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='SETTLEMENT_TERMS')].list[</em>].descriptor.code must be in ["SETTLEMENT_WINDOW", "SETTLEMENT_BASIS", "SETTLEMENT_TYPE", "MANDATORY_ARBITRATION", "COURT_JURISDICTION", "DELAY_INTEREST", "STATIC_TERMS", "SETTLEMENT_AMOUNT"]</p>
|
|
1263
|
-
</li>
|
|
1264
|
-
</ul>
|
|
1265
|
-
</li>
|
|
1266
|
-
</ul>
|
|
1267
|
-
</li>
|
|
1268
|
-
<li><p><strong>on_confirm</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1269
|
-
<ul>
|
|
1270
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
1271
|
-
</li>
|
|
1272
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
1273
|
-
</li>
|
|
1274
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
1275
|
-
</li>
|
|
1276
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
1277
|
-
</li>
|
|
1278
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
1279
|
-
</li>
|
|
1280
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
1281
|
-
</li>
|
|
1282
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
1283
|
-
</li>
|
|
1284
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
1285
|
-
</li>
|
|
1286
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
1287
|
-
</li>
|
|
1288
|
-
<li><p><strong>condition Enum_Required_43_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
1289
|
-
<ul>
|
|
1290
|
-
<li><strong>condition Enum_Required_43_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["on_confirm"]</li>
|
|
1291
|
-
<li><strong>condition Enum_Required_43_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
1292
|
-
</ul>
|
|
1293
|
-
</li>
|
|
1294
|
-
<li><p><strong>condition Enum_Required_44_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1295
|
-
<ul>
|
|
1296
|
-
<li><strong>condition Enum_Required_44_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
1297
|
-
<li><strong>condition Enum_Required_44_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
1298
|
-
</ul>
|
|
1299
|
-
</li>
|
|
1300
|
-
<li><p><strong>condition Enum_Required_45_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
1301
|
-
</li>
|
|
1302
|
-
<li><p><strong>condition Enum_Required_46_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
1303
|
-
<ul>
|
|
1304
|
-
<li><strong>condition Enum_Required_46_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
1305
|
-
<li><strong>condition Enum_Required_46_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
1306
|
-
</ul>
|
|
1307
|
-
</li>
|
|
1308
|
-
<li><p><strong>on_confirm_Message_TESTS</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1309
|
-
<ul>
|
|
1310
|
-
<li><p><strong>condition Attri_Required_10_ORDER_ID</strong>: $.message.order.id must be present in the payload</p>
|
|
1311
|
-
</li>
|
|
1312
|
-
<li><p><strong>condition Attri_Required_11_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
1313
|
-
</li>
|
|
1314
|
-
<li><p><strong>condition Attri_Required_12_DESCRIPTOR_NAME</strong>: $.message.order.items[*].descriptor.name must be present in the payload</p>
|
|
1315
|
-
</li>
|
|
1316
|
-
<li><p><strong>condition Attri_Required_13_PRICE_CURRENCY</strong>: $.message.order.items[*].price.currency must be present in the payload</p>
|
|
1317
|
-
</li>
|
|
1318
|
-
<li><p><strong>condition Attri_Required_14_PRICE_VALUE</strong>: $.message.order.items[*].price.value must be present in the payload</p>
|
|
1319
|
-
</li>
|
|
1320
|
-
<li><p><strong>condition Attri_Required_15_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
1321
|
-
</li>
|
|
1322
|
-
<li><p><strong>condition Attri_Required_16_ITEMS_FULFILLMENT_IDS</strong>: $.message.order.items[<em>].fulfillment_ids[</em>] must be present in the payload</p>
|
|
1323
|
-
</li>
|
|
1324
|
-
<li><p><strong>condition Attri_Required_17_TIME_LABEL</strong>: $.message.order.items[*].time.label must be present in the payload</p>
|
|
1325
|
-
</li>
|
|
1326
|
-
<li><p><strong>condition Attri_Required_18_TIME_DURATION</strong>: $.message.order.items[*].time.duration must be present in the payload</p>
|
|
1327
|
-
</li>
|
|
1328
|
-
<li><p><strong>condition Attri_Required_19_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
1329
|
-
</li>
|
|
1330
|
-
<li><p><strong>condition Attri_Required_20_DESCRIPTOR_NAME</strong>: $.message.order.provider.descriptor.name must be present in the payload</p>
|
|
1331
|
-
</li>
|
|
1332
|
-
<li><p><strong>condition Attri_Required_21_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1333
|
-
</li>
|
|
1334
|
-
<li><p><strong>condition Attri_Required_22_LOCATION_GPS</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.gps must be present in the payload</p>
|
|
1335
|
-
</li>
|
|
1336
|
-
<li><p><strong>condition Attri_Required_23_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1337
|
-
</li>
|
|
1338
|
-
<li><p><strong>condition Attri_Required_24_PRICE_VALUE</strong>: $.message.order.quote.price.value must be present in the payload</p>
|
|
1339
|
-
</li>
|
|
1340
|
-
<li><p><strong>condition Attri_Required_25_PRICE_CURRENCY</strong>: $.message.order.quote.price.currency must be present in the payload</p>
|
|
1341
|
-
</li>
|
|
1342
|
-
<li><p><strong>condition Attri_Required_26_ITEM_ID</strong>: $.message.order.quote.breakup[*].item.id must be present in the payload</p>
|
|
1343
|
-
</li>
|
|
1344
|
-
<li><p><strong>condition Attri_Required_27_PAYMENTS_ID</strong>: $.message.order.payments[*].id must be present in the payload</p>
|
|
1345
|
-
</li>
|
|
1346
|
-
<li><p><strong>condition Attri_Required_28_PARAMS_TRANSACTION_ID</strong>: $.message.order.payments[*].params.transaction_id must be present in the payload</p>
|
|
1347
|
-
</li>
|
|
1348
|
-
<li><p><strong>condition Attri_Required_29_PARAMS_CURRENCY</strong>: $.message.order.payments[*].params.currency must be present in the payload</p>
|
|
1349
|
-
</li>
|
|
1350
|
-
<li><p><strong>condition Attri_Required_30_PARAMS_AMOUNT</strong>: $.message.order.payments[*].params.amount must be present in the payload</p>
|
|
1351
|
-
</li>
|
|
1352
|
-
<li><p><strong>condition Attri_Required_31_CANCEL_BY_DURATION</strong>: $.message.order.cancellation_terms[*].cancel_by.duration must be present in the payload</p>
|
|
1353
|
-
</li>
|
|
1354
|
-
<li><p><strong>condition Attri_Required_32_ORDER_STATUS</strong>: $.message.order.status must be present in the payload</p>
|
|
1355
|
-
</li>
|
|
1356
|
-
<li><p><strong>condition Attri_Required_33_ITEMS_CATEGORY_IDS</strong>: $.message.order.items[<em>].category_ids[</em>] must be present in the payload</p>
|
|
1357
|
-
</li>
|
|
1358
|
-
<li><p><strong>condition Attri_Required_34_RANGE_START</strong>: $.message.order.provider.time.range.start must be present in the payload</p>
|
|
1359
|
-
</li>
|
|
1360
|
-
<li><p><strong>condition Attri_Required_35_RANGE_END</strong>: $.message.order.provider.time.range.end must be present in the payload</p>
|
|
1361
|
-
</li>
|
|
1362
|
-
<li><p><strong>condition Attri_Required_36_PRICE_VALUE</strong>: $.message.order.quote.breakup[*].item.price.value must be present in the payload</p>
|
|
1363
|
-
</li>
|
|
1364
|
-
<li><p><strong>condition Attri_Required_37_PRICE_CURRENCY</strong>: $.message.order.quote.breakup[*].item.price.currency must be present in the payload</p>
|
|
1365
|
-
</li>
|
|
1366
|
-
<li><p><strong>condition Attri_Required_38_SELECTED_COUNT</strong>: $.message.order.quote.breakup[*].item.quantity.selected.count must be present in the payload</p>
|
|
1367
|
-
</li>
|
|
1368
|
-
<li><p><strong>condition Attri_Required_39_EXTERNAL_REF_URL</strong>: $.message.order.cancellation_terms[*].external_ref.url must be present in the payload</p>
|
|
1369
|
-
</li>
|
|
1370
|
-
<li><p><strong>condition Attri_Required_40_EXTERNAL_REF_MIMETYPE</strong>: $.message.order.cancellation_terms[*].external_ref.mimetype must be present in the payload</p>
|
|
1371
|
-
</li>
|
|
1372
|
-
<li><p><strong>condition Attri_Required_41_ORDER_CREATED_AT</strong>: $.message.order.created_at must be present in the payload</p>
|
|
1373
|
-
</li>
|
|
1374
|
-
<li><p><strong>condition Attri_Required_42_ORDER_UPDATED_AT</strong>: $.message.order.updated_at must be present in the payload</p>
|
|
1375
|
-
</li>
|
|
1376
|
-
<li><p><strong>condition Enum_Required_47_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1377
|
-
<ul>
|
|
1378
|
-
<li><strong>condition Enum_Required_47_DESCRIPTOR_CODE.1</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</li>
|
|
1379
|
-
<li><strong>condition Enum_Required_47_DESCRIPTOR_CODE.2</strong>: $.message.order.items[*].descriptor.code must be present in the payload</li>
|
|
1380
|
-
</ul>
|
|
1381
|
-
</li>
|
|
1382
|
-
<li><p><strong>condition Enum_Required_48_VEHICLE_CATEGORY</strong>: all of the following sub conditions must be met:</p>
|
|
1383
|
-
<ul>
|
|
1384
|
-
<li><strong>condition Enum_Required_48_VEHICLE_CATEGORY.1</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</li>
|
|
1385
|
-
<li><strong>condition Enum_Required_48_VEHICLE_CATEGORY.2</strong>: $.message.order.fulfillments[*].vehicle.category must be present in the payload</li>
|
|
1386
|
-
</ul>
|
|
1387
|
-
</li>
|
|
1388
|
-
<li><p><strong>condition Enum_Required_49_FULFILLMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1389
|
-
<ul>
|
|
1390
|
-
<li><strong>condition Enum_Required_49_FULFILLMENTS_TYPE.1</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</li>
|
|
1391
|
-
<li><strong>condition Enum_Required_49_FULFILLMENTS_TYPE.2</strong>: $.message.order.fulfillments[*].type must be present in the payload</li>
|
|
1392
|
-
</ul>
|
|
1393
|
-
</li>
|
|
1394
|
-
<li><p><strong>condition Enum_Required_50_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
1395
|
-
<blockquote>
|
|
1396
|
-
<p>Note: <strong>Condition Enum_Required_50_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1397
|
-
<ul>
|
|
1398
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
1399
|
-
</ul>
|
|
1400
|
-
</blockquote>
|
|
1401
|
-
</li>
|
|
1402
|
-
<li><p><strong>condition Enum_Required_51_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
1403
|
-
<blockquote>
|
|
1404
|
-
<p>Note: <strong>Condition Enum_Required_51_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1405
|
-
<ul>
|
|
1406
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
1407
|
-
</ul>
|
|
1408
|
-
</blockquote>
|
|
1409
|
-
</li>
|
|
1410
|
-
<li><p><strong>condition Enum_Required_52_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
1411
|
-
<blockquote>
|
|
1412
|
-
<p>Note: <strong>Condition Enum_Required_52_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
1413
|
-
<ul>
|
|
1414
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
1415
|
-
</ul>
|
|
1416
|
-
</blockquote>
|
|
1417
|
-
</li>
|
|
1418
|
-
<li><p><strong>condition Enum_Required_53_PAYMENTS_STATUS</strong>: all of the following sub conditions must be met:</p>
|
|
1419
|
-
<ul>
|
|
1420
|
-
<li><strong>condition Enum_Required_53_PAYMENTS_STATUS.1</strong>: every element of $.message.order.payments[*].status must be in ["NOT-PAID", "PAID"]</li>
|
|
1421
|
-
<li><strong>condition Enum_Required_53_PAYMENTS_STATUS.2</strong>: $.message.order.payments[*].status must be present in the payload</li>
|
|
1422
|
-
</ul>
|
|
1423
|
-
</li>
|
|
1424
|
-
<li><p><strong>condition Enum_Required_54_PAYMENTS_COLLECTED_BY</strong>: all of the following sub conditions must be met:</p>
|
|
1425
|
-
<ul>
|
|
1426
|
-
<li><strong>condition Enum_Required_54_PAYMENTS_COLLECTED_BY.1</strong>: every element of $.message.order.payments[*].collected_by must be in ["BPP", "BAP"]</li>
|
|
1427
|
-
<li><strong>condition Enum_Required_54_PAYMENTS_COLLECTED_BY.2</strong>: $.message.order.payments[*].collected_by must be present in the payload</li>
|
|
1428
|
-
</ul>
|
|
1429
|
-
</li>
|
|
1430
|
-
<li><p><strong>condition Enum_Required_55_PAYMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1431
|
-
<ul>
|
|
1432
|
-
<li><strong>condition Enum_Required_55_PAYMENTS_TYPE.1</strong>: every element of $.message.order.payments[*].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</li>
|
|
1433
|
-
<li><strong>condition Enum_Required_55_PAYMENTS_TYPE.2</strong>: $.message.order.payments[*].type must be present in the payload</li>
|
|
1434
|
-
</ul>
|
|
1435
|
-
</li>
|
|
1436
|
-
<li><p><strong>condition Enum_Required_56_BREAKUP_TITLE</strong>: all of the following sub conditions must be met:</p>
|
|
1437
|
-
<ul>
|
|
1438
|
-
<li><strong>condition Enum_Required_56_BREAKUP_TITLE.1</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</li>
|
|
1439
|
-
<li><strong>condition Enum_Required_56_BREAKUP_TITLE.2</strong>: $.message.order.quote.breakup[*].title must be present in the payload</li>
|
|
1440
|
-
</ul>
|
|
1441
|
-
</li>
|
|
1442
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_57_DESCRIPTOR_CODE</strong>: every element of $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
1443
|
-
<blockquote>
|
|
1444
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_57_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1445
|
-
<ul>
|
|
1446
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1447
|
-
</ul>
|
|
1448
|
-
</blockquote>
|
|
1449
|
-
</li>
|
|
1450
|
-
<li><p><strong>condition validate_tag_0_ROUTE_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[</em>].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
1451
|
-
</li>
|
|
1452
|
-
<li><p><strong>condition validate_tag_0_TICKET_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[</em>].descriptor.code must be in ["NUMBER"]</p>
|
|
1453
|
-
</li>
|
|
1454
|
-
<li><p><strong>condition validate_tag_0_TRIP_DETAILS</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[</em>].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
1455
|
-
</li>
|
|
1456
|
-
<li><p><strong>condition FARE_POLICY_Tag_Required_61_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[<em>].tags[</em>].descriptor.code must be in ["FARE_POLICY"]</p>
|
|
1457
|
-
<blockquote>
|
|
1458
|
-
<p>Note: <strong>Condition FARE_POLICY_Tag_Required_61_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1459
|
-
<ul>
|
|
1460
|
-
<li><strong>condition B</strong>: $.message.order.items[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1461
|
-
</ul>
|
|
1462
|
-
</blockquote>
|
|
1463
|
-
</li>
|
|
1464
|
-
<li><p><strong>condition validate_tag_1_FARE_POLICY</strong>: every element of $.message.order.items[<em>].tags[?(@.descriptor.code=='FARE_POLICY')].list[</em>].descriptor.code must be in ["RESTRICTED_PERSON", "RESTRICTION_PROOF"]</p>
|
|
1465
|
-
</li>
|
|
1466
|
-
<li><p><strong>condition BUYER_FINDER_FEES_Tag_Required_63_DESCRIPTOR_CODE</strong>: every element of $.message.order.payments[<em>].tags[</em>].descriptor.code must be in ["BUYER_FINDER_FEES", "SETTLEMENT_TERMS"]</p>
|
|
1467
|
-
<blockquote>
|
|
1468
|
-
<p>Note: <strong>Condition BUYER_FINDER_FEES_Tag_Required_63_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1469
|
-
<ul>
|
|
1470
|
-
<li><strong>condition B</strong>: $.message.order.payments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1471
|
-
</ul>
|
|
1472
|
-
</blockquote>
|
|
1473
|
-
</li>
|
|
1474
|
-
<li><p><strong>condition validate_tag_2_BUYER_FINDER_FEES</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='BUYER_FINDER_FEES')].list[</em>].descriptor.code must be in ["BUYER_FINDER_FEES_TYPE", "BUYER_FINDER_FEES_PERCENTAGE", "BUYER_FINDER_FEES_AMOUNT"]</p>
|
|
1475
|
-
</li>
|
|
1476
|
-
<li><p><strong>condition validate_tag_2_SETTLEMENT_TERMS</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='SETTLEMENT_TERMS')].list[</em>].descriptor.code must be in ["SETTLEMENT_WINDOW", "SETTLEMENT_BASIS", "SETTLEMENT_TYPE", "MANDATORY_ARBITRATION", "COURT_JURISDICTION", "DELAY_INTEREST", "STATIC_TERMS", "SETTLEMENT_AMOUNT"]</p>
|
|
1477
|
-
</li>
|
|
1478
|
-
</ul>
|
|
1479
|
-
</li>
|
|
1480
|
-
</ul>
|
|
1481
|
-
</li>
|
|
1482
|
-
<li><p><strong>on_cancel</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1483
|
-
<ul>
|
|
1484
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
1485
|
-
</li>
|
|
1486
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
1487
|
-
</li>
|
|
1488
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
1489
|
-
</li>
|
|
1490
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
1491
|
-
</li>
|
|
1492
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
1493
|
-
</li>
|
|
1494
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
1495
|
-
</li>
|
|
1496
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
1497
|
-
</li>
|
|
1498
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
1499
|
-
</li>
|
|
1500
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
1501
|
-
</li>
|
|
1502
|
-
<li><p><strong>condition Enum_Required_38_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
1503
|
-
<ul>
|
|
1504
|
-
<li><strong>condition Enum_Required_38_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["on_cancel"]</li>
|
|
1505
|
-
<li><strong>condition Enum_Required_38_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
1506
|
-
</ul>
|
|
1507
|
-
</li>
|
|
1508
|
-
<li><p><strong>condition Enum_Required_39_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1509
|
-
<ul>
|
|
1510
|
-
<li><strong>condition Enum_Required_39_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
1511
|
-
<li><strong>condition Enum_Required_39_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
1512
|
-
</ul>
|
|
1513
|
-
</li>
|
|
1514
|
-
<li><p><strong>condition Enum_Required_40_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
1515
|
-
</li>
|
|
1516
|
-
<li><p><strong>condition Enum_Required_41_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
1517
|
-
<ul>
|
|
1518
|
-
<li><strong>condition Enum_Required_41_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
1519
|
-
<li><strong>condition Enum_Required_41_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
1520
|
-
</ul>
|
|
1521
|
-
</li>
|
|
1522
|
-
<li><p><strong>on_cancel_Message_TESTS</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1523
|
-
<ul>
|
|
1524
|
-
<li><p><strong>condition Attri_Required_10_ORDER_ID</strong>: $.message.order.id must be present in the payload</p>
|
|
1525
|
-
</li>
|
|
1526
|
-
<li><p><strong>condition Attri_Required_11_ORDER_STATUS</strong>: $.message.order.status must be present in the payload</p>
|
|
1527
|
-
</li>
|
|
1528
|
-
<li><p><strong>condition Attri_Required_12_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
1529
|
-
</li>
|
|
1530
|
-
<li><p><strong>condition Attri_Required_13_DESCRIPTOR_NAME</strong>: $.message.order.items[*].descriptor.name must be present in the payload</p>
|
|
1531
|
-
</li>
|
|
1532
|
-
<li><p><strong>condition Attri_Required_14_PRICE_CURRENCY</strong>: $.message.order.items[*].price.currency must be present in the payload</p>
|
|
1533
|
-
</li>
|
|
1534
|
-
<li><p><strong>condition Attri_Required_15_PRICE_VALUE</strong>: $.message.order.items[*].price.value must be present in the payload</p>
|
|
1535
|
-
</li>
|
|
1536
|
-
<li><p><strong>condition Attri_Required_16_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
1537
|
-
</li>
|
|
1538
|
-
<li><p><strong>condition Attri_Required_17_ITEMS_FULFILLMENT_IDS</strong>: $.message.order.items[<em>].fulfillment_ids[</em>] must be present in the payload</p>
|
|
1539
|
-
</li>
|
|
1540
|
-
<li><p><strong>condition Attri_Required_18_ITEMS_CATEGORY_IDS</strong>: $.message.order.items[<em>].category_ids[</em>] must be present in the payload</p>
|
|
1541
|
-
</li>
|
|
1542
|
-
<li><p><strong>condition Attri_Required_19_TIME_LABEL</strong>: $.message.order.items[*].time.label must be present in the payload</p>
|
|
1543
|
-
</li>
|
|
1544
|
-
<li><p><strong>condition Attri_Required_20_TIME_DURATION</strong>: $.message.order.items[*].time.duration must be present in the payload</p>
|
|
1545
|
-
</li>
|
|
1546
|
-
<li><p><strong>condition Attri_Required_21_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
1547
|
-
</li>
|
|
1548
|
-
<li><p><strong>condition Attri_Required_22_DESCRIPTOR_NAME</strong>: $.message.order.provider.descriptor.name must be present in the payload</p>
|
|
1549
|
-
</li>
|
|
1550
|
-
<li><p><strong>condition Attri_Required_23_IMAGES_URL</strong>: $.message.order.provider.descriptor.images[*].url must be present in the payload</p>
|
|
1551
|
-
</li>
|
|
1552
|
-
<li><p><strong>condition Attri_Required_24_RANGE_START</strong>: $.message.order.provider.time.range.start must be present in the payload</p>
|
|
1553
|
-
</li>
|
|
1554
|
-
<li><p><strong>condition Attri_Required_25_RANGE_END</strong>: $.message.order.provider.time.range.end must be present in the payload</p>
|
|
1555
|
-
</li>
|
|
1556
|
-
<li><p><strong>condition Attri_Required_26_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1557
|
-
</li>
|
|
1558
|
-
<li><p><strong>condition Attri_Required_27_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1559
|
-
</li>
|
|
1560
|
-
<li><p><strong>condition Attri_Required_28_LOCATION_GPS</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.gps must be present in the payload</p>
|
|
1561
|
-
</li>
|
|
1562
|
-
<li><p><strong>condition Attri_Required_29_PRICE_VALUE</strong>: $.message.order.quote.price.value must be present in the payload</p>
|
|
1563
|
-
</li>
|
|
1564
|
-
<li><p><strong>condition Attri_Required_30_PRICE_CURRENCY</strong>: $.message.order.quote.price.currency must be present in the payload</p>
|
|
1565
|
-
</li>
|
|
1566
|
-
<li><p><strong>condition Attri_Required_31_PAYMENTS_ID</strong>: $.message.order.payments[*].id must be present in the payload</p>
|
|
1567
|
-
</li>
|
|
1568
|
-
<li><p><strong>condition Attri_Required_32_PARAMS_BANK_CODE</strong>: $.message.order.payments[*].params.bank_code must be present in the payload</p>
|
|
1569
|
-
</li>
|
|
1570
|
-
<li><p><strong>condition Attri_Required_33_PARAMS_BANK_ACCOUNT_NUMBER</strong>: $.message.order.payments[*].params.bank_account_number must be present in the payload</p>
|
|
1571
|
-
</li>
|
|
1572
|
-
<li><p><strong>condition Attri_Required_34_EXTERNAL_REF_URL</strong>: $.message.order.cancellation_terms[*].external_ref.url must be present in the payload</p>
|
|
1573
|
-
</li>
|
|
1574
|
-
<li><p><strong>condition Attri_Required_35_EXTERNAL_REF_MIMETYPE</strong>: $.message.order.cancellation_terms[*].external_ref.mimetype must be present in the payload</p>
|
|
1575
|
-
</li>
|
|
1576
|
-
<li><p><strong>condition Attri_Required_36_CANCELLATION_CANCELLED_BY</strong>: $.message.order.cancellation.cancelled_by must be present in the payload</p>
|
|
1577
|
-
</li>
|
|
1578
|
-
<li><p><strong>condition Attri_Required_37_CANCELLATION_TIME</strong>: $.message.order.cancellation.time must be present in the payload</p>
|
|
1579
|
-
</li>
|
|
1580
|
-
<li><p><strong>condition Enum_Required_42_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1581
|
-
<ul>
|
|
1582
|
-
<li><strong>condition Enum_Required_42_DESCRIPTOR_CODE.1</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</li>
|
|
1583
|
-
<li><strong>condition Enum_Required_42_DESCRIPTOR_CODE.2</strong>: $.message.order.items[*].descriptor.code must be present in the payload</li>
|
|
1584
|
-
</ul>
|
|
1585
|
-
</li>
|
|
1586
|
-
<li><p><strong>condition Enum_Required_43_VEHICLE_CATEGORY</strong>: all of the following sub conditions must be met:</p>
|
|
1587
|
-
<ul>
|
|
1588
|
-
<li><strong>condition Enum_Required_43_VEHICLE_CATEGORY.1</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</li>
|
|
1589
|
-
<li><strong>condition Enum_Required_43_VEHICLE_CATEGORY.2</strong>: $.message.order.fulfillments[*].vehicle.category must be present in the payload</li>
|
|
1590
|
-
</ul>
|
|
1591
|
-
</li>
|
|
1592
|
-
<li><p><strong>condition Enum_Required_44_FULFILLMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1593
|
-
<ul>
|
|
1594
|
-
<li><strong>condition Enum_Required_44_FULFILLMENTS_TYPE.1</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</li>
|
|
1595
|
-
<li><strong>condition Enum_Required_44_FULFILLMENTS_TYPE.2</strong>: $.message.order.fulfillments[*].type must be present in the payload</li>
|
|
1596
|
-
</ul>
|
|
1597
|
-
</li>
|
|
1598
|
-
<li><p><strong>condition Enum_Required_45_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
1599
|
-
<blockquote>
|
|
1600
|
-
<p>Note: <strong>Condition Enum_Required_45_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1601
|
-
<ul>
|
|
1602
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
1603
|
-
</ul>
|
|
1604
|
-
</blockquote>
|
|
1605
|
-
</li>
|
|
1606
|
-
<li><p><strong>condition Enum_Required_46_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
1607
|
-
<blockquote>
|
|
1608
|
-
<p>Note: <strong>Condition Enum_Required_46_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1609
|
-
<ul>
|
|
1610
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
1611
|
-
</ul>
|
|
1612
|
-
</blockquote>
|
|
1613
|
-
</li>
|
|
1614
|
-
<li><p><strong>condition Enum_Required_47_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
1615
|
-
<blockquote>
|
|
1616
|
-
<p>Note: <strong>Condition Enum_Required_47_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
1617
|
-
<ul>
|
|
1618
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
1619
|
-
</ul>
|
|
1620
|
-
</blockquote>
|
|
1621
|
-
</li>
|
|
1622
|
-
<li><p><strong>condition Enum_Required_48_PAYMENTS_STATUS</strong>: all of the following sub conditions must be met:</p>
|
|
1623
|
-
<ul>
|
|
1624
|
-
<li><strong>condition Enum_Required_48_PAYMENTS_STATUS.1</strong>: every element of $.message.order.payments[*].status must be in ["NOT-PAID", "PAID"]</li>
|
|
1625
|
-
<li><strong>condition Enum_Required_48_PAYMENTS_STATUS.2</strong>: $.message.order.payments[*].status must be present in the payload</li>
|
|
1626
|
-
</ul>
|
|
1627
|
-
</li>
|
|
1628
|
-
<li><p><strong>condition Enum_Required_49_PAYMENTS_COLLECTED_BY</strong>: all of the following sub conditions must be met:</p>
|
|
1629
|
-
<ul>
|
|
1630
|
-
<li><strong>condition Enum_Required_49_PAYMENTS_COLLECTED_BY.1</strong>: every element of $.message.order.payments[*].collected_by must be in ["BPP", "BAP"]</li>
|
|
1631
|
-
<li><strong>condition Enum_Required_49_PAYMENTS_COLLECTED_BY.2</strong>: $.message.order.payments[*].collected_by must be present in the payload</li>
|
|
1632
|
-
</ul>
|
|
1633
|
-
</li>
|
|
1634
|
-
<li><p><strong>condition Enum_Required_50_PAYMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1635
|
-
<ul>
|
|
1636
|
-
<li><strong>condition Enum_Required_50_PAYMENTS_TYPE.1</strong>: every element of $.message.order.payments[*].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</li>
|
|
1637
|
-
<li><strong>condition Enum_Required_50_PAYMENTS_TYPE.2</strong>: $.message.order.payments[*].type must be present in the payload</li>
|
|
1638
|
-
</ul>
|
|
1639
|
-
</li>
|
|
1640
|
-
<li><p><strong>condition Enum_Required_51_BREAKUP_TITLE</strong>: all of the following sub conditions must be met:</p>
|
|
1641
|
-
<ul>
|
|
1642
|
-
<li><strong>condition Enum_Required_51_BREAKUP_TITLE.1</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</li>
|
|
1643
|
-
<li><strong>condition Enum_Required_51_BREAKUP_TITLE.2</strong>: $.message.order.quote.breakup[*].title must be present in the payload</li>
|
|
1644
|
-
</ul>
|
|
1645
|
-
</li>
|
|
1646
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_52_DESCRIPTOR_CODE</strong>: every element of $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
1647
|
-
<blockquote>
|
|
1648
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_52_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1649
|
-
<ul>
|
|
1650
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1651
|
-
</ul>
|
|
1652
|
-
</blockquote>
|
|
1653
|
-
</li>
|
|
1654
|
-
<li><p><strong>condition validate_tag_0_ROUTE_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[</em>].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
1655
|
-
</li>
|
|
1656
|
-
<li><p><strong>condition validate_tag_0_TICKET_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[</em>].descriptor.code must be in ["NUMBER"]</p>
|
|
1657
|
-
</li>
|
|
1658
|
-
<li><p><strong>condition validate_tag_0_TRIP_DETAILS</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[</em>].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
1659
|
-
</li>
|
|
1660
|
-
<li><p><strong>condition FARE_POLICY_Tag_Required_56_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[<em>].tags[</em>].descriptor.code must be in ["FARE_POLICY"]</p>
|
|
1661
|
-
<blockquote>
|
|
1662
|
-
<p>Note: <strong>Condition FARE_POLICY_Tag_Required_56_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1663
|
-
<ul>
|
|
1664
|
-
<li><strong>condition B</strong>: $.message.order.items[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1665
|
-
</ul>
|
|
1666
|
-
</blockquote>
|
|
1667
|
-
</li>
|
|
1668
|
-
<li><p><strong>condition validate_tag_1_FARE_POLICY</strong>: every element of $.message.order.items[<em>].tags[?(@.descriptor.code=='FARE_POLICY')].list[</em>].descriptor.code must be in ["RESTRICTED_PERSON", "RESTRICTION_PROOF"]</p>
|
|
1669
|
-
</li>
|
|
1670
|
-
<li><p><strong>condition BUYER_FINDER_FEES_Tag_Required_58_DESCRIPTOR_CODE</strong>: every element of $.message.order.payments[<em>].tags[</em>].descriptor.code must be in ["BUYER_FINDER_FEES", "SETTLEMENT_TERMS"]</p>
|
|
1671
|
-
<blockquote>
|
|
1672
|
-
<p>Note: <strong>Condition BUYER_FINDER_FEES_Tag_Required_58_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1673
|
-
<ul>
|
|
1674
|
-
<li><strong>condition B</strong>: $.message.order.payments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1675
|
-
</ul>
|
|
1676
|
-
</blockquote>
|
|
1677
|
-
</li>
|
|
1678
|
-
<li><p><strong>condition validate_tag_2_BUYER_FINDER_FEES</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='BUYER_FINDER_FEES')].list[</em>].descriptor.code must be in ["BUYER_FINDER_FEES_TYPE", "BUYER_FINDER_FEES_PERCENTAGE", "BUYER_FINDER_FEES_AMOUNT"]</p>
|
|
1679
|
-
</li>
|
|
1680
|
-
<li><p><strong>condition validate_tag_2_SETTLEMENT_TERMS</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='SETTLEMENT_TERMS')].list[</em>].descriptor.code must be in ["SETTLEMENT_WINDOW", "SETTLEMENT_BASIS", "SETTLEMENT_TYPE", "MANDATORY_ARBITRATION", "COURT_JURISDICTION", "DELAY_INTEREST", "STATIC_TERMS", "SETTLEMENT_AMOUNT"]</p>
|
|
1681
|
-
</li>
|
|
1682
|
-
</ul>
|
|
1683
|
-
</li>
|
|
1684
|
-
</ul>
|
|
1685
|
-
</li>
|
|
1686
|
-
<li><p><strong>on_update</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1687
|
-
<ul>
|
|
1688
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
1689
|
-
</li>
|
|
1690
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
1691
|
-
</li>
|
|
1692
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
1693
|
-
</li>
|
|
1694
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
1695
|
-
</li>
|
|
1696
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
1697
|
-
</li>
|
|
1698
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
1699
|
-
</li>
|
|
1700
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
1701
|
-
</li>
|
|
1702
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
1703
|
-
</li>
|
|
1704
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
1705
|
-
</li>
|
|
1706
|
-
<li><p><strong>condition Enum_Required_39_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
1707
|
-
<ul>
|
|
1708
|
-
<li><strong>condition Enum_Required_39_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["on_cancel"]</li>
|
|
1709
|
-
<li><strong>condition Enum_Required_39_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
1710
|
-
</ul>
|
|
1711
|
-
</li>
|
|
1712
|
-
<li><p><strong>condition Enum_Required_40_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1713
|
-
<ul>
|
|
1714
|
-
<li><strong>condition Enum_Required_40_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
1715
|
-
<li><strong>condition Enum_Required_40_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
1716
|
-
</ul>
|
|
1717
|
-
</li>
|
|
1718
|
-
<li><p><strong>condition Enum_Required_41_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
1719
|
-
</li>
|
|
1720
|
-
<li><p><strong>condition Enum_Required_42_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
1721
|
-
<ul>
|
|
1722
|
-
<li><strong>condition Enum_Required_42_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
1723
|
-
<li><strong>condition Enum_Required_42_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
1724
|
-
</ul>
|
|
1725
|
-
</li>
|
|
1726
|
-
<li><p><strong>on_update_Message_TESTS</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1727
|
-
<ul>
|
|
1728
|
-
<li><p><strong>condition Attri_Required_10_ORDER_ID</strong>: $.message.order.id must be present in the payload</p>
|
|
1729
|
-
</li>
|
|
1730
|
-
<li><p><strong>condition Attri_Required_11_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
1731
|
-
</li>
|
|
1732
|
-
<li><p><strong>condition Attri_Required_12_DESCRIPTOR_NAME</strong>: $.message.order.items[*].descriptor.name must be present in the payload</p>
|
|
1733
|
-
</li>
|
|
1734
|
-
<li><p><strong>condition Attri_Required_13_PRICE_CURRENCY</strong>: $.message.order.items[*].price.currency must be present in the payload</p>
|
|
1735
|
-
</li>
|
|
1736
|
-
<li><p><strong>condition Attri_Required_14_PRICE_VALUE</strong>: $.message.order.items[*].price.value must be present in the payload</p>
|
|
1737
|
-
</li>
|
|
1738
|
-
<li><p><strong>condition Attri_Required_15_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
1739
|
-
</li>
|
|
1740
|
-
<li><p><strong>condition Attri_Required_16_ITEMS_FULFILLMENT_IDS</strong>: $.message.order.items[<em>].fulfillment_ids[</em>] must be present in the payload</p>
|
|
1741
|
-
</li>
|
|
1742
|
-
<li><p><strong>condition Attri_Required_17_TIME_LABEL</strong>: $.message.order.items[*].time.label must be present in the payload</p>
|
|
1743
|
-
</li>
|
|
1744
|
-
<li><p><strong>condition Attri_Required_18_TIME_DURATION</strong>: $.message.order.items[*].time.duration must be present in the payload</p>
|
|
1745
|
-
</li>
|
|
1746
|
-
<li><p><strong>condition Attri_Required_19_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
1747
|
-
</li>
|
|
1748
|
-
<li><p><strong>condition Attri_Required_20_DESCRIPTOR_NAME</strong>: $.message.order.provider.descriptor.name must be present in the payload</p>
|
|
1749
|
-
</li>
|
|
1750
|
-
<li><p><strong>condition Attri_Required_21_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1751
|
-
</li>
|
|
1752
|
-
<li><p><strong>condition Attri_Required_22_INSTRUCTIONS_NAME</strong>: $.message.order.fulfillments[<em>].stops[</em>].instructions.name must be present in the payload</p>
|
|
1753
|
-
</li>
|
|
1754
|
-
<li><p><strong>condition Attri_Required_23_DESCRIPTOR_NAME</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.descriptor.name must be present in the payload</p>
|
|
1755
|
-
</li>
|
|
1756
|
-
<li><p><strong>condition Attri_Required_24_DESCRIPTOR_CODE</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.descriptor.code must be present in the payload</p>
|
|
1757
|
-
</li>
|
|
1758
|
-
<li><p><strong>condition Attri_Required_25_LOCATION_GPS</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.gps must be present in the payload</p>
|
|
1759
|
-
</li>
|
|
1760
|
-
<li><p><strong>condition Attri_Required_26_AUTHORIZATION_TOKEN</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.token must be present in the payload</p>
|
|
1761
|
-
</li>
|
|
1762
|
-
<li><p><strong>condition Attri_Required_27_AUTHORIZATION_VALID_TO</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.valid_to must be present in the payload</p>
|
|
1763
|
-
</li>
|
|
1764
|
-
<li><p><strong>condition Attri_Required_28_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1765
|
-
</li>
|
|
1766
|
-
<li><p><strong>condition Attri_Required_29_PRICE_VALUE</strong>: $.message.order.quote.price.value must be present in the payload</p>
|
|
1767
|
-
</li>
|
|
1768
|
-
<li><p><strong>condition Attri_Required_30_PRICE_CURRENCY</strong>: $.message.order.quote.price.currency must be present in the payload</p>
|
|
1769
|
-
</li>
|
|
1770
|
-
<li><p><strong>condition Attri_Required_31_ITEM_ID</strong>: $.message.order.quote.breakup[*].item.id must be present in the payload</p>
|
|
1771
|
-
</li>
|
|
1772
|
-
<li><p><strong>condition Attri_Required_32_PRICE_CURRENCY</strong>: $.message.order.quote.breakup[*].price.currency must be present in the payload</p>
|
|
1773
|
-
</li>
|
|
1774
|
-
<li><p><strong>condition Attri_Required_33_PRICE_VALUE</strong>: $.message.order.quote.breakup[*].price.value must be present in the payload</p>
|
|
1775
|
-
</li>
|
|
1776
|
-
<li><p><strong>condition Attri_Required_34_PAYMENTS_ID</strong>: $.message.order.payments[*].id must be present in the payload</p>
|
|
1777
|
-
</li>
|
|
1778
|
-
<li><p><strong>condition Attri_Required_35_PARAMS_TRANSACTION_ID</strong>: $.message.order.payments[*].params.transaction_id must be present in the payload</p>
|
|
1779
|
-
</li>
|
|
1780
|
-
<li><p><strong>condition Attri_Required_36_PARAMS_CURRENCY</strong>: $.message.order.payments[*].params.currency must be present in the payload</p>
|
|
1781
|
-
</li>
|
|
1782
|
-
<li><p><strong>condition Attri_Required_37_PARAMS_AMOUNT</strong>: $.message.order.payments[*].params.amount must be present in the payload</p>
|
|
1783
|
-
</li>
|
|
1784
|
-
<li><p><strong>condition Attri_Required_38_CANCEL_BY_DURATION</strong>: $.message.order.cancellation_terms[*].cancel_by.duration must be present in the payload</p>
|
|
1785
|
-
</li>
|
|
1786
|
-
<li><p><strong>condition Enum_Required_43_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1787
|
-
<ul>
|
|
1788
|
-
<li><strong>condition Enum_Required_43_DESCRIPTOR_CODE.1</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</li>
|
|
1789
|
-
<li><strong>condition Enum_Required_43_DESCRIPTOR_CODE.2</strong>: $.message.order.items[*].descriptor.code must be present in the payload</li>
|
|
1790
|
-
</ul>
|
|
1791
|
-
</li>
|
|
1792
|
-
<li><p><strong>condition Enum_Required_44_VEHICLE_CATEGORY</strong>: all of the following sub conditions must be met:</p>
|
|
1793
|
-
<ul>
|
|
1794
|
-
<li><strong>condition Enum_Required_44_VEHICLE_CATEGORY.1</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</li>
|
|
1795
|
-
<li><strong>condition Enum_Required_44_VEHICLE_CATEGORY.2</strong>: $.message.order.fulfillments[*].vehicle.category must be present in the payload</li>
|
|
1796
|
-
</ul>
|
|
1797
|
-
</li>
|
|
1798
|
-
<li><p><strong>condition Enum_Required_45_FULFILLMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1799
|
-
<ul>
|
|
1800
|
-
<li><strong>condition Enum_Required_45_FULFILLMENTS_TYPE.1</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</li>
|
|
1801
|
-
<li><strong>condition Enum_Required_45_FULFILLMENTS_TYPE.2</strong>: $.message.order.fulfillments[*].type must be present in the payload</li>
|
|
1802
|
-
</ul>
|
|
1803
|
-
</li>
|
|
1804
|
-
<li><p><strong>condition Enum_Required_46_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
1805
|
-
<blockquote>
|
|
1806
|
-
<p>Note: <strong>Condition Enum_Required_46_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
1807
|
-
<ul>
|
|
1808
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
1809
|
-
</ul>
|
|
1810
|
-
</blockquote>
|
|
1811
|
-
</li>
|
|
1812
|
-
<li><p><strong>condition Enum_Required_47_AUTHORIZATION_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1813
|
-
<ul>
|
|
1814
|
-
<li><strong>condition Enum_Required_47_AUTHORIZATION_TYPE.1</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</li>
|
|
1815
|
-
<li><strong>condition Enum_Required_47_AUTHORIZATION_TYPE.2</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be present in the payload</li>
|
|
1816
|
-
</ul>
|
|
1817
|
-
</li>
|
|
1818
|
-
<li><p><strong>condition Enum_Required_48_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
1819
|
-
<blockquote>
|
|
1820
|
-
<p>Note: <strong>Condition Enum_Required_48_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
1821
|
-
<ul>
|
|
1822
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
1823
|
-
</ul>
|
|
1824
|
-
</blockquote>
|
|
1825
|
-
</li>
|
|
1826
|
-
<li><p><strong>condition Enum_Required_49_PAYMENTS_STATUS</strong>: all of the following sub conditions must be met:</p>
|
|
1827
|
-
<ul>
|
|
1828
|
-
<li><strong>condition Enum_Required_49_PAYMENTS_STATUS.1</strong>: every element of $.message.order.payments[*].status must be in ["NOT-PAID", "PAID"]</li>
|
|
1829
|
-
<li><strong>condition Enum_Required_49_PAYMENTS_STATUS.2</strong>: $.message.order.payments[*].status must be present in the payload</li>
|
|
1830
|
-
</ul>
|
|
1831
|
-
</li>
|
|
1832
|
-
<li><p><strong>condition Enum_Required_50_PAYMENTS_COLLECTED_BY</strong>: all of the following sub conditions must be met:</p>
|
|
1833
|
-
<ul>
|
|
1834
|
-
<li><strong>condition Enum_Required_50_PAYMENTS_COLLECTED_BY.1</strong>: every element of $.message.order.payments[*].collected_by must be in ["BPP", "BAP"]</li>
|
|
1835
|
-
<li><strong>condition Enum_Required_50_PAYMENTS_COLLECTED_BY.2</strong>: $.message.order.payments[*].collected_by must be present in the payload</li>
|
|
1836
|
-
</ul>
|
|
1837
|
-
</li>
|
|
1838
|
-
<li><p><strong>condition Enum_Required_51_PAYMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
1839
|
-
<ul>
|
|
1840
|
-
<li><strong>condition Enum_Required_51_PAYMENTS_TYPE.1</strong>: every element of $.message.order.payments[*].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</li>
|
|
1841
|
-
<li><strong>condition Enum_Required_51_PAYMENTS_TYPE.2</strong>: $.message.order.payments[*].type must be present in the payload</li>
|
|
1842
|
-
</ul>
|
|
1843
|
-
</li>
|
|
1844
|
-
<li><p><strong>condition Enum_Required_52_BREAKUP_TITLE</strong>: all of the following sub conditions must be met:</p>
|
|
1845
|
-
<ul>
|
|
1846
|
-
<li><strong>condition Enum_Required_52_BREAKUP_TITLE.1</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</li>
|
|
1847
|
-
<li><strong>condition Enum_Required_52_BREAKUP_TITLE.2</strong>: $.message.order.quote.breakup[*].title must be present in the payload</li>
|
|
1848
|
-
</ul>
|
|
1849
|
-
</li>
|
|
1850
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_53_DESCRIPTOR_CODE</strong>: every element of $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
1851
|
-
<blockquote>
|
|
1852
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_53_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1853
|
-
<ul>
|
|
1854
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1855
|
-
</ul>
|
|
1856
|
-
</blockquote>
|
|
1857
|
-
</li>
|
|
1858
|
-
<li><p><strong>condition validate_tag_0_ROUTE_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[</em>].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
1859
|
-
</li>
|
|
1860
|
-
<li><p><strong>condition validate_tag_0_TICKET_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[</em>].descriptor.code must be in ["NUMBER"]</p>
|
|
1861
|
-
</li>
|
|
1862
|
-
<li><p><strong>condition validate_tag_0_TRIP_DETAILS</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[</em>].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
1863
|
-
</li>
|
|
1864
|
-
<li><p><strong>condition FARE_POLICY_Tag_Required_57_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[<em>].tags[</em>].descriptor.code must be in ["FARE_POLICY"]</p>
|
|
1865
|
-
<blockquote>
|
|
1866
|
-
<p>Note: <strong>Condition FARE_POLICY_Tag_Required_57_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
1867
|
-
<ul>
|
|
1868
|
-
<li><strong>condition B</strong>: $.message.order.items[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
1869
|
-
</ul>
|
|
1870
|
-
</blockquote>
|
|
1871
|
-
</li>
|
|
1872
|
-
<li><p><strong>condition validate_tag_1_FARE_POLICY</strong>: every element of $.message.order.items[<em>].tags[?(@.descriptor.code=='FARE_POLICY')].list[</em>].descriptor.code must be in ["RESTRICTED_PERSON", "RESTRICTION_PROOF"]</p>
|
|
1873
|
-
</li>
|
|
1874
|
-
</ul>
|
|
1875
|
-
</li>
|
|
1876
|
-
</ul>
|
|
1877
|
-
</li>
|
|
1878
|
-
<li><p><strong>on_status</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1879
|
-
<ul>
|
|
1880
|
-
<li><p><strong>condition Attri_Required_1_CONTEXT_TIMESTAMP</strong>: $.context.timestamp must be present in the payload</p>
|
|
1881
|
-
</li>
|
|
1882
|
-
<li><p><strong>condition Attri_Required_2_CONTEXT_BAP_ID</strong>: $.context.bap_id must be present in the payload</p>
|
|
1883
|
-
</li>
|
|
1884
|
-
<li><p><strong>condition Attri_Required_3_CONTEXT_TRANSACTION_ID</strong>: $.context.transaction_id must be present in the payload</p>
|
|
1885
|
-
</li>
|
|
1886
|
-
<li><p><strong>condition Attri_Required_4_CONTEXT_MESSAGE_ID</strong>: $.context.message_id must be present in the payload</p>
|
|
1887
|
-
</li>
|
|
1888
|
-
<li><p><strong>condition Attri_Required_5_CONTEXT_VERSION</strong>: $.context.version must be present in the payload</p>
|
|
1889
|
-
</li>
|
|
1890
|
-
<li><p><strong>condition Attri_Required_6_CONTEXT_BAP_URI</strong>: $.context.bap_uri must be present in the payload</p>
|
|
1891
|
-
</li>
|
|
1892
|
-
<li><p><strong>condition Attri_Required_7_CONTEXT_TTL</strong>: $.context.ttl must be present in the payload</p>
|
|
1893
|
-
</li>
|
|
1894
|
-
<li><p><strong>condition Attri_Required_8_CONTEXT_BPP_ID</strong>: $.context.bpp_id must be present in the payload</p>
|
|
1895
|
-
</li>
|
|
1896
|
-
<li><p><strong>condition Attri_Required_9_CONTEXT_BPP_URI</strong>: $.context.bpp_uri must be present in the payload</p>
|
|
1897
|
-
</li>
|
|
1898
|
-
<li><p><strong>condition Enum_Required_43_CONTEXT_ACTION</strong>: all of the following sub conditions must be met:</p>
|
|
1899
|
-
<ul>
|
|
1900
|
-
<li><strong>condition Enum_Required_43_CONTEXT_ACTION.1</strong>: every element of $.context.action must be in ["on_status"]</li>
|
|
1901
|
-
<li><strong>condition Enum_Required_43_CONTEXT_ACTION.2</strong>: $.context.action must be present in the payload</li>
|
|
1902
|
-
</ul>
|
|
1903
|
-
</li>
|
|
1904
|
-
<li><p><strong>condition Enum_Required_44_COUNTRY_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1905
|
-
<ul>
|
|
1906
|
-
<li><strong>condition Enum_Required_44_COUNTRY_CODE.1</strong>: every element of $.context.location.country.code must be in ["IND"]</li>
|
|
1907
|
-
<li><strong>condition Enum_Required_44_COUNTRY_CODE.2</strong>: $.context.location.country.code must be present in the payload</li>
|
|
1908
|
-
</ul>
|
|
1909
|
-
</li>
|
|
1910
|
-
<li><p><strong>condition Enum_Required_45_CITY_CODE</strong>: $.context.location.city.code must be present in the payload</p>
|
|
1911
|
-
</li>
|
|
1912
|
-
<li><p><strong>condition Enum_Required_46_CONTEXT_DOMAIN</strong>: all of the following sub conditions must be met:</p>
|
|
1913
|
-
<ul>
|
|
1914
|
-
<li><strong>condition Enum_Required_46_CONTEXT_DOMAIN.1</strong>: every element of $.context.domain must be in ["ONDC:TRV11"]</li>
|
|
1915
|
-
<li><strong>condition Enum_Required_46_CONTEXT_DOMAIN.2</strong>: $.context.domain must be present in the payload</li>
|
|
1916
|
-
</ul>
|
|
1917
|
-
</li>
|
|
1918
|
-
<li><p><strong>on_status_Message_TESTS</strong> : All the following sub conditions must pass as per the api requirement</p>
|
|
1919
|
-
<ul>
|
|
1920
|
-
<li><p><strong>condition Attri_Required_10_ORDER_ID</strong>: $.message.order.id must be present in the payload</p>
|
|
1921
|
-
</li>
|
|
1922
|
-
<li><p><strong>condition Attri_Required_11_ORDER_STATUS</strong>: $.message.order.status must be present in the payload</p>
|
|
1923
|
-
</li>
|
|
1924
|
-
<li><p><strong>condition Attri_Required_12_ITEMS_ID</strong>: $.message.order.items[*].id must be present in the payload</p>
|
|
1925
|
-
</li>
|
|
1926
|
-
<li><p><strong>condition Attri_Required_13_DESCRIPTOR_NAME</strong>: $.message.order.items[*].descriptor.name must be present in the payload</p>
|
|
1927
|
-
</li>
|
|
1928
|
-
<li><p><strong>condition Attri_Required_14_PRICE_CURRENCY</strong>: $.message.order.items[*].price.currency must be present in the payload</p>
|
|
1929
|
-
</li>
|
|
1930
|
-
<li><p><strong>condition Attri_Required_15_PRICE_VALUE</strong>: $.message.order.items[*].price.value must be present in the payload</p>
|
|
1931
|
-
</li>
|
|
1932
|
-
<li><p><strong>condition Attri_Required_16_SELECTED_COUNT</strong>: $.message.order.items[*].quantity.selected.count must be present in the payload</p>
|
|
1933
|
-
</li>
|
|
1934
|
-
<li><p><strong>condition Attri_Required_17_ITEMS_FULFILLMENT_IDS</strong>: $.message.order.items[<em>].fulfillment_ids[</em>] must be present in the payload</p>
|
|
1935
|
-
</li>
|
|
1936
|
-
<li><p><strong>condition Attri_Required_18_TIME_LABEL</strong>: $.message.order.items[*].time.label must be present in the payload</p>
|
|
1937
|
-
</li>
|
|
1938
|
-
<li><p><strong>condition Attri_Required_19_TIME_DURATION</strong>: $.message.order.items[*].time.duration must be present in the payload</p>
|
|
1939
|
-
</li>
|
|
1940
|
-
<li><p><strong>condition Attri_Required_20_PROVIDER_ID</strong>: $.message.order.provider.id must be present in the payload</p>
|
|
1941
|
-
</li>
|
|
1942
|
-
<li><p><strong>condition Attri_Required_21_DESCRIPTOR_NAME</strong>: $.message.order.provider.descriptor.name must be present in the payload</p>
|
|
1943
|
-
</li>
|
|
1944
|
-
<li><p><strong>condition Attri_Required_22_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1945
|
-
</li>
|
|
1946
|
-
<li><p><strong>condition Attri_Required_23_LOCATION_GPS</strong>: $.message.order.fulfillments[<em>].stops[</em>].location.gps must be present in the payload</p>
|
|
1947
|
-
</li>
|
|
1948
|
-
<li><p><strong>condition Attri_Required_24_FULFILLMENTS_ID</strong>: $.message.order.fulfillments[*].id must be present in the payload</p>
|
|
1949
|
-
</li>
|
|
1950
|
-
<li><p><strong>condition Attri_Required_25_PRICE_VALUE</strong>: $.message.order.quote.price.value must be present in the payload</p>
|
|
1951
|
-
</li>
|
|
1952
|
-
<li><p><strong>condition Attri_Required_26_PRICE_CURRENCY</strong>: $.message.order.quote.price.currency must be present in the payload</p>
|
|
1953
|
-
</li>
|
|
1954
|
-
<li><p><strong>condition Attri_Required_27_ITEM_ID</strong>: $.message.order.quote.breakup[*].item.id must be present in the payload</p>
|
|
1955
|
-
</li>
|
|
1956
|
-
<li><p><strong>condition Attri_Required_28_PAYMENTS_ID</strong>: $.message.order.payments[*].id must be present in the payload</p>
|
|
1957
|
-
</li>
|
|
1958
|
-
<li><p><strong>condition Attri_Required_29_PARAMS_TRANSACTION_ID</strong>: $.message.order.payments[*].params.transaction_id must be present in the payload</p>
|
|
1959
|
-
</li>
|
|
1960
|
-
<li><p><strong>condition Attri_Required_30_PARAMS_CURRENCY</strong>: $.message.order.payments[*].params.currency must be present in the payload</p>
|
|
1961
|
-
</li>
|
|
1962
|
-
<li><p><strong>condition Attri_Required_31_PARAMS_AMOUNT</strong>: $.message.order.payments[*].params.amount must be present in the payload</p>
|
|
1963
|
-
</li>
|
|
1964
|
-
<li><p><strong>condition Attri_Required_32_CANCEL_BY_DURATION</strong>: $.message.order.cancellation_terms[*].cancel_by.duration must be present in the payload</p>
|
|
1965
|
-
</li>
|
|
1966
|
-
<li><p><strong>condition Attri_Required_33_ITEMS_CATEGORY_IDS</strong>: $.message.order.items[<em>].category_ids[</em>] must be present in the payload</p>
|
|
1967
|
-
</li>
|
|
1968
|
-
<li><p><strong>condition Attri_Required_34_RANGE_START</strong>: $.message.order.provider.time.range.start must be present in the payload</p>
|
|
1969
|
-
</li>
|
|
1970
|
-
<li><p><strong>condition Attri_Required_35_RANGE_END</strong>: $.message.order.provider.time.range.end must be present in the payload</p>
|
|
1971
|
-
</li>
|
|
1972
|
-
<li><p><strong>condition Attri_Required_36_PRICE_CURRENCY</strong>: $.message.order.quote.breakup[*].item.price.currency must be present in the payload</p>
|
|
1973
|
-
</li>
|
|
1974
|
-
<li><p><strong>condition Attri_Required_37_PRICE_VALUE</strong>: $.message.order.quote.breakup[*].item.price.value must be present in the payload</p>
|
|
1975
|
-
</li>
|
|
1976
|
-
<li><p><strong>condition Attri_Required_38_SELECTED_COUNT</strong>: $.message.order.quote.breakup[*].item.quantity.selected.count must be present in the payload</p>
|
|
1977
|
-
</li>
|
|
1978
|
-
<li><p><strong>condition Attri_Required_39_EXTERNAL_REF_URL</strong>: $.message.order.cancellation_terms[*].external_ref.url must be present in the payload</p>
|
|
1979
|
-
</li>
|
|
1980
|
-
<li><p><strong>condition Attri_Required_40_EXTERNAL_REF_MIMETYPE</strong>: $.message.order.cancellation_terms[*].external_ref.mimetype must be present in the payload</p>
|
|
1981
|
-
</li>
|
|
1982
|
-
<li><p><strong>condition Attri_Required_41_ORDER_CREATED_AT</strong>: $.message.order.created_at must be present in the payload</p>
|
|
1983
|
-
</li>
|
|
1984
|
-
<li><p><strong>condition Attri_Required_42_ORDER_UPDATED_AT</strong>: $.message.order.updated_at must be present in the payload</p>
|
|
1985
|
-
</li>
|
|
1986
|
-
<li><p><strong>condition Enum_Required_47_DESCRIPTOR_CODE</strong>: all of the following sub conditions must be met:</p>
|
|
1987
|
-
<ul>
|
|
1988
|
-
<li><strong>condition Enum_Required_47_DESCRIPTOR_CODE.1</strong>: every element of $.message.order.items[*].descriptor.code must be in ["SJT", "SFSJT", "RJT", "PASS"]</li>
|
|
1989
|
-
<li><strong>condition Enum_Required_47_DESCRIPTOR_CODE.2</strong>: $.message.order.items[*].descriptor.code must be present in the payload</li>
|
|
1990
|
-
</ul>
|
|
1991
|
-
</li>
|
|
1992
|
-
<li><p><strong>condition Enum_Required_48_VEHICLE_CATEGORY</strong>: every element of $.message.order.fulfillments[*].vehicle.category must be in ["BUS", "METRO"]</p>
|
|
1993
|
-
<blockquote>
|
|
1994
|
-
<p>Note: <strong>Condition Enum_Required_48_VEHICLE_CATEGORY</strong> can be skipped if the following conditions are met:</p>
|
|
1995
|
-
<ul>
|
|
1996
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].vehicle.category must <strong>not</strong> be present in the payload</li>
|
|
1997
|
-
</ul>
|
|
1998
|
-
</blockquote>
|
|
1999
|
-
</li>
|
|
2000
|
-
<li><p><strong>condition Enum_Required_49_FULFILLMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
2001
|
-
<ul>
|
|
2002
|
-
<li><strong>condition Enum_Required_49_FULFILLMENTS_TYPE.1</strong>: every element of $.message.order.fulfillments[*].type must be in ["ROUTE", "TRIP"]</li>
|
|
2003
|
-
<li><strong>condition Enum_Required_49_FULFILLMENTS_TYPE.2</strong>: $.message.order.fulfillments[*].type must be present in the payload</li>
|
|
2004
|
-
</ul>
|
|
2005
|
-
</li>
|
|
2006
|
-
<li><p><strong>condition Enum_Required_50_FULFILLMENTS_TYPE</strong>: every element of $.message.order.fulfillments[*].type must be in ["START", "END", "INTERMEDIATE_STOP", "TRANSIT_STOP"]</p>
|
|
2007
|
-
<blockquote>
|
|
2008
|
-
<p>Note: <strong>Condition Enum_Required_50_FULFILLMENTS_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
2009
|
-
<ul>
|
|
2010
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[*].type must <strong>not</strong> be present in the payload</li>
|
|
2011
|
-
</ul>
|
|
2012
|
-
</blockquote>
|
|
2013
|
-
</li>
|
|
2014
|
-
<li><p><strong>condition Enum_Required_51_AUTHORIZATION_TYPE</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.type must be in ["QR"]</p>
|
|
2015
|
-
<blockquote>
|
|
2016
|
-
<p>Note: <strong>Condition Enum_Required_51_AUTHORIZATION_TYPE</strong> can be skipped if the following conditions are met:</p>
|
|
2017
|
-
<ul>
|
|
2018
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.type must <strong>not</strong> be present in the payload</li>
|
|
2019
|
-
</ul>
|
|
2020
|
-
</blockquote>
|
|
2021
|
-
</li>
|
|
2022
|
-
<li><p><strong>condition Enum_Required_52_AUTHORIZATION_STATUS</strong>: every element of $.message.order.fulfillments[<em>].stops[</em>].authorization.status must be in ["UNCLAIMED", "CLAIMED"]</p>
|
|
2023
|
-
<blockquote>
|
|
2024
|
-
<p>Note: <strong>Condition Enum_Required_52_AUTHORIZATION_STATUS</strong> can be skipped if the following conditions are met:</p>
|
|
2025
|
-
<ul>
|
|
2026
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].stops[</em>].authorization.status must <strong>not</strong> be present in the payload</li>
|
|
2027
|
-
</ul>
|
|
2028
|
-
</blockquote>
|
|
2029
|
-
</li>
|
|
2030
|
-
<li><p><strong>condition Enum_Required_53_PAYMENTS_STATUS</strong>: all of the following sub conditions must be met:</p>
|
|
2031
|
-
<ul>
|
|
2032
|
-
<li><strong>condition Enum_Required_53_PAYMENTS_STATUS.1</strong>: every element of $.message.order.payments[*].status must be in ["NOT-PAID", "PAID"]</li>
|
|
2033
|
-
<li><strong>condition Enum_Required_53_PAYMENTS_STATUS.2</strong>: $.message.order.payments[*].status must be present in the payload</li>
|
|
2034
|
-
</ul>
|
|
2035
|
-
</li>
|
|
2036
|
-
<li><p><strong>condition Enum_Required_54_PAYMENTS_COLLECTED_BY</strong>: all of the following sub conditions must be met:</p>
|
|
2037
|
-
<ul>
|
|
2038
|
-
<li><strong>condition Enum_Required_54_PAYMENTS_COLLECTED_BY.1</strong>: every element of $.message.order.payments[*].collected_by must be in ["BPP", "BAP"]</li>
|
|
2039
|
-
<li><strong>condition Enum_Required_54_PAYMENTS_COLLECTED_BY.2</strong>: $.message.order.payments[*].collected_by must be present in the payload</li>
|
|
2040
|
-
</ul>
|
|
2041
|
-
</li>
|
|
2042
|
-
<li><p><strong>condition Enum_Required_55_PAYMENTS_TYPE</strong>: all of the following sub conditions must be met:</p>
|
|
2043
|
-
<ul>
|
|
2044
|
-
<li><strong>condition Enum_Required_55_PAYMENTS_TYPE.1</strong>: every element of $.message.order.payments[*].type must be in ["PRE-ORDER", "ON-FULFILLMENT", "POST-FULFILLMENT"]</li>
|
|
2045
|
-
<li><strong>condition Enum_Required_55_PAYMENTS_TYPE.2</strong>: $.message.order.payments[*].type must be present in the payload</li>
|
|
2046
|
-
</ul>
|
|
2047
|
-
</li>
|
|
2048
|
-
<li><p><strong>condition Enum_Required_56_BREAKUP_TITLE</strong>: all of the following sub conditions must be met:</p>
|
|
2049
|
-
<ul>
|
|
2050
|
-
<li><strong>condition Enum_Required_56_BREAKUP_TITLE.1</strong>: every element of $.message.order.quote.breakup[*].title must be in ["BASE_PRICE", "REFUND", "CANCELLATION_CHARGES", "OFFER", "TOLL"]</li>
|
|
2051
|
-
<li><strong>condition Enum_Required_56_BREAKUP_TITLE.2</strong>: $.message.order.quote.breakup[*].title must be present in the payload</li>
|
|
2052
|
-
</ul>
|
|
2053
|
-
</li>
|
|
2054
|
-
<li><p><strong>condition ROUTE_INFO_Tag_Required_57_DESCRIPTOR_CODE</strong>: every element of $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must be in ["ROUTE_INFO", "TICKET_INFO", "TRIP_DETAILS"]</p>
|
|
2055
|
-
<blockquote>
|
|
2056
|
-
<p>Note: <strong>Condition ROUTE_INFO_Tag_Required_57_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
2057
|
-
<ul>
|
|
2058
|
-
<li><strong>condition B</strong>: $.message.order.fulfillments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
2059
|
-
</ul>
|
|
2060
|
-
</blockquote>
|
|
2061
|
-
</li>
|
|
2062
|
-
<li><p><strong>condition validate_tag_0_ROUTE_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='ROUTE_INFO')].list[</em>].descriptor.code must be in ["ROUTE_ID", "ROUTE_DIRECTION"]</p>
|
|
2063
|
-
</li>
|
|
2064
|
-
<li><p><strong>condition validate_tag_0_TICKET_INFO</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TICKET_INFO')].list[</em>].descriptor.code must be in ["NUMBER"]</p>
|
|
2065
|
-
</li>
|
|
2066
|
-
<li><p><strong>condition validate_tag_0_TRIP_DETAILS</strong>: every element of $.message.order.fulfillments[<em>].tags[?(@.descriptor.code=='TRIP_DETAILS')].list[</em>].descriptor.code must be in ["AVAILABLE_TRIPS", "UTILIZED_TRIPS"]</p>
|
|
2067
|
-
</li>
|
|
2068
|
-
<li><p><strong>condition FARE_POLICY_Tag_Required_61_DESCRIPTOR_CODE</strong>: every element of $.message.order.items[<em>].tags[</em>].descriptor.code must be in ["FARE_POLICY"]</p>
|
|
2069
|
-
<blockquote>
|
|
2070
|
-
<p>Note: <strong>Condition FARE_POLICY_Tag_Required_61_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
2071
|
-
<ul>
|
|
2072
|
-
<li><strong>condition B</strong>: $.message.order.items[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
2073
|
-
</ul>
|
|
2074
|
-
</blockquote>
|
|
2075
|
-
</li>
|
|
2076
|
-
<li><p><strong>condition validate_tag_1_FARE_POLICY</strong>: every element of $.message.order.items[<em>].tags[?(@.descriptor.code=='FARE_POLICY')].list[</em>].descriptor.code must be in ["RESTRICTED_PERSON", "RESTRICTION_PROOF"]</p>
|
|
2077
|
-
</li>
|
|
2078
|
-
<li><p><strong>condition BUYER_FINDER_FEES_Tag_Required_63_DESCRIPTOR_CODE</strong>: every element of $.message.order.payments[<em>].tags[</em>].descriptor.code must be in ["BUYER_FINDER_FEES", "SETTLEMENT_TERMS"]</p>
|
|
2079
|
-
<blockquote>
|
|
2080
|
-
<p>Note: <strong>Condition BUYER_FINDER_FEES_Tag_Required_63_DESCRIPTOR_CODE</strong> can be skipped if the following conditions are met:</p>
|
|
2081
|
-
<ul>
|
|
2082
|
-
<li><strong>condition B</strong>: $.message.order.payments[<em>].tags[</em>].descriptor.code must <strong>not</strong> be present in the payload</li>
|
|
2083
|
-
</ul>
|
|
2084
|
-
</blockquote>
|
|
2085
|
-
</li>
|
|
2086
|
-
<li><p><strong>condition validate_tag_2_BUYER_FINDER_FEES</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='BUYER_FINDER_FEES')].list[</em>].descriptor.code must be in ["BUYER_FINDER_FEES_TYPE", "BUYER_FINDER_FEES_PERCENTAGE", "BUYER_FINDER_FEES_AMOUNT"]</p>
|
|
2087
|
-
</li>
|
|
2088
|
-
<li><p><strong>condition validate_tag_2_SETTLEMENT_TERMS</strong>: every element of $.message.order.payments[<em>].tags[?(@.descriptor.code=='SETTLEMENT_TERMS')].list[</em>].descriptor.code must be in ["SETTLEMENT_WINDOW", "SETTLEMENT_BASIS", "SETTLEMENT_TYPE", "MANDATORY_ARBITRATION", "COURT_JURISDICTION", "DELAY_INTEREST", "STATIC_TERMS", "SETTLEMENT_AMOUNT"]</p>
|
|
2089
|
-
</li>
|
|
2090
|
-
</ul>
|
|
2091
|
-
</li>
|
|
2092
|
-
</ul>
|
|
2093
|
-
</li>
|
|
2094
|
-
</ul>
|
|
2095
|
-
|
|
2096
|
-
</div>
|
|
2097
|
-
</body>
|
|
2098
|
-
<script>
|
|
2099
|
-
document.addEventListener('DOMContentLoaded', function() {
|
|
2100
|
-
// Select all list items that have a nested <ul> (collapsible items)
|
|
2101
|
-
const collapsibleItems = document.querySelectorAll('li > ul');
|
|
2102
|
-
|
|
2103
|
-
collapsibleItems.forEach(function(nestedList) {
|
|
2104
|
-
const parentLi = nestedList.parentElement;
|
|
2105
|
-
parentLi.classList.add('collapsible', 'collapsed');
|
|
2106
|
-
|
|
2107
|
-
// Add click event listener to the <p> inside the list item
|
|
2108
|
-
const clickableArea = parentLi.querySelector('p');
|
|
2109
|
-
clickableArea.addEventListener('click', function(e) {
|
|
2110
|
-
// Prevent click events on links inside the <p>
|
|
2111
|
-
if (e.target.tagName !== 'A') {
|
|
2112
|
-
parentLi.classList.toggle('collapsed');
|
|
2113
|
-
}
|
|
2114
|
-
});
|
|
2115
|
-
});
|
|
2116
|
-
});
|
|
2117
|
-
</script>
|
|
2118
|
-
</html>
|