ondc-code-generator 1.0.0 → 1.0.1

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.
Files changed (32) hide show
  1. package/alpha/docs/rag-docs/confirm.md +301 -0
  2. package/alpha/docs/rag-docs/init.md +422 -0
  3. package/alpha/docs/rag-docs/on_confirm.md +921 -0
  4. package/alpha/docs/rag-docs/on_init.md +823 -0
  5. package/alpha/docs/rag-docs/on_search.md +897 -0
  6. package/alpha/docs/rag-docs/on_select.md +522 -0
  7. package/alpha/docs/rag-docs/on_status.md +854 -0
  8. package/alpha/docs/rag-docs/on_update.md +921 -0
  9. package/alpha/docs/rag-docs/search.md +678 -0
  10. package/alpha/docs/rag-docs/select.md +344 -0
  11. package/alpha/docs/rag-docs/status.md +178 -0
  12. package/alpha/docs/rag-docs/update.md +229 -0
  13. package/alpha/docs/rag-table-docs/confirm.md +63 -0
  14. package/alpha/docs/rag-table-docs/init.md +81 -0
  15. package/alpha/docs/rag-table-docs/on_confirm.md +164 -0
  16. package/alpha/docs/rag-table-docs/on_init.md +146 -0
  17. package/alpha/docs/rag-table-docs/on_search.md +163 -0
  18. package/alpha/docs/rag-table-docs/on_select.md +99 -0
  19. package/alpha/docs/rag-table-docs/on_status.md +153 -0
  20. package/alpha/docs/rag-table-docs/on_update.md +164 -0
  21. package/alpha/docs/rag-table-docs/raw_table.json +11198 -0
  22. package/alpha/docs/rag-table-docs/search.md +128 -0
  23. package/alpha/docs/rag-table-docs/select.md +70 -0
  24. package/alpha/docs/rag-table-docs/status.md +44 -0
  25. package/alpha/docs/rag-table-docs/update.md +51 -0
  26. package/alpha/docs/validPaths.json +34134 -0
  27. package/dist/generator/generators/documentation/markdown-message-generator.js +4 -1
  28. package/dist/generator/generators/rag/rag-generator.d.ts +39 -28
  29. package/dist/generator/generators/rag/rag-generator.js +149 -103
  30. package/dist/generator/generators/rag/rag-table-generator.d.ts +6 -0
  31. package/dist/generator/generators/rag/rag-table-generator.js +16 -6
  32. package/package.json +1 -1
@@ -0,0 +1,823 @@
1
+ ---
2
+ action: on_init
3
+ codeName: L1validations
4
+ numTests: 95
5
+ generated: 2026-03-10
6
+ domain: ONDC:FIS12
7
+ version: 2.3.0
8
+ ---
9
+
10
+ # L1validations — `on_init` Validations
11
+
12
+ These are the validation rules applied when processing the `on_init` API call in the L1validations flow.
13
+ There are **95** validation rules organized into **11** top-level group(s).
14
+
15
+ ---
16
+ ## ON_INIT_CONTEXT
17
+
18
+ This group contains **3** sub-group(s)/validation(s): CONTEXT_REQUIRED, CONTEXT_ENUM, and CONTEXT_REGEX.
19
+
20
+ ---
21
+
22
+ ### CONTEXT_REQUIRED
23
+
24
+ This is a group of **12** sub-validation(s) that all must pass: REQUIRED_CONTEXT_LOCATION_COUNTRY_CODE, REQUIRED_CONTEXT_LOCATION_CITY_CODE, REQUIRED_CONTEXT_DOMAIN, REQUIRED_CONTEXT_TIMESTAMP, REQUIRED_CONTEXT_BAP_ID, REQUIRED_CONTEXT_BAP_URI, REQUIRED_CONTEXT_TRANSACTION_ID, REQUIRED_CONTEXT_MESSAGE_ID, REQUIRED_CONTEXT_VERSION, REQUIRED_CONTEXT_TTL, REQUIRED_CONTEXT_BPP_ID, and REQUIRED_CONTEXT_BPP_URI.
25
+
26
+ ---
27
+
28
+ **REQUIRED_CONTEXT_LOCATION_COUNTRY_CODE**
29
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
30
+
31
+ - $.context.location.country.code must be present in the payload
32
+
33
+ **REQUIRED_CONTEXT_LOCATION_CITY_CODE**
34
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
35
+
36
+ - $.context.location.city.code must be present in the payload
37
+
38
+ **REQUIRED_CONTEXT_DOMAIN**
39
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
40
+
41
+ - $.context.domain must be present in the payload
42
+
43
+ **REQUIRED_CONTEXT_TIMESTAMP**
44
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
45
+
46
+ - $.context.timestamp must be present in the payload
47
+
48
+ **REQUIRED_CONTEXT_BAP_ID**
49
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
50
+
51
+ - $.context.bap_id must be present in the payload
52
+
53
+ **REQUIRED_CONTEXT_BAP_URI**
54
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
55
+
56
+ - $.context.bap_uri must be present in the payload
57
+
58
+ **REQUIRED_CONTEXT_TRANSACTION_ID**
59
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
60
+
61
+ - $.context.transaction_id must be present in the payload
62
+
63
+ **REQUIRED_CONTEXT_MESSAGE_ID**
64
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
65
+
66
+ - $.context.message_id must be present in the payload
67
+
68
+ **REQUIRED_CONTEXT_VERSION**
69
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
70
+
71
+ - $.context.version must be present in the payload
72
+
73
+ **REQUIRED_CONTEXT_TTL**
74
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
75
+
76
+ - $.context.ttl must be present in the payload
77
+
78
+ **REQUIRED_CONTEXT_BPP_ID**
79
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
80
+
81
+ - $.context.bpp_id must be present in the payload
82
+
83
+ **REQUIRED_CONTEXT_BPP_URI**
84
+ `group: ON_INIT_CONTEXT > CONTEXT_REQUIRED | type: leaf`
85
+
86
+ - $.context.bpp_uri must be present in the payload
87
+
88
+ ### CONTEXT_ENUM
89
+
90
+ This is a group of **2** sub-validation(s) that all must pass: VALID_CONTEXT_LOCATION_COUNTRY_CODE and VALID_CONTEXT_DOMAIN.
91
+
92
+ ---
93
+
94
+ **VALID_CONTEXT_LOCATION_COUNTRY_CODE**
95
+ `group: ON_INIT_CONTEXT > CONTEXT_ENUM | type: leaf`
96
+
97
+ - All elements of $.context.location.country.code must be in ["IND"]
98
+
99
+ > **Skip if:**
100
+ > - $.context.location.country.code is not in the payload
101
+
102
+ **VALID_CONTEXT_DOMAIN**
103
+ `group: ON_INIT_CONTEXT > CONTEXT_ENUM | type: leaf`
104
+
105
+ - All elements of $.context.domain must be in ["ONDC:FIS12"]
106
+
107
+ > **Skip if:**
108
+ > - $.context.domain is not in the payload
109
+
110
+ ### CONTEXT_REGEX
111
+
112
+ This is a group of **7** sub-validation(s) that all must pass: REGEX_CONTEXT_LOCATION_CITY_CODE, REGEX_CONTEXT_TIMESTAMP_1, REGEX_CONTEXT_BAP_ID, REGEX_CONTEXT_BAP_URI, REQUIRED_CONTEXT_TTL, REGEX_CONTEXT_BPP_ID, and REGEX_CONTEXT_BPP_URI.
113
+
114
+ ---
115
+
116
+ **REGEX_CONTEXT_LOCATION_CITY_CODE**
117
+ `group: ON_INIT_CONTEXT > CONTEXT_REGEX | type: leaf`
118
+
119
+ - All elements of $.context.location.city.code must follow every regex in ["(\\*)|(^std\\:[0-9]{2,4}$)"]
120
+
121
+ > **Skip if:**
122
+ > - $.context.location.city.code is not in the payload
123
+
124
+ **REGEX_CONTEXT_TIMESTAMP_1**
125
+ `group: ON_INIT_CONTEXT > CONTEXT_REGEX | type: leaf`
126
+
127
+ - All elements of $.context.timestamp must follow every regex in ["^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$"]
128
+
129
+ > **Skip if:**
130
+ > - $.context.timestamp is not in the payload
131
+
132
+ **REGEX_CONTEXT_BAP_ID**
133
+ `group: ON_INIT_CONTEXT > CONTEXT_REGEX | type: leaf`
134
+
135
+ - All elements of $.context.bap_id must follow every regex in ["^(?!.*\b(?:http|https|www)\b)[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$"]
136
+
137
+ > **Skip if:**
138
+ > - $.context.bap_id is not in the payload
139
+
140
+ **REGEX_CONTEXT_BAP_URI**
141
+ `group: ON_INIT_CONTEXT > CONTEXT_REGEX | type: leaf`
142
+
143
+ - All elements of $.context.bap_uri must follow every regex in ["^https:\/\/(www\.)?[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+(/)?$"]
144
+
145
+ > **Skip if:**
146
+ > - $.context.bap_uri is not in the payload
147
+
148
+ **REQUIRED_CONTEXT_TTL**
149
+ `group: ON_INIT_CONTEXT > CONTEXT_REGEX | type: leaf`
150
+
151
+ - All elements of $.context.ttl must follow every regex in ["^P(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+S)?)?$"]
152
+
153
+ > **Skip if:**
154
+ > - $.context.ttl is not in the payload
155
+
156
+ **REGEX_CONTEXT_BPP_ID**
157
+ `group: ON_INIT_CONTEXT > CONTEXT_REGEX | type: leaf`
158
+
159
+ - All elements of $.context.bpp_id must follow every regex in ["^(?!.*\b(?:http|https|www)\b)[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$"]
160
+
161
+ > **Skip if:**
162
+ > - $.context.bpp_id is not in the payload
163
+
164
+ **REGEX_CONTEXT_BPP_URI**
165
+ `group: ON_INIT_CONTEXT > CONTEXT_REGEX | type: leaf`
166
+
167
+ - All elements of $.context.bpp_uri must follow every regex in ["^https:\/\/(www\.)?[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+(/)?$"]
168
+
169
+ > **Skip if:**
170
+ > - $.context.bpp_uri is not in the payload
171
+
172
+ ---
173
+
174
+ ## ON_SELECT_PROVIDER
175
+
176
+ This is a group of **4** sub-validation(s) that all must pass: ON_SELECT_PROVIDER_ID, ON_SELECT_PROVIDER_NAME, ON_SELECT_PROVIDER_IMAGES_URL, and ON_SELECT_PROVIDER_IMAGES_SIZE_TYPE.
177
+
178
+ > **Skip if:**
179
+ > - $.message.order.provider.id must **not** be present in the payload
180
+
181
+ ---
182
+
183
+ **ON_SELECT_PROVIDER_ID**
184
+ `group: ON_SELECT_PROVIDER | type: leaf`
185
+
186
+ - $.message.order.provider.id must be present in the payload
187
+
188
+ **ON_SELECT_PROVIDER_NAME**
189
+ `group: ON_SELECT_PROVIDER | type: leaf`
190
+
191
+ - $.message.order.provider.descriptor.name must be present in the payload
192
+
193
+ **ON_SELECT_PROVIDER_IMAGES_URL**
194
+ `group: ON_SELECT_PROVIDER | type: leaf`
195
+
196
+ - $.message.order.provider.descriptor.images[*].url must be present in the payload
197
+
198
+ **ON_SELECT_PROVIDER_IMAGES_SIZE_TYPE**
199
+ `group: ON_SELECT_PROVIDER | type: leaf`
200
+
201
+ - $.message.order.provider.descriptor.images[*].size_type must be present in the payload
202
+
203
+ ---
204
+
205
+ ## ON_SELECT_PROVIDER_TAGS
206
+
207
+ This is a group of **3** sub-validation(s) that all must pass: VALID_PROVODER_TAGS, REQUIRED_CONTACT_INFO, and REQUIRED_LSP_INFO.
208
+
209
+ ---
210
+
211
+ **VALID_PROVODER_TAGS**
212
+ `group: ON_SELECT_PROVIDER_TAGS | type: leaf`
213
+
214
+ - All elements of $.message.order.provider.tags[*].descriptor.code must be in ["CONTACT_INFO", "LSP_INFO"]
215
+
216
+ > **Skip if:**
217
+ > - $.message.order.provider.tags[*].descriptor.code is not in the payload
218
+
219
+ **REQUIRED_CONTACT_INFO**
220
+ `group: ON_SELECT_PROVIDER_TAGS | type: leaf | scope: $.message.order.provider.tags[?(@.descriptor.code == CONTACT_INFO)]`
221
+
222
+ - All elements of $.message.order.provider.tags[?(@.descriptor.code == CONTACT_INFO)].list[*].descriptor.code must be in ["GRO_NAME", "GRO_EMAIL", "GRO_CONTACT_NUMBER", "CUSTOMER_SUPPORT_LINK", "CUSTOMER_SUPPORT_CONTACT_NUMBER", "CUSTOMER_SUPPORT_CONTACT_NUMBER"]
223
+
224
+ **REQUIRED_LSP_INFO**
225
+ `group: ON_SELECT_PROVIDER_TAGS | type: leaf | scope: $.message.order.provider.tags[?(@.descriptor.code == LSP_INFO)]`
226
+
227
+ - All elements of $.message.order.provider.tags[?(@.descriptor.code == LSP_INFO)].list[*].descriptor.code must be in ["LSP_NAME", "LSP_EMAIL", "LSP_CONTACT_NUMBER", "LSP_ADDRESS"]
228
+
229
+ ---
230
+
231
+ ## ON_INIT_ITEMS
232
+
233
+ This group contains **1** sub-group(s)/validation(s): REQUIRED_ITEMS.
234
+
235
+ ---
236
+
237
+ ### REQUIRED_ITEMS
238
+
239
+ This group contains **8** sub-group(s)/validation(s): REQUIRED_ITEM_ID, REQUIRED_PARENT_ITEM_ID, REQUIRED_ITEM_DESCRIPTOR_CODE, REQUIRED_ITEM_CATEGORY_ID, ON_SEARCH_ITEM_PRICE_CURRENCY, ON_SEARCH_ITEM_PRICE_VALUE, ON_SELECT_ITEM_FULFILLMENT_IDS, and REQUIRED_XINPUT_FIELDS.
240
+
241
+ ---
242
+
243
+ **REQUIRED_ITEM_ID**
244
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS | type: leaf`
245
+
246
+ - $.message.order.items[*].id must be present in the payload
247
+
248
+ **REQUIRED_PARENT_ITEM_ID**
249
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS | type: leaf`
250
+
251
+ - $.message.order.items[*].parent_item_id must be present in the payload
252
+
253
+ **REQUIRED_ITEM_DESCRIPTOR_CODE**
254
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS | type: leaf`
255
+
256
+ - $.message.order.items[*].descriptor.code must be present in the payload
257
+
258
+ **REQUIRED_ITEM_CATEGORY_ID**
259
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS | type: leaf`
260
+
261
+ - $.message.order.items[*].category_ids[*] must be present in the payload
262
+
263
+ **ON_SEARCH_ITEM_PRICE_CURRENCY**
264
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS | type: leaf`
265
+
266
+ - $.message.order.items[*].price.currency must be present in the payload
267
+
268
+ **ON_SEARCH_ITEM_PRICE_VALUE**
269
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS | type: leaf`
270
+
271
+ - $.message.order.items[*].price.value must be present in the payload
272
+
273
+ **ON_SELECT_ITEM_FULFILLMENT_IDS**
274
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS | type: leaf`
275
+
276
+ - $.message.order.items[*].fulfillment_ids[*] must be present in the payload
277
+
278
+ #### REQUIRED_XINPUT_FIELDS
279
+
280
+ This group contains **2** sub-group(s)/validation(s): REQUIRED_XINPUT_ITEMS and VALID_XINPUT_FIELDS.
281
+
282
+ > **Skip if:**
283
+ > - $.message.order.items[*].xinput.form.id must **not** be present in the payload
284
+
285
+ ---
286
+
287
+ ##### REQUIRED_XINPUT_ITEMS
288
+
289
+ This group contains **7** sub-group(s)/validation(s): REQUIRED_HEAD_CODE, REQUIRED_HEAD_NAME, REQUIRED_FORM_HEADINGS, REQUIRED_FORM_ID, REQUIRED_FORM_MIME_TYPE, REQUIRED_FORM_RESPONSE, and REQUIRED_SUBMISSION_ID.
290
+
291
+ ---
292
+
293
+ **REQUIRED_HEAD_CODE**
294
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
295
+
296
+ - $.message.order.items[*].xinput.head.descriptor.code must be present in the payload
297
+
298
+ > **Skip if:**
299
+ > - $.message.order.items[*].xinput.form_response.submission_id is in the payload
300
+
301
+ **REQUIRED_HEAD_NAME**
302
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
303
+
304
+ - $.message.order.items[*].xinput.head.descriptor.name must be present in the payload
305
+
306
+ > **Skip if:**
307
+ > - $.message.order.items[*].xinput.form_response.submission_id is in the payload
308
+
309
+ **REQUIRED_FORM_HEADINGS**
310
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
311
+
312
+ - $.message.order.items[*].xinput.head.headings[*] must be present in the payload
313
+
314
+ > **Skip if:**
315
+ > - $.message.order.items[*].xinput.form_response.submission_id is in the payload
316
+
317
+ **REQUIRED_FORM_ID**
318
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
319
+
320
+ - $.message.order.items[*].xinput.form.id must be present in the payload
321
+
322
+ **REQUIRED_FORM_MIME_TYPE**
323
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
324
+
325
+ - $.message.order.items[*].xinput.form.mime_type must be present in the payload
326
+
327
+ > **Skip if:**
328
+ > - $.message.order.items[*].xinput.form_response.submission_id is in the payload
329
+
330
+ ###### REQUIRED_FORM_RESPONSE
331
+
332
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_FORM_STATUS and REQUIRED_FORM_SUBMISSION_ID.
333
+
334
+ > **Skip if:**
335
+ > - $.message.order.items[*].xinput.form_response.submission_id must **not** be present in the payload
336
+
337
+ ---
338
+
339
+ **REQUIRED_FORM_STATUS**
340
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS > REQUIRED_FORM_RESPONSE | type: leaf`
341
+
342
+ - $.message.order.items[*].xinput.form_response.status must be present in the payload
343
+
344
+ **REQUIRED_FORM_SUBMISSION_ID**
345
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS > REQUIRED_FORM_RESPONSE | type: leaf`
346
+
347
+ - $.message.order.items[*].xinput.form_response.submission_id must be present in the payload
348
+
349
+ **REQUIRED_SUBMISSION_ID**
350
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
351
+
352
+ - $.message.order.items[*].xinput.form_response.submission_id must be present in the payload
353
+
354
+ > **Skip if:**
355
+ > - $.message.order.items[*].xinput.form_response.submission_id is not in the payload
356
+
357
+ ##### VALID_XINPUT_FIELDS
358
+
359
+ This is a group of **1** sub-validation(s) that all must pass: VALID_FORM_HEADINGS.
360
+
361
+ ---
362
+
363
+ **VALID_FORM_HEADINGS**
364
+ `group: ON_INIT_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > VALID_XINPUT_FIELDS | type: leaf`
365
+
366
+ - All elements of $.message.order.items[*].xinput.head.headings[*] must be in ["KYC", "EMANDATE", "LOAN_AGREEMENT", "INDIVIDUAL_KYC", "ENTITY_KYC", "ENACH", "ESIGN"]
367
+
368
+ > **Skip if:**
369
+ > - $.message.order.items[*].xinput.form_response.submission_id is in the payload
370
+
371
+ ---
372
+
373
+ ## ON_SELECT_ITEM_TAGS
374
+
375
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_LOAN_INFO and REQUIRED_LOAN_OFFER.
376
+
377
+ > **Skip if:**
378
+ > **All of the following must be true:**
379
+ > - $.message.order.items[*].tags[*].descriptor.code must **not** be present in the payload
380
+ > - Not all elements of $.message.order.items[*].tags[*].descriptor.code may be in ["LOAN_INFO", "LOAN_OFFER"]
381
+
382
+ ---
383
+
384
+ **REQUIRED_LOAN_INFO**
385
+ `group: ON_SELECT_ITEM_TAGS | type: leaf | scope: $.message.order.items[*].tags[?(@.descriptor.code == LOAN_INFO)]`
386
+
387
+ - All elements of $.message.order.items[*].tags[?(@.descriptor.code == LOAN_INFO)].list[*].descriptor.code must be in ["INTEREST_RATE", "TERM", "INTEREST_RATE_TYPE", "APPLICATION_FEE", "FORECLOSURE_FEE", "INTEREST_RATE_CONVERSION_CHARGE", "DELAY_PENALTY_FEE", "OTHER_PENALTY_FEE", "ANNUAL_PERCENTAGE_RATE", "REPAYMENT_FREQUENCY", "NUMBER_OF_INSTALLMENTS", "TNC_LINK", "COOL_OFF_PERIOD", "INSTALLMENT_AMOUNT", "KFS_LINK", "INVOICE_NUMBER", "WORKING_CAPITAL_LIMIT", "INSURANCE_CHARGES", "RATE_ANNUALISED_PENAL_CHARGES", "KYC_MODE", "CO_APPLICANT"]
388
+
389
+ **REQUIRED_LOAN_OFFER**
390
+ `group: ON_SELECT_ITEM_TAGS | type: leaf | scope: $.message.order.items[*].tags[?(@.descriptor.code == LOAN_OFFER)]`
391
+
392
+ - All elements of $.message.order.items[*].tags[?(@.descriptor.code == LOAN_OFFER)].list[*].descriptor.code must be in ["PRINCIPAL_AMOUNT", "INTEREST_AMOUNT", "PROCESSING_FEE", "OTHER_UPFRONT_CHARGES", "INSURANCE_CHARGES", "NET_DISBURSED_AMOUNT", "OTHER_CHARGES", "OFFER_VALIDITY", "WORKING_CAPITAL_LIMIT", "CURRENT_UTLIZATION"]
393
+
394
+ ---
395
+
396
+ ## ON_INIT_FULFILLMENTS
397
+
398
+ This group contains **3** sub-group(s)/validation(s): REQUIRED_FULFILLMENT_ITEMS, VALID_FULFILLMENT_ITEMS, and VALID_FULFILLMENT_TAGS.
399
+
400
+ ---
401
+
402
+ ### REQUIRED_FULFILLMENT_ITEMS
403
+
404
+ This group contains **7** sub-group(s)/validation(s): REQUIRED_FULFILLMENT_ID, REQUIRED_FULFILLMENT_TYPE, REQUIRED_CREDS, REQUIRED_CUSTOMER_NAME, REQUIRED_CUSTOMER_CONTACT_DETAILS, REQUIRED_CUSTOMER_ORG_DETAILS, and REQUIRED_FULFILLMENT_STATE_CODE.
405
+
406
+ ---
407
+
408
+ **REQUIRED_FULFILLMENT_ID**
409
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
410
+
411
+ - $.message.order.fulfillments[*].id must be present in the payload
412
+
413
+ **REQUIRED_FULFILLMENT_TYPE**
414
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
415
+
416
+ - $.message.order.fulfillments[*].type must be present in the payload
417
+
418
+ #### REQUIRED_CREDS
419
+
420
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_CUSTOMER_CREDS_ID and REQUIRED_CUSTOMER_CREDS_TYPE.
421
+
422
+ > **Skip if:**
423
+ > - $.message.order.fulfillments[*].customer.person.creds[*].id must **not** be present in the payload
424
+
425
+ ---
426
+
427
+ **REQUIRED_CUSTOMER_CREDS_ID**
428
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CREDS | type: leaf`
429
+
430
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.person.creds[*].id must be present in the payload
431
+
432
+ **REQUIRED_CUSTOMER_CREDS_TYPE**
433
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CREDS | type: leaf`
434
+
435
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.person.creds[*].id must be present in the payload
436
+
437
+ **REQUIRED_CUSTOMER_NAME**
438
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
439
+
440
+ - $.message.order.fulfillments[*].customer.person.name must be present in the payload
441
+
442
+ > **Skip if:**
443
+ > - $.message.order.fulfillments[*].customer.person.name is not in the payload
444
+
445
+ #### REQUIRED_CUSTOMER_CONTACT_DETAILS
446
+
447
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_CUSTOMER_CONTACT_NUMBER and REQUIRED_CUSTOMER_CONTACT_EMAIL.
448
+
449
+ > **Skip if:**
450
+ > - $.message.order.fulfillments[*].customer.contact.phone must **not** be present in the payload
451
+
452
+ ---
453
+
454
+ **REQUIRED_CUSTOMER_CONTACT_NUMBER**
455
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_CONTACT_DETAILS | type: leaf`
456
+
457
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.contact.phone must be present in the payload
458
+
459
+ **REQUIRED_CUSTOMER_CONTACT_EMAIL**
460
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_CONTACT_DETAILS | type: leaf`
461
+
462
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.contact.phone must be present in the payload
463
+
464
+ #### REQUIRED_CUSTOMER_ORG_DETAILS
465
+
466
+ This is a group of **6** sub-validation(s) that all must pass: REQUIRED_ORG_ADDRESS, REQUIRED_ORG_STATE, REQUIRED_ORG_CITY, REQUIRED_ORG_CODE, REQUIRED_ORG_CONTACT_PHONE, and REQUIRED_ORG_CONTACT_EMAIL.
467
+
468
+ > **Skip if:**
469
+ > - $.message.order.fulfillments[*].customer.organization.address must **not** be present in the payload
470
+
471
+ ---
472
+
473
+ **REQUIRED_ORG_ADDRESS**
474
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
475
+
476
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
477
+
478
+ **REQUIRED_ORG_STATE**
479
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
480
+
481
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
482
+
483
+ **REQUIRED_ORG_CITY**
484
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
485
+
486
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
487
+
488
+ **REQUIRED_ORG_CODE**
489
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
490
+
491
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
492
+
493
+ **REQUIRED_ORG_CONTACT_PHONE**
494
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
495
+
496
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
497
+
498
+ **REQUIRED_ORG_CONTACT_EMAIL**
499
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
500
+
501
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
502
+
503
+ **REQUIRED_FULFILLMENT_STATE_CODE**
504
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
505
+
506
+ - $.message.order.fulfillments[*].state.descriptor.code must be present in the payload
507
+
508
+ ### VALID_FULFILLMENT_ITEMS
509
+
510
+ This is a group of **2** sub-validation(s) that all must pass: VALID_FULFILLMENT_TYPE and VALID_FULFILLMENT_STATE_CODE.
511
+
512
+ ---
513
+
514
+ **VALID_FULFILLMENT_TYPE**
515
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_ITEMS | type: leaf`
516
+
517
+ - All elements of $.message.order.fulfillments[*].type must be in ["ONLINE", "SEMI_ONLINE"]
518
+
519
+ > **Skip if:**
520
+ > - $.message.order.fulfillments[*].type is not in the payload
521
+
522
+ **VALID_FULFILLMENT_STATE_CODE**
523
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_ITEMS | type: leaf`
524
+
525
+ - All elements of $.message.order.fulfillments[*].state.descriptor.code must be in ["INITIATED", "SANCTIONED", "DISBURSED"]
526
+
527
+ > **Skip if:**
528
+ > - $.message.order.fulfillments[*].state.descriptor.code is not in the payload
529
+
530
+ ### VALID_FULFILLMENT_TAGS
531
+
532
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_FULFILLMENT_TAGS and REQUIRED_CHECKLISTS_ITEM.
533
+
534
+ ---
535
+
536
+ **REQUIRED_FULFILLMENT_TAGS**
537
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_TAGS | type: leaf`
538
+
539
+ - All elements of $.message.order.fulfillments[*].tags[*].descriptor.code must be in ["CHECKLISTS"]
540
+
541
+ > **Skip if:**
542
+ > - $.message.order.fulfillments[*].tags[*].descriptor.code is not in the payload
543
+
544
+ **REQUIRED_CHECKLISTS_ITEM**
545
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_TAGS | type: leaf | scope: $.message.order.fulfillments[*].tags[?(@.descriptor.code == CHECKLISTS)]`
546
+
547
+ - All elements of $.message.order.fulfillments[*].tags[?(@.descriptor.code == CHECKLISTS)].list[*].descriptor.code must be in ["PERSONAL_INFORMATION", "CONSENT_APPROVAL", "SET_LOAN_AMOUNT", "KYC", "KYC_OFFLINE", "EMANDATE", "LOAN_AGREEMENT", "ACCOUNT_MONITORING", "ORGANIZATION_INFORMATION", "INDIVIDUAL_KYC", "ENTITY_KYC", "MERCHANT_AND_PRDOUCT_DETAILS", "SET_DOWN_PAYMENT", "ESIGN", "BANK_STATEMENT_AND_GST_RETURNS", "BUSINESS_AND_FINANCIAL_DOCUMENTS", "BUSINESS_KYC", "PERSONAL_DISCUSSION", "PHYSICAL_VERIFICATION", "ENACH", "PROCESSING_FEE", "MANUAL_VERIFICATION", "LIEN_MARKING", "PERSONAL_INFORMATION_TERM", "PERSONAL_INFORMATION_LAMF", "PERSONAL_INFORMATION_TERM_GST"]
548
+
549
+ ---
550
+
551
+ ## ON_SELECT_QUOTE
552
+
553
+ This group contains **2** sub-group(s)/validation(s): REQUIRED_COMMON_QUOTE_ITEMS and VALID_COMMON_QUOTE_ITEMS.
554
+
555
+ > **Skip if:**
556
+ > - $.message.order.quote.id must **not** be present in the payload
557
+
558
+ ---
559
+
560
+ ### REQUIRED_COMMON_QUOTE_ITEMS
561
+
562
+ This is a group of **7** sub-validation(s) that all must pass: REQUIRED_QUOTE_ID, REQUIRED_QUOTE_PRICE_VALUE, REQUIRED_QUOTE_PRICE_CURRENCY, REQUIRED_BREAKUP_TITLE, REQUIRED_BREAKUP_PRICE_VALUE, REQUIRED_BREAKUP_PRICE_CURRENCY, and REQUIRED_QUOTE_TTL.
563
+
564
+ ---
565
+
566
+ **REQUIRED_QUOTE_ID**
567
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
568
+
569
+ - $.message.order.quote.id must be present in the payload
570
+
571
+ **REQUIRED_QUOTE_PRICE_VALUE**
572
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
573
+
574
+ - $.message.order.quote.price.value must be present in the payload
575
+
576
+ **REQUIRED_QUOTE_PRICE_CURRENCY**
577
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
578
+
579
+ - $.message.order.quote.price.currency must be present in the payload
580
+
581
+ **REQUIRED_BREAKUP_TITLE**
582
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
583
+
584
+ - $.message.order.quote.breakup[*].title must be present in the payload
585
+
586
+ **REQUIRED_BREAKUP_PRICE_VALUE**
587
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
588
+
589
+ - $.message.order.quote.breakup[*].price.value must be present in the payload
590
+
591
+ **REQUIRED_BREAKUP_PRICE_CURRENCY**
592
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
593
+
594
+ - $.message.order.quote.breakup[*].price.currency must be present in the payload
595
+
596
+ **REQUIRED_QUOTE_TTL**
597
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
598
+
599
+ - $.message.order.quote.ttl must be present in the payload
600
+
601
+ ### VALID_COMMON_QUOTE_ITEMS
602
+
603
+ This is a group of **2** sub-validation(s) that all must pass: VALID_ENUM_BREAKUP_PRICE_CURRENCY and VALID_ENUM_BREAKUP_TITLE.
604
+
605
+ ---
606
+
607
+ **VALID_ENUM_BREAKUP_PRICE_CURRENCY**
608
+ `group: ON_SELECT_QUOTE > VALID_COMMON_QUOTE_ITEMS | type: leaf`
609
+
610
+ - At least one of $.message.order.quote.breakup[*].price.currency must be in ["INR"]
611
+
612
+ **VALID_ENUM_BREAKUP_TITLE**
613
+ `group: ON_SELECT_QUOTE > VALID_COMMON_QUOTE_ITEMS | type: leaf`
614
+
615
+ - At least one of $.message.order.quote.breakup[*].title must be in ["PRINCIPAL_AMOUNT", "INTEREST_AMOUNT", "PROCESSING_FEE", "OTHER_UPFRONT_CHARGES", "INSURANCE_CHARGES", "NET_DISBURSED_AMOUNT", "OTHER_CHARGES", "WORKING_CAPITAL_LIMIT", "CURRENT_UTLIZATION"]
616
+
617
+ ---
618
+
619
+ ## ON_INIT_PAYMENTS
620
+
621
+ This group contains **1** sub-group(s)/validation(s): REQUIRED_PAYMENT_ITEMS.
622
+
623
+ ---
624
+
625
+ ### REQUIRED_PAYMENT_ITEMS
626
+
627
+ This group contains **10** sub-group(s)/validation(s): REQUIRED_PAYMENT_ITEMS, REQUIRED_PAYMENT_ID, REQUIRED_PAYMENT_STATUS, REQUIRED_PAYMENT_COLLECTED_BY, REQUIRED_PAYMENT_BANK_ACCOUNT_NUMBER, REQUIRED_PAYMENT_BANK_CODE, REQUIRED_PAYMENT_LABEL, REQUIRED_PARAMS_DETAILS, REQUIRED_PAYMENT_URL, and REQUIRED_TIME_RANGE.
628
+
629
+ ---
630
+
631
+ **REQUIRED_PAYMENT_ITEMS**
632
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
633
+
634
+ - $.message.order.payments[*].type must be present in the payload
635
+
636
+ **REQUIRED_PAYMENT_ID**
637
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
638
+
639
+ - $.message.order.payments[*].id must be present in the payload
640
+
641
+ **REQUIRED_PAYMENT_STATUS**
642
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
643
+
644
+ - $.message.order.payments[*].status must be present in the payload
645
+
646
+ **REQUIRED_PAYMENT_COLLECTED_BY**
647
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
648
+
649
+ - $.message.order.payments[*].collected_by must be present in the payload
650
+
651
+ > **Skip if:**
652
+ > - not all elements of $.message.order.payments[*].time.label are in ["LOAN_DISBURSMENT"]
653
+
654
+ **REQUIRED_PAYMENT_BANK_ACCOUNT_NUMBER**
655
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
656
+
657
+ - $.message.order.payments[*].params.bank_account_number must be present in the payload
658
+
659
+ > **Skip if:**
660
+ > - not all elements of $.message.order.payments[*].time.label are in ["LOAN_DISBURSMENT"]
661
+
662
+ **REQUIRED_PAYMENT_BANK_CODE**
663
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
664
+
665
+ - $.message.order.payments[*].params.bank_code must be present in the payload
666
+
667
+ > **Skip if:**
668
+ > - not all elements of $.message.order.payments[*].time.label are in ["LOAN_DISBURSMENT"]
669
+
670
+ **REQUIRED_PAYMENT_LABEL**
671
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
672
+
673
+ - $.message.order.payments[*].time.label must be present in the payload
674
+
675
+ #### REQUIRED_PARAMS_DETAILS
676
+
677
+ This is a group of **3** sub-validation(s) that all must pass: REQUIRED_TRANSACTION_ID, REQUIRED_PAYMENTS_AMOUNT, and REQUIRED_PAYMENTS_CURRENCY.
678
+
679
+ > **Skip if:**
680
+ > - Not all elements of $.message.order.payments[*].status may be in ["PAID"]
681
+
682
+ ---
683
+
684
+ **REQUIRED_TRANSACTION_ID**
685
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PARAMS_DETAILS | type: leaf`
686
+
687
+ - $.message.order.payments[*].params.transaction_id must be present in the payload
688
+
689
+ **REQUIRED_PAYMENTS_AMOUNT**
690
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PARAMS_DETAILS | type: leaf`
691
+
692
+ - $.message.order.payments[*].params.amount must be present in the payload
693
+
694
+ **REQUIRED_PAYMENTS_CURRENCY**
695
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PARAMS_DETAILS | type: leaf`
696
+
697
+ - $.message.order.payments[*].params.currency must be present in the payload
698
+
699
+ #### REQUIRED_PAYMENT_URL
700
+
701
+ This is a group of **1** sub-validation(s) that all must pass: REQUIRED_TIME_DURATION.
702
+
703
+ > **Skip if:**
704
+ > - $.message.order.payments[*].url must **not** be present in the payload
705
+
706
+ ---
707
+
708
+ **REQUIRED_TIME_DURATION**
709
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PAYMENT_URL | type: leaf`
710
+
711
+ - $.message.order.payments[*].time.duration must be present in the payload
712
+
713
+ #### REQUIRED_TIME_RANGE
714
+
715
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_TIME_START_RANGE and REQUIRED_TIME_END_RANGE.
716
+
717
+ > **Skip if:**
718
+ > - Not all elements of $.message.order.payments[*].time.label may be in ["INSTALLMENT"]
719
+
720
+ ---
721
+
722
+ **REQUIRED_TIME_START_RANGE**
723
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_TIME_RANGE | type: leaf`
724
+
725
+ - $.message.order.payments[*].time.range.start must be present in the payload
726
+
727
+ **REQUIRED_TIME_END_RANGE**
728
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_TIME_RANGE | type: leaf`
729
+
730
+ - $.message.order.payments[*].time.range.end must be present in the payload
731
+
732
+ ---
733
+
734
+ ## ON_INIT_PAYMENT_TAGS
735
+
736
+ This is a group of **3** sub-validation(s) that all must pass: VALID_PAYMENT_TAGS, REQUIRED_ACCOUNT_DETAILS, and REQUIRED_BREAKUP_DETAILS.
737
+
738
+ ---
739
+
740
+ **VALID_PAYMENT_TAGS**
741
+ `group: ON_INIT_PAYMENT_TAGS | type: leaf`
742
+
743
+ - All elements of $.message.order.payments[*].tags[*].descriptor.code must be in ["ACCOUNT_DETAILS", "BREAKUP"]
744
+
745
+ > **Skip if:**
746
+ > - $.message.order.payments[*].tags[*].descriptor.code is not in the payload
747
+
748
+ **REQUIRED_ACCOUNT_DETAILS**
749
+ `group: ON_INIT_PAYMENT_TAGS | type: leaf | scope: $.message.order.payments[*].tags[?(@.descriptor.code == ACCOUNT_DETAILS)]`
750
+
751
+ - All elements of $.message.order.payments[*].tags[?(@.descriptor.code == ACCOUNT_DETAILS)].list[*].descriptor.code must be in ["ACCOUNT_TYPE", "ACCOUNT_HOLDER_NAME"]
752
+
753
+ **REQUIRED_BREAKUP_DETAILS**
754
+ `group: ON_INIT_PAYMENT_TAGS | type: leaf | scope: $.message.order.payments[*].tags[?(@.descriptor.code == BREAKUP)]`
755
+
756
+ - All elements of $.message.order.payments[*].tags[?(@.descriptor.code == BREAKUP)].list[*].descriptor.code must be in ["PRINCIPAL_AMOUNT", "INTEREST_AMOUNT"]
757
+
758
+ ---
759
+
760
+ ## ON_INIT_CANCELLATION_TERMS
761
+
762
+ This group contains **2** sub-group(s)/validation(s): EXTERNAL_REF_TERMS and FULFILLMENT_STATE_TERMS.
763
+
764
+ ---
765
+
766
+ ### EXTERNAL_REF_TERMS
767
+
768
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_EXTERNAL_REF_MIME_TYPE and REQUIRED_EXTERNAL_REF_URL.
769
+
770
+ > **Skip if:**
771
+ > - $.message.order.cancellation_terms[*].external_ref.mimetype must **not** be present in the payload
772
+
773
+ ---
774
+
775
+ **REQUIRED_EXTERNAL_REF_MIME_TYPE**
776
+ `group: ON_INIT_CANCELLATION_TERMS > EXTERNAL_REF_TERMS | type: leaf`
777
+
778
+ - $.message.order.cancellation_terms[*].external_ref.mimetype must be present in the payload
779
+
780
+ **REQUIRED_EXTERNAL_REF_URL**
781
+ `group: ON_INIT_CANCELLATION_TERMS > EXTERNAL_REF_TERMS | type: leaf`
782
+
783
+ - $.message.order.cancellation_terms[*].external_ref.url must be present in the payload
784
+
785
+ ### FULFILLMENT_STATE_TERMS
786
+
787
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_FULFILLMENT_STATE_CODE and REQUIRED_CANCELLATION_FEE.
788
+
789
+ > **Skip if:**
790
+ > - $.message.order.cancellation_terms[*].fulfillment_state.descriptor.code must **not** be present in the payload
791
+
792
+ ---
793
+
794
+ **REQUIRED_FULFILLMENT_STATE_CODE**
795
+ `group: ON_INIT_CANCELLATION_TERMS > FULFILLMENT_STATE_TERMS | type: leaf`
796
+
797
+ - $.message.order.cancellation_terms[*].fulfillment_state.descriptor.code must be present in the payload
798
+
799
+ **REQUIRED_CANCELLATION_FEE**
800
+ `group: ON_INIT_CANCELLATION_TERMS > FULFILLMENT_STATE_TERMS | type: leaf`
801
+
802
+ - $.message.order.cancellation_terms[*].cancellation_fee.percentage must be present in the payload
803
+
804
+ ---
805
+
806
+ ## ON_INIT_TAGS
807
+
808
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_PAYMENT_TAGS and REQUIRED_BPP_TERMS.
809
+
810
+ ---
811
+
812
+ **REQUIRED_PAYMENT_TAGS**
813
+ `group: ON_INIT_TAGS | type: leaf`
814
+
815
+ - All elements of $.message.order.tags[*].descriptor.code must be in ["BAP_TERMS", "BPP_TERMS"]
816
+
817
+ > **Skip if:**
818
+ > - $.message.order.tags[*].descriptor.code is not in the payload
819
+
820
+ **REQUIRED_BPP_TERMS**
821
+ `group: ON_INIT_TAGS | type: leaf | scope: $.message.order.tags[?(@.descriptor.code == BPP_TERMS)]`
822
+
823
+ - All elements of $.message.order.tags[?(@.descriptor.code == BPP_TERMS)].list[*].descriptor.code must be in ["STATIC_TERMS", "OFFLINE_CONTRACT"]