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,854 @@
1
+ ---
2
+ action: on_status
3
+ codeName: L1validations
4
+ numTests: 101
5
+ generated: 2026-03-10
6
+ domain: ONDC:FIS12
7
+ version: 2.3.0
8
+ ---
9
+
10
+ # L1validations — `on_status` Validations
11
+
12
+ These are the validation rules applied when processing the `on_status` API call in the L1validations flow.
13
+ There are **101** validation rules organized into **13** top-level group(s).
14
+
15
+ ---
16
+ ## ON_STATUS_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_STATUS_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_STATUS_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_STATUS_CONTEXT > CONTEXT_REQUIRED | type: leaf`
40
+
41
+ - $.context.domain must be present in the payload
42
+
43
+ **REQUIRED_CONTEXT_TIMESTAMP**
44
+ `group: ON_STATUS_CONTEXT > CONTEXT_REQUIRED | type: leaf`
45
+
46
+ - $.context.timestamp must be present in the payload
47
+
48
+ **REQUIRED_CONTEXT_BAP_ID**
49
+ `group: ON_STATUS_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_STATUS_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_STATUS_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_STATUS_CONTEXT > CONTEXT_REQUIRED | type: leaf`
65
+
66
+ - $.context.message_id must be present in the payload
67
+
68
+ **REQUIRED_CONTEXT_VERSION**
69
+ `group: ON_STATUS_CONTEXT > CONTEXT_REQUIRED | type: leaf`
70
+
71
+ - $.context.version must be present in the payload
72
+
73
+ **REQUIRED_CONTEXT_TTL**
74
+ `group: ON_STATUS_CONTEXT > CONTEXT_REQUIRED | type: leaf`
75
+
76
+ - $.context.ttl must be present in the payload
77
+
78
+ **REQUIRED_CONTEXT_BPP_ID**
79
+ `group: ON_STATUS_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_STATUS_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_STATUS_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_STATUS_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_STATUS_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_STATUS_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_STATUS_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_STATUS_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_STATUS_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_STATUS_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_STATUS_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
+ ## REQUIRED_ORDER_ITEMS
175
+
176
+ This is a group of **5** sub-validation(s) that all must pass: REQUIRED_ORDER_ID, REQUIRED_ORDER_STATUS, REQUIRED_ORDER_CREATED_AT, REQUIRED_ORDER_UPDATED_AT, and CREATED_AT_UPDATED_AT_EQUALITY.
177
+
178
+ > **Skip if:**
179
+ > - $.message.order.id must **not** be present in the payload
180
+
181
+ ---
182
+
183
+ **REQUIRED_ORDER_ID**
184
+ `group: REQUIRED_ORDER_ITEMS | type: leaf`
185
+
186
+ - $.message.order.id must be present in the payload
187
+
188
+ **REQUIRED_ORDER_STATUS**
189
+ `group: REQUIRED_ORDER_ITEMS | type: leaf`
190
+
191
+ - $.message.order.status must be present in the payload
192
+
193
+ **REQUIRED_ORDER_CREATED_AT**
194
+ `group: REQUIRED_ORDER_ITEMS | type: leaf`
195
+
196
+ - $.message.order.created_at must be present in the payload
197
+
198
+ **REQUIRED_ORDER_UPDATED_AT**
199
+ `group: REQUIRED_ORDER_ITEMS | type: leaf`
200
+
201
+ - $.message.order.created_at must be present in the payload
202
+
203
+ **CREATED_AT_UPDATED_AT_EQUALITY**
204
+ `group: REQUIRED_ORDER_ITEMS | type: leaf`
205
+
206
+ - $.message.order.created_at must equal $.message.order.updated_at
207
+
208
+ ---
209
+
210
+ ## ON_SELECT_PROVIDER
211
+
212
+ 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.
213
+
214
+ > **Skip if:**
215
+ > - $.message.order.provider.id must **not** be present in the payload
216
+
217
+ ---
218
+
219
+ **ON_SELECT_PROVIDER_ID**
220
+ `group: ON_SELECT_PROVIDER | type: leaf`
221
+
222
+ - $.message.order.provider.id must be present in the payload
223
+
224
+ **ON_SELECT_PROVIDER_NAME**
225
+ `group: ON_SELECT_PROVIDER | type: leaf`
226
+
227
+ - $.message.order.provider.descriptor.name must be present in the payload
228
+
229
+ **ON_SELECT_PROVIDER_IMAGES_URL**
230
+ `group: ON_SELECT_PROVIDER | type: leaf`
231
+
232
+ - $.message.order.provider.descriptor.images[*].url must be present in the payload
233
+
234
+ **ON_SELECT_PROVIDER_IMAGES_SIZE_TYPE**
235
+ `group: ON_SELECT_PROVIDER | type: leaf`
236
+
237
+ - $.message.order.provider.descriptor.images[*].size_type must be present in the payload
238
+
239
+ ---
240
+
241
+ ## ON_SELECT_PROVIDER_TAGS
242
+
243
+ This is a group of **3** sub-validation(s) that all must pass: VALID_PROVODER_TAGS, REQUIRED_CONTACT_INFO, and REQUIRED_LSP_INFO.
244
+
245
+ ---
246
+
247
+ **VALID_PROVODER_TAGS**
248
+ `group: ON_SELECT_PROVIDER_TAGS | type: leaf`
249
+
250
+ - All elements of $.message.order.provider.tags[*].descriptor.code must be in ["CONTACT_INFO", "LSP_INFO"]
251
+
252
+ > **Skip if:**
253
+ > - $.message.order.provider.tags[*].descriptor.code is not in the payload
254
+
255
+ **REQUIRED_CONTACT_INFO**
256
+ `group: ON_SELECT_PROVIDER_TAGS | type: leaf | scope: $.message.order.provider.tags[?(@.descriptor.code == CONTACT_INFO)]`
257
+
258
+ - 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"]
259
+
260
+ **REQUIRED_LSP_INFO**
261
+ `group: ON_SELECT_PROVIDER_TAGS | type: leaf | scope: $.message.order.provider.tags[?(@.descriptor.code == LSP_INFO)]`
262
+
263
+ - 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"]
264
+
265
+ ---
266
+
267
+ ## ON_STATUS_ITEMS
268
+
269
+ This group contains **1** sub-group(s)/validation(s): REQUIRED_ITEMS.
270
+
271
+ ---
272
+
273
+ ### REQUIRED_ITEMS
274
+
275
+ 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.
276
+
277
+ ---
278
+
279
+ **REQUIRED_ITEM_ID**
280
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS | type: leaf`
281
+
282
+ - $.message.order.items[*].id must be present in the payload
283
+
284
+ **REQUIRED_PARENT_ITEM_ID**
285
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS | type: leaf`
286
+
287
+ - $.message.order.items[*].parent_item_id must be present in the payload
288
+
289
+ **REQUIRED_ITEM_DESCRIPTOR_CODE**
290
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS | type: leaf`
291
+
292
+ - $.message.order.items[*].descriptor.code must be present in the payload
293
+
294
+ **REQUIRED_ITEM_CATEGORY_ID**
295
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS | type: leaf`
296
+
297
+ - $.message.order.items[*].category_ids[*] must be present in the payload
298
+
299
+ **ON_SEARCH_ITEM_PRICE_CURRENCY**
300
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS | type: leaf`
301
+
302
+ - $.message.order.items[*].price.currency must be present in the payload
303
+
304
+ **ON_SEARCH_ITEM_PRICE_VALUE**
305
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS | type: leaf`
306
+
307
+ - $.message.order.items[*].price.value must be present in the payload
308
+
309
+ **ON_SELECT_ITEM_FULFILLMENT_IDS**
310
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS | type: leaf`
311
+
312
+ - $.message.order.items[*].fulfillment_ids[*] must be present in the payload
313
+
314
+ #### REQUIRED_XINPUT_FIELDS
315
+
316
+ This group contains **1** sub-group(s)/validation(s): REQUIRED_XINPUT_ITEMS.
317
+
318
+ > **Skip if:**
319
+ > - $.message.order.items[*].xinput.form_response.submission_id must **not** be present in the payload
320
+
321
+ ---
322
+
323
+ ##### REQUIRED_XINPUT_ITEMS
324
+
325
+ This group contains **3** sub-group(s)/validation(s): REQUIRED_FORM_ID, REQUIRED_FORM_RESPONSE, and REQUIRED_SUBMISSION_ID.
326
+
327
+ ---
328
+
329
+ **REQUIRED_FORM_ID**
330
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
331
+
332
+ - $.message.order.items[*].xinput.form.id must be present in the payload
333
+
334
+ ###### REQUIRED_FORM_RESPONSE
335
+
336
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_FORM_STATUS and REQUIRED_FORM_SUBMISSION_ID.
337
+
338
+ > **Skip if:**
339
+ > - $.message.order.items[*].xinput.form_response.submission_id must **not** be present in the payload
340
+
341
+ ---
342
+
343
+ **REQUIRED_FORM_STATUS**
344
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS > REQUIRED_FORM_RESPONSE | type: leaf`
345
+
346
+ - $.message.order.items[*].xinput.form_response.status must be present in the payload
347
+
348
+ **REQUIRED_FORM_SUBMISSION_ID**
349
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS > REQUIRED_FORM_RESPONSE | type: leaf`
350
+
351
+ - $.message.order.items[*].xinput.form_response.submission_id must be present in the payload
352
+
353
+ **REQUIRED_SUBMISSION_ID**
354
+ `group: ON_STATUS_ITEMS > REQUIRED_ITEMS > REQUIRED_XINPUT_FIELDS > REQUIRED_XINPUT_ITEMS | type: leaf`
355
+
356
+ - $.message.order.items[*].xinput.form_response.submission_id must be present in the payload
357
+
358
+ > **Skip if:**
359
+ > - $.message.order.items[*].xinput.form_response.submission_id is not in the payload
360
+
361
+ ---
362
+
363
+ ## ON_SELECT_ITEM_TAGS
364
+
365
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_LOAN_INFO and REQUIRED_LOAN_OFFER.
366
+
367
+ > **Skip if:**
368
+ > **All of the following must be true:**
369
+ > - $.message.order.items[*].tags[*].descriptor.code must **not** be present in the payload
370
+ > - Not all elements of $.message.order.items[*].tags[*].descriptor.code may be in ["LOAN_INFO", "LOAN_OFFER"]
371
+
372
+ ---
373
+
374
+ **REQUIRED_LOAN_INFO**
375
+ `group: ON_SELECT_ITEM_TAGS | type: leaf | scope: $.message.order.items[*].tags[?(@.descriptor.code == LOAN_INFO)]`
376
+
377
+ - 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"]
378
+
379
+ **REQUIRED_LOAN_OFFER**
380
+ `group: ON_SELECT_ITEM_TAGS | type: leaf | scope: $.message.order.items[*].tags[?(@.descriptor.code == LOAN_OFFER)]`
381
+
382
+ - 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"]
383
+
384
+ ---
385
+
386
+ ## ON_INIT_FULFILLMENTS
387
+
388
+ This group contains **3** sub-group(s)/validation(s): REQUIRED_FULFILLMENT_ITEMS, VALID_FULFILLMENT_ITEMS, and VALID_FULFILLMENT_TAGS.
389
+
390
+ ---
391
+
392
+ ### REQUIRED_FULFILLMENT_ITEMS
393
+
394
+ 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.
395
+
396
+ ---
397
+
398
+ **REQUIRED_FULFILLMENT_ID**
399
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
400
+
401
+ - $.message.order.fulfillments[*].id must be present in the payload
402
+
403
+ **REQUIRED_FULFILLMENT_TYPE**
404
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
405
+
406
+ - $.message.order.fulfillments[*].type must be present in the payload
407
+
408
+ #### REQUIRED_CREDS
409
+
410
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_CUSTOMER_CREDS_ID and REQUIRED_CUSTOMER_CREDS_TYPE.
411
+
412
+ > **Skip if:**
413
+ > - $.message.order.fulfillments[*].customer.person.creds[*].id must **not** be present in the payload
414
+
415
+ ---
416
+
417
+ **REQUIRED_CUSTOMER_CREDS_ID**
418
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CREDS | type: leaf`
419
+
420
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.person.creds[*].id must be present in the payload
421
+
422
+ **REQUIRED_CUSTOMER_CREDS_TYPE**
423
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CREDS | type: leaf`
424
+
425
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.person.creds[*].id must be present in the payload
426
+
427
+ **REQUIRED_CUSTOMER_NAME**
428
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
429
+
430
+ - $.message.order.fulfillments[*].customer.person.name must be present in the payload
431
+
432
+ > **Skip if:**
433
+ > - $.message.order.fulfillments[*].customer.person.name is not in the payload
434
+
435
+ #### REQUIRED_CUSTOMER_CONTACT_DETAILS
436
+
437
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_CUSTOMER_CONTACT_NUMBER and REQUIRED_CUSTOMER_CONTACT_EMAIL.
438
+
439
+ > **Skip if:**
440
+ > - $.message.order.fulfillments[*].customer.contact.phone must **not** be present in the payload
441
+
442
+ ---
443
+
444
+ **REQUIRED_CUSTOMER_CONTACT_NUMBER**
445
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_CONTACT_DETAILS | type: leaf`
446
+
447
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.contact.phone must be present in the payload
448
+
449
+ **REQUIRED_CUSTOMER_CONTACT_EMAIL**
450
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_CONTACT_DETAILS | type: leaf`
451
+
452
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.contact.phone must be present in the payload
453
+
454
+ #### REQUIRED_CUSTOMER_ORG_DETAILS
455
+
456
+ 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.
457
+
458
+ > **Skip if:**
459
+ > - $.message.order.fulfillments[*].customer.organization.address must **not** be present in the payload
460
+
461
+ ---
462
+
463
+ **REQUIRED_ORG_ADDRESS**
464
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
465
+
466
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
467
+
468
+ **REQUIRED_ORG_STATE**
469
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS > REQUIRED_CUSTOMER_ORG_DETAILS | type: leaf`
470
+
471
+ - $._EXTERNAL._SELF.message.order.fulfillments[*].customer.organization.address must be present in the payload
472
+
473
+ **REQUIRED_ORG_CITY**
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_CODE**
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_CONTACT_PHONE**
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_CONTACT_EMAIL**
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_FULFILLMENT_STATE_CODE**
494
+ `group: ON_INIT_FULFILLMENTS > REQUIRED_FULFILLMENT_ITEMS | type: leaf`
495
+
496
+ - $.message.order.fulfillments[*].state.descriptor.code must be present in the payload
497
+
498
+ ### VALID_FULFILLMENT_ITEMS
499
+
500
+ This is a group of **2** sub-validation(s) that all must pass: VALID_FULFILLMENT_TYPE and VALID_FULFILLMENT_STATE_CODE.
501
+
502
+ ---
503
+
504
+ **VALID_FULFILLMENT_TYPE**
505
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_ITEMS | type: leaf`
506
+
507
+ - All elements of $.message.order.fulfillments[*].type must be in ["ONLINE", "SEMI_ONLINE"]
508
+
509
+ > **Skip if:**
510
+ > - $.message.order.fulfillments[*].type is not in the payload
511
+
512
+ **VALID_FULFILLMENT_STATE_CODE**
513
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_ITEMS | type: leaf`
514
+
515
+ - All elements of $.message.order.fulfillments[*].state.descriptor.code must be in ["INITIATED", "SANCTIONED", "DISBURSED"]
516
+
517
+ > **Skip if:**
518
+ > - $.message.order.fulfillments[*].state.descriptor.code is not in the payload
519
+
520
+ ### VALID_FULFILLMENT_TAGS
521
+
522
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_FULFILLMENT_TAGS and REQUIRED_CHECKLISTS_ITEM.
523
+
524
+ ---
525
+
526
+ **REQUIRED_FULFILLMENT_TAGS**
527
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_TAGS | type: leaf`
528
+
529
+ - All elements of $.message.order.fulfillments[*].tags[*].descriptor.code must be in ["CHECKLISTS"]
530
+
531
+ > **Skip if:**
532
+ > - $.message.order.fulfillments[*].tags[*].descriptor.code is not in the payload
533
+
534
+ **REQUIRED_CHECKLISTS_ITEM**
535
+ `group: ON_INIT_FULFILLMENTS > VALID_FULFILLMENT_TAGS | type: leaf | scope: $.message.order.fulfillments[*].tags[?(@.descriptor.code == CHECKLISTS)]`
536
+
537
+ - 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"]
538
+
539
+ ---
540
+
541
+ ## ON_SELECT_QUOTE
542
+
543
+ This group contains **2** sub-group(s)/validation(s): REQUIRED_COMMON_QUOTE_ITEMS and VALID_COMMON_QUOTE_ITEMS.
544
+
545
+ > **Skip if:**
546
+ > - $.message.order.quote.id must **not** be present in the payload
547
+
548
+ ---
549
+
550
+ ### REQUIRED_COMMON_QUOTE_ITEMS
551
+
552
+ 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.
553
+
554
+ ---
555
+
556
+ **REQUIRED_QUOTE_ID**
557
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
558
+
559
+ - $.message.order.quote.id must be present in the payload
560
+
561
+ **REQUIRED_QUOTE_PRICE_VALUE**
562
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
563
+
564
+ - $.message.order.quote.price.value must be present in the payload
565
+
566
+ **REQUIRED_QUOTE_PRICE_CURRENCY**
567
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
568
+
569
+ - $.message.order.quote.price.currency must be present in the payload
570
+
571
+ **REQUIRED_BREAKUP_TITLE**
572
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
573
+
574
+ - $.message.order.quote.breakup[*].title must be present in the payload
575
+
576
+ **REQUIRED_BREAKUP_PRICE_VALUE**
577
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
578
+
579
+ - $.message.order.quote.breakup[*].price.value must be present in the payload
580
+
581
+ **REQUIRED_BREAKUP_PRICE_CURRENCY**
582
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
583
+
584
+ - $.message.order.quote.breakup[*].price.currency must be present in the payload
585
+
586
+ **REQUIRED_QUOTE_TTL**
587
+ `group: ON_SELECT_QUOTE > REQUIRED_COMMON_QUOTE_ITEMS | type: leaf`
588
+
589
+ - $.message.order.quote.ttl must be present in the payload
590
+
591
+ ### VALID_COMMON_QUOTE_ITEMS
592
+
593
+ This is a group of **2** sub-validation(s) that all must pass: VALID_ENUM_BREAKUP_PRICE_CURRENCY and VALID_ENUM_BREAKUP_TITLE.
594
+
595
+ ---
596
+
597
+ **VALID_ENUM_BREAKUP_PRICE_CURRENCY**
598
+ `group: ON_SELECT_QUOTE > VALID_COMMON_QUOTE_ITEMS | type: leaf`
599
+
600
+ - At least one of $.message.order.quote.breakup[*].price.currency must be in ["INR"]
601
+
602
+ **VALID_ENUM_BREAKUP_TITLE**
603
+ `group: ON_SELECT_QUOTE > VALID_COMMON_QUOTE_ITEMS | type: leaf`
604
+
605
+ - 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"]
606
+
607
+ ---
608
+
609
+ ## ON_INIT_PAYMENTS
610
+
611
+ This group contains **1** sub-group(s)/validation(s): REQUIRED_PAYMENT_ITEMS.
612
+
613
+ ---
614
+
615
+ ### REQUIRED_PAYMENT_ITEMS
616
+
617
+ 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.
618
+
619
+ ---
620
+
621
+ **REQUIRED_PAYMENT_ITEMS**
622
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
623
+
624
+ - $.message.order.payments[*].type must be present in the payload
625
+
626
+ **REQUIRED_PAYMENT_ID**
627
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
628
+
629
+ - $.message.order.payments[*].id must be present in the payload
630
+
631
+ **REQUIRED_PAYMENT_STATUS**
632
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
633
+
634
+ - $.message.order.payments[*].status must be present in the payload
635
+
636
+ **REQUIRED_PAYMENT_COLLECTED_BY**
637
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
638
+
639
+ - $.message.order.payments[*].collected_by must be present in the payload
640
+
641
+ > **Skip if:**
642
+ > - not all elements of $.message.order.payments[*].time.label are in ["LOAN_DISBURSMENT"]
643
+
644
+ **REQUIRED_PAYMENT_BANK_ACCOUNT_NUMBER**
645
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
646
+
647
+ - $.message.order.payments[*].params.bank_account_number must be present in the payload
648
+
649
+ > **Skip if:**
650
+ > - not all elements of $.message.order.payments[*].time.label are in ["LOAN_DISBURSMENT"]
651
+
652
+ **REQUIRED_PAYMENT_BANK_CODE**
653
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
654
+
655
+ - $.message.order.payments[*].params.bank_code must be present in the payload
656
+
657
+ > **Skip if:**
658
+ > - not all elements of $.message.order.payments[*].time.label are in ["LOAN_DISBURSMENT"]
659
+
660
+ **REQUIRED_PAYMENT_LABEL**
661
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS | type: leaf`
662
+
663
+ - $.message.order.payments[*].time.label must be present in the payload
664
+
665
+ #### REQUIRED_PARAMS_DETAILS
666
+
667
+ This is a group of **3** sub-validation(s) that all must pass: REQUIRED_TRANSACTION_ID, REQUIRED_PAYMENTS_AMOUNT, and REQUIRED_PAYMENTS_CURRENCY.
668
+
669
+ > **Skip if:**
670
+ > - Not all elements of $.message.order.payments[*].status may be in ["PAID"]
671
+
672
+ ---
673
+
674
+ **REQUIRED_TRANSACTION_ID**
675
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PARAMS_DETAILS | type: leaf`
676
+
677
+ - $.message.order.payments[*].params.transaction_id must be present in the payload
678
+
679
+ **REQUIRED_PAYMENTS_AMOUNT**
680
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PARAMS_DETAILS | type: leaf`
681
+
682
+ - $.message.order.payments[*].params.amount must be present in the payload
683
+
684
+ **REQUIRED_PAYMENTS_CURRENCY**
685
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PARAMS_DETAILS | type: leaf`
686
+
687
+ - $.message.order.payments[*].params.currency must be present in the payload
688
+
689
+ #### REQUIRED_PAYMENT_URL
690
+
691
+ This is a group of **1** sub-validation(s) that all must pass: REQUIRED_TIME_DURATION.
692
+
693
+ > **Skip if:**
694
+ > - $.message.order.payments[*].url must **not** be present in the payload
695
+
696
+ ---
697
+
698
+ **REQUIRED_TIME_DURATION**
699
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_PAYMENT_URL | type: leaf`
700
+
701
+ - $.message.order.payments[*].time.duration must be present in the payload
702
+
703
+ #### REQUIRED_TIME_RANGE
704
+
705
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_TIME_START_RANGE and REQUIRED_TIME_END_RANGE.
706
+
707
+ > **Skip if:**
708
+ > - Not all elements of $.message.order.payments[*].time.label may be in ["INSTALLMENT"]
709
+
710
+ ---
711
+
712
+ **REQUIRED_TIME_START_RANGE**
713
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_TIME_RANGE | type: leaf`
714
+
715
+ - $.message.order.payments[*].time.range.start must be present in the payload
716
+
717
+ **REQUIRED_TIME_END_RANGE**
718
+ `group: ON_INIT_PAYMENTS > REQUIRED_PAYMENT_ITEMS > REQUIRED_TIME_RANGE | type: leaf`
719
+
720
+ - $.message.order.payments[*].time.range.end must be present in the payload
721
+
722
+ ---
723
+
724
+ ## ON_INIT_PAYMENT_TAGS
725
+
726
+ This is a group of **3** sub-validation(s) that all must pass: VALID_PAYMENT_TAGS, REQUIRED_ACCOUNT_DETAILS, and REQUIRED_BREAKUP_DETAILS.
727
+
728
+ ---
729
+
730
+ **VALID_PAYMENT_TAGS**
731
+ `group: ON_INIT_PAYMENT_TAGS | type: leaf`
732
+
733
+ - All elements of $.message.order.payments[*].tags[*].descriptor.code must be in ["ACCOUNT_DETAILS", "BREAKUP"]
734
+
735
+ > **Skip if:**
736
+ > - $.message.order.payments[*].tags[*].descriptor.code is not in the payload
737
+
738
+ **REQUIRED_ACCOUNT_DETAILS**
739
+ `group: ON_INIT_PAYMENT_TAGS | type: leaf | scope: $.message.order.payments[*].tags[?(@.descriptor.code == ACCOUNT_DETAILS)]`
740
+
741
+ - All elements of $.message.order.payments[*].tags[?(@.descriptor.code == ACCOUNT_DETAILS)].list[*].descriptor.code must be in ["ACCOUNT_TYPE", "ACCOUNT_HOLDER_NAME"]
742
+
743
+ **REQUIRED_BREAKUP_DETAILS**
744
+ `group: ON_INIT_PAYMENT_TAGS | type: leaf | scope: $.message.order.payments[*].tags[?(@.descriptor.code == BREAKUP)]`
745
+
746
+ - All elements of $.message.order.payments[*].tags[?(@.descriptor.code == BREAKUP)].list[*].descriptor.code must be in ["PRINCIPAL_AMOUNT", "INTEREST_AMOUNT"]
747
+
748
+ ---
749
+
750
+ ## ON_INIT_CANCELLATION_TERMS
751
+
752
+ This group contains **2** sub-group(s)/validation(s): EXTERNAL_REF_TERMS and FULFILLMENT_STATE_TERMS.
753
+
754
+ ---
755
+
756
+ ### EXTERNAL_REF_TERMS
757
+
758
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_EXTERNAL_REF_MIME_TYPE and REQUIRED_EXTERNAL_REF_URL.
759
+
760
+ > **Skip if:**
761
+ > - $.message.order.cancellation_terms[*].external_ref.mimetype must **not** be present in the payload
762
+
763
+ ---
764
+
765
+ **REQUIRED_EXTERNAL_REF_MIME_TYPE**
766
+ `group: ON_INIT_CANCELLATION_TERMS > EXTERNAL_REF_TERMS | type: leaf`
767
+
768
+ - $.message.order.cancellation_terms[*].external_ref.mimetype must be present in the payload
769
+
770
+ **REQUIRED_EXTERNAL_REF_URL**
771
+ `group: ON_INIT_CANCELLATION_TERMS > EXTERNAL_REF_TERMS | type: leaf`
772
+
773
+ - $.message.order.cancellation_terms[*].external_ref.url must be present in the payload
774
+
775
+ ### FULFILLMENT_STATE_TERMS
776
+
777
+ This is a group of **2** sub-validation(s) that all must pass: REQUIRED_FULFILLMENT_STATE_CODE and REQUIRED_CANCELLATION_FEE.
778
+
779
+ > **Skip if:**
780
+ > - $.message.order.cancellation_terms[*].fulfillment_state.descriptor.code must **not** be present in the payload
781
+
782
+ ---
783
+
784
+ **REQUIRED_FULFILLMENT_STATE_CODE**
785
+ `group: ON_INIT_CANCELLATION_TERMS > FULFILLMENT_STATE_TERMS | type: leaf`
786
+
787
+ - $.message.order.cancellation_terms[*].fulfillment_state.descriptor.code must be present in the payload
788
+
789
+ **REQUIRED_CANCELLATION_FEE**
790
+ `group: ON_INIT_CANCELLATION_TERMS > FULFILLMENT_STATE_TERMS | type: leaf`
791
+
792
+ - $.message.order.cancellation_terms[*].cancellation_fee.percentage must be present in the payload
793
+
794
+ ---
795
+
796
+ ## CONFIRM_TAGS
797
+
798
+ This is a group of **3** sub-validation(s) that all must pass: REQUIRED_PAYMENT_TAGS, REQUIRED_BAP_TERMS, and REQUIRED_BPP_TERMS.
799
+
800
+ ---
801
+
802
+ **REQUIRED_PAYMENT_TAGS**
803
+ `group: CONFIRM_TAGS | type: leaf`
804
+
805
+ - All elements of $.message.order.tags[*].descriptor.code must be in ["BAP_TERMS", "BPP_TERMS"]
806
+
807
+ > **Skip if:**
808
+ > - $.message.order.tags[*].descriptor.code is not in the payload
809
+
810
+ **REQUIRED_BAP_TERMS**
811
+ `group: CONFIRM_TAGS | type: leaf | scope: $.message.order.tags[?(@.descriptor.code == BAP_TERMS)]`
812
+
813
+ - All elements of $.message.order.tags[?(@.descriptor.code == BAP_TERMS)].list[*].descriptor.code must be in ["STATIC_TERMS", "OFFLINE_CONTRACT"]
814
+
815
+ **REQUIRED_BPP_TERMS**
816
+ `group: CONFIRM_TAGS | type: leaf | scope: $.message.order.tags[?(@.descriptor.code == BPP_TERMS)]`
817
+
818
+ - All elements of $.message.order.tags[?(@.descriptor.code == BPP_TERMS)].list[*].descriptor.code must be in ["STATIC_TERMS", "OFFLINE_CONTRACT"]
819
+
820
+ ---
821
+
822
+ ## REQUIRED_ORDER_DOCUMENTS
823
+
824
+ This is a group of **5** sub-validation(s) that all must pass: REQUIRED_DOCUMENT_CODE, REQUIRED_DOCUMENT_NAME, REQUIRED_DOCUMENT_TYPE, REQUIRED_DOCUMENT_URL, and VALID_DESCRIPTOR_CODE.
825
+
826
+ > **Skip if:**
827
+ > - $.message.order.documents[*].descriptor.code must **not** be present in the payload
828
+
829
+ ---
830
+
831
+ **REQUIRED_DOCUMENT_CODE**
832
+ `group: REQUIRED_ORDER_DOCUMENTS | type: leaf`
833
+
834
+ - $.message.order.documents[*].descriptor.code must be present in the payload
835
+
836
+ **REQUIRED_DOCUMENT_NAME**
837
+ `group: REQUIRED_ORDER_DOCUMENTS | type: leaf`
838
+
839
+ - $.message.order.documents[*].descriptor.name must be present in the payload
840
+
841
+ **REQUIRED_DOCUMENT_TYPE**
842
+ `group: REQUIRED_ORDER_DOCUMENTS | type: leaf`
843
+
844
+ - $.message.order.documents[*].mime_type must be present in the payload
845
+
846
+ **REQUIRED_DOCUMENT_URL**
847
+ `group: REQUIRED_ORDER_DOCUMENTS | type: leaf`
848
+
849
+ - $.message.order.documents[*].url must be present in the payload
850
+
851
+ **VALID_DESCRIPTOR_CODE**
852
+ `group: REQUIRED_ORDER_DOCUMENTS | type: leaf`
853
+
854
+ - All elements of $.message.order.documents[*].descriptor.code must be in ["LOAN_AGREEMENT", "LOAN_CANCELLATION"]