@defra/forms-model 3.0.644 → 3.0.646
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/module/components/component-types.js +2 -1
- package/dist/module/components/component-types.js.map +1 -1
- package/dist/module/components/types.js.map +1 -1
- package/dist/module/form/form-definition/index.js +13 -2
- package/dist/module/form/form-definition/index.js.map +1 -1
- package/dist/module/form/form-metrics/enums.js +7 -0
- package/dist/module/form/form-metrics/enums.js.map +1 -0
- package/dist/module/form/form-metrics/types.js +2 -0
- package/dist/module/form/form-metrics/types.js.map +1 -0
- package/dist/module/index.js +2 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/pages/helpers.js +38 -2
- package/dist/module/pages/helpers.js.map +1 -1
- package/dist/module/pages/index.js +1 -1
- package/dist/module/pages/index.js.map +1 -1
- package/dist/types/components/component-types.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +5 -0
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/form/form-definition/index.d.ts.map +1 -1
- package/dist/types/form/form-metrics/enums.d.ts +6 -0
- package/dist/types/form/form-metrics/enums.d.ts.map +1 -0
- package/dist/types/form/form-metrics/types.d.ts +32 -0
- package/dist/types/form/form-metrics/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/pages/helpers.d.ts +9 -0
- package/dist/types/pages/helpers.d.ts.map +1 -1
- package/dist/types/pages/index.d.ts +1 -1
- package/dist/types/pages/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/component-schema-v2.json +35 -2
- package/schemas/component-schema.json +35 -2
- package/schemas/form-definition-schema.json +105 -6
- package/schemas/form-definition-v2-schema.json +175 -10
- package/schemas/list-schema-v2.json +70 -4
- package/schemas/list-schema.json +70 -4
- package/schemas/page-schema-v2.json +105 -6
- package/schemas/page-schema.json +35 -2
- package/src/components/component-types.ts +2 -1
- package/src/components/types.ts +5 -0
- package/src/form/form-definition/index.ts +31 -3
- package/src/form/form-metrics/enums.ts +5 -0
- package/src/form/form-metrics/types.ts +39 -0
- package/src/index.ts +2 -0
- package/src/pages/helpers.ts +43 -0
- package/src/pages/index.ts +2 -0
|
@@ -487,8 +487,8 @@
|
|
|
487
487
|
},
|
|
488
488
|
"amount": {
|
|
489
489
|
"type": "number",
|
|
490
|
-
"description": "Payment amount in GBP (£0
|
|
491
|
-
"minimum": 0
|
|
490
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
491
|
+
"minimum": 0,
|
|
492
492
|
"maximum": 100000,
|
|
493
493
|
"title": "Amount"
|
|
494
494
|
},
|
|
@@ -497,6 +497,39 @@
|
|
|
497
497
|
"description": "Payment description (max 230 chars)",
|
|
498
498
|
"maxLength": 230,
|
|
499
499
|
"title": "Description"
|
|
500
|
+
},
|
|
501
|
+
"conditionalAmounts": {
|
|
502
|
+
"type": "array",
|
|
503
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
504
|
+
"items": {
|
|
505
|
+
"type": "object",
|
|
506
|
+
"properties": {
|
|
507
|
+
"condition": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"description": "Condition ID for this amount",
|
|
510
|
+
"title": "Condition"
|
|
511
|
+
},
|
|
512
|
+
"amount": {
|
|
513
|
+
"type": "number",
|
|
514
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
515
|
+
"minimum": 0.3,
|
|
516
|
+
"maximum": 100000,
|
|
517
|
+
"title": "Amount"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"required": [
|
|
521
|
+
"condition",
|
|
522
|
+
"amount"
|
|
523
|
+
],
|
|
524
|
+
"additionalProperties": false,
|
|
525
|
+
"title": "Conditional Amounts Item"
|
|
526
|
+
},
|
|
527
|
+
"title": "Conditional Amounts"
|
|
528
|
+
},
|
|
529
|
+
"emailField": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
532
|
+
"title": "Email Field"
|
|
500
533
|
}
|
|
501
534
|
},
|
|
502
535
|
"additionalProperties": true,
|
|
@@ -696,8 +729,8 @@
|
|
|
696
729
|
},
|
|
697
730
|
"amount": {
|
|
698
731
|
"type": "number",
|
|
699
|
-
"description": "Payment amount in GBP (£0
|
|
700
|
-
"minimum": 0
|
|
732
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
733
|
+
"minimum": 0,
|
|
701
734
|
"maximum": 100000,
|
|
702
735
|
"title": "Amount"
|
|
703
736
|
},
|
|
@@ -706,6 +739,39 @@
|
|
|
706
739
|
"description": "Payment description (max 230 chars)",
|
|
707
740
|
"maxLength": 230,
|
|
708
741
|
"title": "Description"
|
|
742
|
+
},
|
|
743
|
+
"conditionalAmounts": {
|
|
744
|
+
"type": "array",
|
|
745
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
746
|
+
"items": {
|
|
747
|
+
"type": "object",
|
|
748
|
+
"properties": {
|
|
749
|
+
"condition": {
|
|
750
|
+
"type": "string",
|
|
751
|
+
"description": "Condition ID for this amount",
|
|
752
|
+
"title": "Condition"
|
|
753
|
+
},
|
|
754
|
+
"amount": {
|
|
755
|
+
"type": "number",
|
|
756
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
757
|
+
"minimum": 0.3,
|
|
758
|
+
"maximum": 100000,
|
|
759
|
+
"title": "Amount"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"required": [
|
|
763
|
+
"condition",
|
|
764
|
+
"amount"
|
|
765
|
+
],
|
|
766
|
+
"additionalProperties": false,
|
|
767
|
+
"title": "Conditional Amounts Item"
|
|
768
|
+
},
|
|
769
|
+
"title": "Conditional Amounts"
|
|
770
|
+
},
|
|
771
|
+
"emailField": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
774
|
+
"title": "Email Field"
|
|
709
775
|
}
|
|
710
776
|
},
|
|
711
777
|
"additionalProperties": true,
|
|
@@ -988,8 +1054,8 @@
|
|
|
988
1054
|
},
|
|
989
1055
|
"amount": {
|
|
990
1056
|
"type": "number",
|
|
991
|
-
"description": "Payment amount in GBP (£0
|
|
992
|
-
"minimum": 0
|
|
1057
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
1058
|
+
"minimum": 0,
|
|
993
1059
|
"maximum": 100000,
|
|
994
1060
|
"title": "Amount"
|
|
995
1061
|
},
|
|
@@ -998,6 +1064,39 @@
|
|
|
998
1064
|
"description": "Payment description (max 230 chars)",
|
|
999
1065
|
"maxLength": 230,
|
|
1000
1066
|
"title": "Description"
|
|
1067
|
+
},
|
|
1068
|
+
"conditionalAmounts": {
|
|
1069
|
+
"type": "array",
|
|
1070
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
1071
|
+
"items": {
|
|
1072
|
+
"type": "object",
|
|
1073
|
+
"properties": {
|
|
1074
|
+
"condition": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"description": "Condition ID for this amount",
|
|
1077
|
+
"title": "Condition"
|
|
1078
|
+
},
|
|
1079
|
+
"amount": {
|
|
1080
|
+
"type": "number",
|
|
1081
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
1082
|
+
"minimum": 0.3,
|
|
1083
|
+
"maximum": 100000,
|
|
1084
|
+
"title": "Amount"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"required": [
|
|
1088
|
+
"condition",
|
|
1089
|
+
"amount"
|
|
1090
|
+
],
|
|
1091
|
+
"additionalProperties": false,
|
|
1092
|
+
"title": "Conditional Amounts Item"
|
|
1093
|
+
},
|
|
1094
|
+
"title": "Conditional Amounts"
|
|
1095
|
+
},
|
|
1096
|
+
"emailField": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
1099
|
+
"title": "Email Field"
|
|
1001
1100
|
}
|
|
1002
1101
|
},
|
|
1003
1102
|
"additionalProperties": true,
|
|
@@ -1306,8 +1405,8 @@
|
|
|
1306
1405
|
},
|
|
1307
1406
|
"amount": {
|
|
1308
1407
|
"type": "number",
|
|
1309
|
-
"description": "Payment amount in GBP (£0
|
|
1310
|
-
"minimum": 0
|
|
1408
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
1409
|
+
"minimum": 0,
|
|
1311
1410
|
"maximum": 100000,
|
|
1312
1411
|
"title": "Amount"
|
|
1313
1412
|
},
|
|
@@ -1316,6 +1415,39 @@
|
|
|
1316
1415
|
"description": "Payment description (max 230 chars)",
|
|
1317
1416
|
"maxLength": 230,
|
|
1318
1417
|
"title": "Description"
|
|
1418
|
+
},
|
|
1419
|
+
"conditionalAmounts": {
|
|
1420
|
+
"type": "array",
|
|
1421
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
1422
|
+
"items": {
|
|
1423
|
+
"type": "object",
|
|
1424
|
+
"properties": {
|
|
1425
|
+
"condition": {
|
|
1426
|
+
"type": "string",
|
|
1427
|
+
"description": "Condition ID for this amount",
|
|
1428
|
+
"title": "Condition"
|
|
1429
|
+
},
|
|
1430
|
+
"amount": {
|
|
1431
|
+
"type": "number",
|
|
1432
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
1433
|
+
"minimum": 0.3,
|
|
1434
|
+
"maximum": 100000,
|
|
1435
|
+
"title": "Amount"
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"required": [
|
|
1439
|
+
"condition",
|
|
1440
|
+
"amount"
|
|
1441
|
+
],
|
|
1442
|
+
"additionalProperties": false,
|
|
1443
|
+
"title": "Conditional Amounts Item"
|
|
1444
|
+
},
|
|
1445
|
+
"title": "Conditional Amounts"
|
|
1446
|
+
},
|
|
1447
|
+
"emailField": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
1450
|
+
"title": "Email Field"
|
|
1319
1451
|
}
|
|
1320
1452
|
},
|
|
1321
1453
|
"additionalProperties": true,
|
|
@@ -1585,8 +1717,8 @@
|
|
|
1585
1717
|
},
|
|
1586
1718
|
"amount": {
|
|
1587
1719
|
"type": "number",
|
|
1588
|
-
"description": "Payment amount in GBP (£0
|
|
1589
|
-
"minimum": 0
|
|
1720
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
1721
|
+
"minimum": 0,
|
|
1590
1722
|
"maximum": 100000,
|
|
1591
1723
|
"title": "Amount"
|
|
1592
1724
|
},
|
|
@@ -1595,6 +1727,39 @@
|
|
|
1595
1727
|
"description": "Payment description (max 230 chars)",
|
|
1596
1728
|
"maxLength": 230,
|
|
1597
1729
|
"title": "Description"
|
|
1730
|
+
},
|
|
1731
|
+
"conditionalAmounts": {
|
|
1732
|
+
"type": "array",
|
|
1733
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
1734
|
+
"items": {
|
|
1735
|
+
"type": "object",
|
|
1736
|
+
"properties": {
|
|
1737
|
+
"condition": {
|
|
1738
|
+
"type": "string",
|
|
1739
|
+
"description": "Condition ID for this amount",
|
|
1740
|
+
"title": "Condition"
|
|
1741
|
+
},
|
|
1742
|
+
"amount": {
|
|
1743
|
+
"type": "number",
|
|
1744
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
1745
|
+
"minimum": 0.3,
|
|
1746
|
+
"maximum": 100000,
|
|
1747
|
+
"title": "Amount"
|
|
1748
|
+
}
|
|
1749
|
+
},
|
|
1750
|
+
"required": [
|
|
1751
|
+
"condition",
|
|
1752
|
+
"amount"
|
|
1753
|
+
],
|
|
1754
|
+
"additionalProperties": false,
|
|
1755
|
+
"title": "Conditional Amounts Item"
|
|
1756
|
+
},
|
|
1757
|
+
"title": "Conditional Amounts"
|
|
1758
|
+
},
|
|
1759
|
+
"emailField": {
|
|
1760
|
+
"type": "string",
|
|
1761
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
1762
|
+
"title": "Email Field"
|
|
1598
1763
|
}
|
|
1599
1764
|
},
|
|
1600
1765
|
"additionalProperties": true,
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
},
|
|
186
186
|
"amount": {
|
|
187
187
|
"type": "number",
|
|
188
|
-
"description": "Payment amount in GBP (£0
|
|
189
|
-
"minimum": 0
|
|
188
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
189
|
+
"minimum": 0,
|
|
190
190
|
"maximum": 100000,
|
|
191
191
|
"title": "Amount"
|
|
192
192
|
},
|
|
@@ -195,6 +195,39 @@
|
|
|
195
195
|
"description": "Payment description (max 230 chars)",
|
|
196
196
|
"maxLength": 230,
|
|
197
197
|
"title": "Description"
|
|
198
|
+
},
|
|
199
|
+
"conditionalAmounts": {
|
|
200
|
+
"type": "array",
|
|
201
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
202
|
+
"items": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"properties": {
|
|
205
|
+
"condition": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"description": "Condition ID for this amount",
|
|
208
|
+
"title": "Condition"
|
|
209
|
+
},
|
|
210
|
+
"amount": {
|
|
211
|
+
"type": "number",
|
|
212
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
213
|
+
"minimum": 0.3,
|
|
214
|
+
"maximum": 100000,
|
|
215
|
+
"title": "Amount"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"required": [
|
|
219
|
+
"condition",
|
|
220
|
+
"amount"
|
|
221
|
+
],
|
|
222
|
+
"additionalProperties": false,
|
|
223
|
+
"title": "Conditional Amounts Item"
|
|
224
|
+
},
|
|
225
|
+
"title": "Conditional Amounts"
|
|
226
|
+
},
|
|
227
|
+
"emailField": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
230
|
+
"title": "Email Field"
|
|
198
231
|
}
|
|
199
232
|
},
|
|
200
233
|
"additionalProperties": true,
|
|
@@ -464,8 +497,8 @@
|
|
|
464
497
|
},
|
|
465
498
|
"amount": {
|
|
466
499
|
"type": "number",
|
|
467
|
-
"description": "Payment amount in GBP (£0
|
|
468
|
-
"minimum": 0
|
|
500
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
501
|
+
"minimum": 0,
|
|
469
502
|
"maximum": 100000,
|
|
470
503
|
"title": "Amount"
|
|
471
504
|
},
|
|
@@ -474,6 +507,39 @@
|
|
|
474
507
|
"description": "Payment description (max 230 chars)",
|
|
475
508
|
"maxLength": 230,
|
|
476
509
|
"title": "Description"
|
|
510
|
+
},
|
|
511
|
+
"conditionalAmounts": {
|
|
512
|
+
"type": "array",
|
|
513
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
514
|
+
"items": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"condition": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"description": "Condition ID for this amount",
|
|
520
|
+
"title": "Condition"
|
|
521
|
+
},
|
|
522
|
+
"amount": {
|
|
523
|
+
"type": "number",
|
|
524
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
525
|
+
"minimum": 0.3,
|
|
526
|
+
"maximum": 100000,
|
|
527
|
+
"title": "Amount"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"required": [
|
|
531
|
+
"condition",
|
|
532
|
+
"amount"
|
|
533
|
+
],
|
|
534
|
+
"additionalProperties": false,
|
|
535
|
+
"title": "Conditional Amounts Item"
|
|
536
|
+
},
|
|
537
|
+
"title": "Conditional Amounts"
|
|
538
|
+
},
|
|
539
|
+
"emailField": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
542
|
+
"title": "Email Field"
|
|
477
543
|
}
|
|
478
544
|
},
|
|
479
545
|
"additionalProperties": true,
|
package/schemas/list-schema.json
CHANGED
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
},
|
|
192
192
|
"amount": {
|
|
193
193
|
"type": "number",
|
|
194
|
-
"description": "Payment amount in GBP (£0
|
|
195
|
-
"minimum": 0
|
|
194
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
195
|
+
"minimum": 0,
|
|
196
196
|
"maximum": 100000,
|
|
197
197
|
"title": "Amount"
|
|
198
198
|
},
|
|
@@ -201,6 +201,39 @@
|
|
|
201
201
|
"description": "Payment description (max 230 chars)",
|
|
202
202
|
"maxLength": 230,
|
|
203
203
|
"title": "Description"
|
|
204
|
+
},
|
|
205
|
+
"conditionalAmounts": {
|
|
206
|
+
"type": "array",
|
|
207
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
208
|
+
"items": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"properties": {
|
|
211
|
+
"condition": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"description": "Condition ID for this amount",
|
|
214
|
+
"title": "Condition"
|
|
215
|
+
},
|
|
216
|
+
"amount": {
|
|
217
|
+
"type": "number",
|
|
218
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
219
|
+
"minimum": 0.3,
|
|
220
|
+
"maximum": 100000,
|
|
221
|
+
"title": "Amount"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"condition",
|
|
226
|
+
"amount"
|
|
227
|
+
],
|
|
228
|
+
"additionalProperties": false,
|
|
229
|
+
"title": "Conditional Amounts Item"
|
|
230
|
+
},
|
|
231
|
+
"title": "Conditional Amounts"
|
|
232
|
+
},
|
|
233
|
+
"emailField": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
236
|
+
"title": "Email Field"
|
|
204
237
|
}
|
|
205
238
|
},
|
|
206
239
|
"additionalProperties": true,
|
|
@@ -470,8 +503,8 @@
|
|
|
470
503
|
},
|
|
471
504
|
"amount": {
|
|
472
505
|
"type": "number",
|
|
473
|
-
"description": "Payment amount in GBP (£0
|
|
474
|
-
"minimum": 0
|
|
506
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
507
|
+
"minimum": 0,
|
|
475
508
|
"maximum": 100000,
|
|
476
509
|
"title": "Amount"
|
|
477
510
|
},
|
|
@@ -480,6 +513,39 @@
|
|
|
480
513
|
"description": "Payment description (max 230 chars)",
|
|
481
514
|
"maxLength": 230,
|
|
482
515
|
"title": "Description"
|
|
516
|
+
},
|
|
517
|
+
"conditionalAmounts": {
|
|
518
|
+
"type": "array",
|
|
519
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
520
|
+
"items": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"properties": {
|
|
523
|
+
"condition": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"description": "Condition ID for this amount",
|
|
526
|
+
"title": "Condition"
|
|
527
|
+
},
|
|
528
|
+
"amount": {
|
|
529
|
+
"type": "number",
|
|
530
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
531
|
+
"minimum": 0.3,
|
|
532
|
+
"maximum": 100000,
|
|
533
|
+
"title": "Amount"
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"required": [
|
|
537
|
+
"condition",
|
|
538
|
+
"amount"
|
|
539
|
+
],
|
|
540
|
+
"additionalProperties": false,
|
|
541
|
+
"title": "Conditional Amounts Item"
|
|
542
|
+
},
|
|
543
|
+
"title": "Conditional Amounts"
|
|
544
|
+
},
|
|
545
|
+
"emailField": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
548
|
+
"title": "Email Field"
|
|
483
549
|
}
|
|
484
550
|
},
|
|
485
551
|
"additionalProperties": true,
|
|
@@ -297,8 +297,8 @@
|
|
|
297
297
|
},
|
|
298
298
|
"amount": {
|
|
299
299
|
"type": "number",
|
|
300
|
-
"description": "Payment amount in GBP (£0
|
|
301
|
-
"minimum": 0
|
|
300
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
301
|
+
"minimum": 0,
|
|
302
302
|
"maximum": 100000,
|
|
303
303
|
"title": "Amount"
|
|
304
304
|
},
|
|
@@ -307,6 +307,39 @@
|
|
|
307
307
|
"description": "Payment description (max 230 chars)",
|
|
308
308
|
"maxLength": 230,
|
|
309
309
|
"title": "Description"
|
|
310
|
+
},
|
|
311
|
+
"conditionalAmounts": {
|
|
312
|
+
"type": "array",
|
|
313
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
314
|
+
"items": {
|
|
315
|
+
"type": "object",
|
|
316
|
+
"properties": {
|
|
317
|
+
"condition": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "Condition ID for this amount",
|
|
320
|
+
"title": "Condition"
|
|
321
|
+
},
|
|
322
|
+
"amount": {
|
|
323
|
+
"type": "number",
|
|
324
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
325
|
+
"minimum": 0.3,
|
|
326
|
+
"maximum": 100000,
|
|
327
|
+
"title": "Amount"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"required": [
|
|
331
|
+
"condition",
|
|
332
|
+
"amount"
|
|
333
|
+
],
|
|
334
|
+
"additionalProperties": false,
|
|
335
|
+
"title": "Conditional Amounts Item"
|
|
336
|
+
},
|
|
337
|
+
"title": "Conditional Amounts"
|
|
338
|
+
},
|
|
339
|
+
"emailField": {
|
|
340
|
+
"type": "string",
|
|
341
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
342
|
+
"title": "Email Field"
|
|
310
343
|
}
|
|
311
344
|
},
|
|
312
345
|
"additionalProperties": true,
|
|
@@ -506,8 +539,8 @@
|
|
|
506
539
|
},
|
|
507
540
|
"amount": {
|
|
508
541
|
"type": "number",
|
|
509
|
-
"description": "Payment amount in GBP (£0
|
|
510
|
-
"minimum": 0
|
|
542
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
543
|
+
"minimum": 0,
|
|
511
544
|
"maximum": 100000,
|
|
512
545
|
"title": "Amount"
|
|
513
546
|
},
|
|
@@ -516,6 +549,39 @@
|
|
|
516
549
|
"description": "Payment description (max 230 chars)",
|
|
517
550
|
"maxLength": 230,
|
|
518
551
|
"title": "Description"
|
|
552
|
+
},
|
|
553
|
+
"conditionalAmounts": {
|
|
554
|
+
"type": "array",
|
|
555
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
556
|
+
"items": {
|
|
557
|
+
"type": "object",
|
|
558
|
+
"properties": {
|
|
559
|
+
"condition": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"description": "Condition ID for this amount",
|
|
562
|
+
"title": "Condition"
|
|
563
|
+
},
|
|
564
|
+
"amount": {
|
|
565
|
+
"type": "number",
|
|
566
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
567
|
+
"minimum": 0.3,
|
|
568
|
+
"maximum": 100000,
|
|
569
|
+
"title": "Amount"
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"required": [
|
|
573
|
+
"condition",
|
|
574
|
+
"amount"
|
|
575
|
+
],
|
|
576
|
+
"additionalProperties": false,
|
|
577
|
+
"title": "Conditional Amounts Item"
|
|
578
|
+
},
|
|
579
|
+
"title": "Conditional Amounts"
|
|
580
|
+
},
|
|
581
|
+
"emailField": {
|
|
582
|
+
"type": "string",
|
|
583
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
584
|
+
"title": "Email Field"
|
|
519
585
|
}
|
|
520
586
|
},
|
|
521
587
|
"additionalProperties": true,
|
|
@@ -798,8 +864,8 @@
|
|
|
798
864
|
},
|
|
799
865
|
"amount": {
|
|
800
866
|
"type": "number",
|
|
801
|
-
"description": "Payment amount in GBP (£0
|
|
802
|
-
"minimum": 0
|
|
867
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
868
|
+
"minimum": 0,
|
|
803
869
|
"maximum": 100000,
|
|
804
870
|
"title": "Amount"
|
|
805
871
|
},
|
|
@@ -808,6 +874,39 @@
|
|
|
808
874
|
"description": "Payment description (max 230 chars)",
|
|
809
875
|
"maxLength": 230,
|
|
810
876
|
"title": "Description"
|
|
877
|
+
},
|
|
878
|
+
"conditionalAmounts": {
|
|
879
|
+
"type": "array",
|
|
880
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
881
|
+
"items": {
|
|
882
|
+
"type": "object",
|
|
883
|
+
"properties": {
|
|
884
|
+
"condition": {
|
|
885
|
+
"type": "string",
|
|
886
|
+
"description": "Condition ID for this amount",
|
|
887
|
+
"title": "Condition"
|
|
888
|
+
},
|
|
889
|
+
"amount": {
|
|
890
|
+
"type": "number",
|
|
891
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
892
|
+
"minimum": 0.3,
|
|
893
|
+
"maximum": 100000,
|
|
894
|
+
"title": "Amount"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"required": [
|
|
898
|
+
"condition",
|
|
899
|
+
"amount"
|
|
900
|
+
],
|
|
901
|
+
"additionalProperties": false,
|
|
902
|
+
"title": "Conditional Amounts Item"
|
|
903
|
+
},
|
|
904
|
+
"title": "Conditional Amounts"
|
|
905
|
+
},
|
|
906
|
+
"emailField": {
|
|
907
|
+
"type": "string",
|
|
908
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
909
|
+
"title": "Email Field"
|
|
811
910
|
}
|
|
812
911
|
},
|
|
813
912
|
"additionalProperties": true,
|
package/schemas/page-schema.json
CHANGED
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
},
|
|
161
161
|
"amount": {
|
|
162
162
|
"type": "number",
|
|
163
|
-
"description": "Payment amount in GBP (£0
|
|
164
|
-
"minimum": 0
|
|
163
|
+
"description": "Payment amount in GBP (£0 - £100,000)",
|
|
164
|
+
"minimum": 0,
|
|
165
165
|
"maximum": 100000,
|
|
166
166
|
"title": "Amount"
|
|
167
167
|
},
|
|
@@ -170,6 +170,39 @@
|
|
|
170
170
|
"description": "Payment description (max 230 chars)",
|
|
171
171
|
"maxLength": 230,
|
|
172
172
|
"title": "Description"
|
|
173
|
+
},
|
|
174
|
+
"conditionalAmounts": {
|
|
175
|
+
"type": "array",
|
|
176
|
+
"description": "Conditional payment amounts evaluated in order",
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"properties": {
|
|
180
|
+
"condition": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "Condition ID for this amount",
|
|
183
|
+
"title": "Condition"
|
|
184
|
+
},
|
|
185
|
+
"amount": {
|
|
186
|
+
"type": "number",
|
|
187
|
+
"description": "Amount in GBP when condition is true (min £0.30)",
|
|
188
|
+
"minimum": 0.3,
|
|
189
|
+
"maximum": 100000,
|
|
190
|
+
"title": "Amount"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": [
|
|
194
|
+
"condition",
|
|
195
|
+
"amount"
|
|
196
|
+
],
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"title": "Conditional Amounts Item"
|
|
199
|
+
},
|
|
200
|
+
"title": "Conditional Amounts"
|
|
201
|
+
},
|
|
202
|
+
"emailField": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"description": "Name of EmailAddressField to prepopulate GOV.UK Pay email",
|
|
205
|
+
"title": "Email Field"
|
|
173
206
|
}
|
|
174
207
|
},
|
|
175
208
|
"additionalProperties": true,
|