@tillhub/schemas 6.277.0 → 6.278.0
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/CHANGELOG.md +14 -0
- package/lib/common/numbers.js +9 -0
- package/lib/v0/branches/base-mms.js +18 -54
- package/lib/v1/registers/base-mms.js +17 -46
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.278.0](https://github.com/tillhub/schemas/compare/v6.277.1...v6.278.0) (2023-12-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **branches,registers:** update fields to unzer requirements ([#905](https://github.com/tillhub/schemas/issues/905)) ([4339727](https://github.com/tillhub/schemas/commit/4339727))
|
|
7
|
+
|
|
8
|
+
## [6.277.1](https://github.com/tillhub/schemas/compare/v6.277.0...v6.277.1) (2023-12-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **mms:** lift restrictions for bug numbers #UNTIL-8906 ([dbc1b1e](https://github.com/tillhub/schemas/commit/dbc1b1e)), closes [#UNTIL-8906](https://github.com/tillhub/schemas/issues/UNTIL-8906)
|
|
14
|
+
|
|
1
15
|
# [6.277.0](https://github.com/tillhub/schemas/compare/v6.276.0...v6.277.0) (2023-12-11)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -13,21 +13,15 @@ module.exports = {
|
|
|
13
13
|
}),
|
|
14
14
|
created_by: oneOf({
|
|
15
15
|
description: 'Who created the branch in Mms.',
|
|
16
|
-
type: 'string'
|
|
17
|
-
maxLength: 255,
|
|
18
|
-
minLength: 1
|
|
16
|
+
type: 'string'
|
|
19
17
|
}),
|
|
20
18
|
updated_by: oneOf({
|
|
21
19
|
description: 'Who updated the branch for the last time in Mms.',
|
|
22
|
-
type: 'string'
|
|
23
|
-
maxLength: 255,
|
|
24
|
-
minLength: 1
|
|
20
|
+
type: 'string'
|
|
25
21
|
}),
|
|
26
22
|
deleted_by: oneOf({
|
|
27
23
|
description: 'Who deleted the branch in Mms.',
|
|
28
|
-
type: 'string'
|
|
29
|
-
maxLength: 255,
|
|
30
|
-
minLength: 1
|
|
24
|
+
type: 'string'
|
|
31
25
|
}),
|
|
32
26
|
scope: oneOf({
|
|
33
27
|
description: 'The scope from Mms.',
|
|
@@ -40,57 +34,39 @@ module.exports = {
|
|
|
40
34
|
}),
|
|
41
35
|
vat_id: oneOf({
|
|
42
36
|
description: 'The vat id.',
|
|
43
|
-
type: 'string'
|
|
44
|
-
maxLength: 255,
|
|
45
|
-
minLength: 1
|
|
37
|
+
type: 'string'
|
|
46
38
|
}),
|
|
47
39
|
commercial_register_number: oneOf({
|
|
48
40
|
description: 'The commercial register number.',
|
|
49
|
-
type: 'string'
|
|
50
|
-
maxLength: 255,
|
|
51
|
-
minLength: 1
|
|
41
|
+
type: 'string'
|
|
52
42
|
}),
|
|
53
43
|
creditor_id: oneOf({
|
|
54
44
|
description: 'The creditor id.',
|
|
55
|
-
type: 'string'
|
|
56
|
-
maxLength: 255,
|
|
57
|
-
minLength: 1
|
|
45
|
+
type: 'string'
|
|
58
46
|
}),
|
|
59
47
|
court_of_jurisdiction: oneOf({
|
|
60
48
|
description: 'The court of jurisdiction.',
|
|
61
|
-
type: 'string'
|
|
62
|
-
maxLength: 255,
|
|
63
|
-
minLength: 1
|
|
49
|
+
type: 'string'
|
|
64
50
|
}),
|
|
65
51
|
company_name_short: oneOf({
|
|
66
52
|
description: 'The short company name.',
|
|
67
|
-
type: 'string'
|
|
68
|
-
maxLength: 1024,
|
|
69
|
-
minLength: 1
|
|
53
|
+
type: 'string'
|
|
70
54
|
}),
|
|
71
55
|
company_description: oneOf({
|
|
72
56
|
description: 'The company description.',
|
|
73
|
-
type: 'string'
|
|
74
|
-
maxLength: 16384,
|
|
75
|
-
minLength: 1
|
|
57
|
+
type: 'string'
|
|
76
58
|
}),
|
|
77
59
|
registration_authority: oneOf({
|
|
78
60
|
description: 'The registration authority.',
|
|
79
|
-
type: 'string'
|
|
80
|
-
maxLength: 255,
|
|
81
|
-
minLength: 1
|
|
61
|
+
type: 'string'
|
|
82
62
|
}),
|
|
83
63
|
legal_entity_type: oneOf({
|
|
84
64
|
description: 'The legal entity type.',
|
|
85
|
-
type: 'string'
|
|
86
|
-
maxLength: 255,
|
|
87
|
-
minLength: 1
|
|
65
|
+
type: 'string'
|
|
88
66
|
}),
|
|
89
67
|
country_of_registration: oneOf({
|
|
90
68
|
description: 'The country of registration.',
|
|
91
|
-
type: 'string'
|
|
92
|
-
maxLength: 255,
|
|
93
|
-
minLength: 1
|
|
69
|
+
type: 'string'
|
|
94
70
|
}),
|
|
95
71
|
countries_of_operations: oneOf({
|
|
96
72
|
description: 'The countries of operations.',
|
|
@@ -101,21 +77,15 @@ module.exports = {
|
|
|
101
77
|
}),
|
|
102
78
|
date_of_foundation: oneOf({
|
|
103
79
|
description: 'The date of foundation.',
|
|
104
|
-
type: 'string'
|
|
105
|
-
maxLength: 255,
|
|
106
|
-
minLength: 1
|
|
80
|
+
type: 'string'
|
|
107
81
|
}),
|
|
108
82
|
website: oneOf({
|
|
109
83
|
description: 'The website.',
|
|
110
|
-
type: 'string'
|
|
111
|
-
maxLength: 255,
|
|
112
|
-
minLength: 1
|
|
84
|
+
type: 'string'
|
|
113
85
|
}),
|
|
114
86
|
sector: oneOf({
|
|
115
87
|
description: 'The sector.',
|
|
116
|
-
type: 'string'
|
|
117
|
-
maxLength: 255,
|
|
118
|
-
minLength: 1
|
|
88
|
+
type: 'string'
|
|
119
89
|
}),
|
|
120
90
|
contacts: oneOf({
|
|
121
91
|
description: 'The contacts.',
|
|
@@ -133,9 +103,7 @@ module.exports = {
|
|
|
133
103
|
}),
|
|
134
104
|
state: oneOf({
|
|
135
105
|
description: 'The state.',
|
|
136
|
-
type: 'string'
|
|
137
|
-
maxLength: 255,
|
|
138
|
-
minLength: 1
|
|
106
|
+
type: 'string'
|
|
139
107
|
}),
|
|
140
108
|
contracts: oneOf({
|
|
141
109
|
description: 'The contracts.',
|
|
@@ -162,14 +130,10 @@ module.exports = {
|
|
|
162
130
|
}),
|
|
163
131
|
type: oneOf({
|
|
164
132
|
description: 'The type.',
|
|
165
|
-
type: 'string'
|
|
166
|
-
maxLength: 255,
|
|
167
|
-
minLength: 1
|
|
133
|
+
type: 'string'
|
|
168
134
|
}),
|
|
169
135
|
unit_unzer_id: oneOf({
|
|
170
136
|
description: 'The unit unzer id.',
|
|
171
|
-
type: 'string'
|
|
172
|
-
maxLength: 255,
|
|
173
|
-
minLength: 1
|
|
137
|
+
type: 'string'
|
|
174
138
|
})
|
|
175
139
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const { LargeDecimal } = require('../../common/numbers')
|
|
1
2
|
const { oneOf } = require('../../helpers/payload-or-null')
|
|
2
3
|
|
|
3
4
|
module.exports = {
|
|
@@ -13,21 +14,15 @@ module.exports = {
|
|
|
13
14
|
}),
|
|
14
15
|
created_by: oneOf({
|
|
15
16
|
description: 'Who created the register in Mms.',
|
|
16
|
-
type: 'string'
|
|
17
|
-
maxLength: 255,
|
|
18
|
-
minLength: 1
|
|
17
|
+
type: 'string'
|
|
19
18
|
}),
|
|
20
19
|
updated_by: oneOf({
|
|
21
20
|
description: 'Who updated the register for the last time in Mms.',
|
|
22
|
-
type: 'string'
|
|
23
|
-
maxLength: 255,
|
|
24
|
-
minLength: 1
|
|
21
|
+
type: 'string'
|
|
25
22
|
}),
|
|
26
23
|
deleted_by: oneOf({
|
|
27
24
|
description: 'Who deleted the register in Mms.',
|
|
28
|
-
type: 'string'
|
|
29
|
-
maxLength: 255,
|
|
30
|
-
minLength: 1
|
|
25
|
+
type: 'string'
|
|
31
26
|
}),
|
|
32
27
|
scope: oneOf({
|
|
33
28
|
description: 'The scope from Mms.',
|
|
@@ -40,15 +35,11 @@ module.exports = {
|
|
|
40
35
|
}),
|
|
41
36
|
state: oneOf({
|
|
42
37
|
description: 'The state.',
|
|
43
|
-
type: 'string'
|
|
44
|
-
maxLength: 255,
|
|
45
|
-
minLength: 1
|
|
38
|
+
type: 'string'
|
|
46
39
|
}),
|
|
47
40
|
type: oneOf({
|
|
48
41
|
description: 'The type.',
|
|
49
|
-
type: 'string'
|
|
50
|
-
maxLength: 255,
|
|
51
|
-
minLength: 1
|
|
42
|
+
type: 'string'
|
|
52
43
|
}),
|
|
53
44
|
enable_cross_channel_referencing: {
|
|
54
45
|
type: 'boolean',
|
|
@@ -68,9 +59,7 @@ module.exports = {
|
|
|
68
59
|
}),
|
|
69
60
|
terminal_id: oneOf({
|
|
70
61
|
description: 'Identification for the payment terminal Id',
|
|
71
|
-
type: 'string'
|
|
72
|
-
maxLength: 255,
|
|
73
|
-
minLength: 1
|
|
62
|
+
type: 'string'
|
|
74
63
|
}),
|
|
75
64
|
urls: oneOf({
|
|
76
65
|
type: 'array',
|
|
@@ -80,33 +69,17 @@ module.exports = {
|
|
|
80
69
|
}),
|
|
81
70
|
website: oneOf({
|
|
82
71
|
description: 'The website.',
|
|
83
|
-
type: 'string'
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
type: 'number'
|
|
92
|
-
}),
|
|
93
|
-
average_amount_per_month: oneOf({
|
|
94
|
-
type: 'number'
|
|
95
|
-
}),
|
|
96
|
-
average_count_per_month: oneOf({
|
|
97
|
-
type: 'number'
|
|
98
|
-
}),
|
|
99
|
-
min_amount_per_month: oneOf({
|
|
100
|
-
type: 'number'
|
|
101
|
-
}),
|
|
102
|
-
min_amount_per_txn: oneOf({
|
|
103
|
-
type: 'number'
|
|
104
|
-
}),
|
|
72
|
+
type: 'string'
|
|
73
|
+
}),
|
|
74
|
+
max_amount_per_txn: oneOf(LargeDecimal),
|
|
75
|
+
max_amount_per_month: oneOf(LargeDecimal),
|
|
76
|
+
average_amount_per_month: oneOf(LargeDecimal),
|
|
77
|
+
average_count_per_month: oneOf(LargeDecimal),
|
|
78
|
+
min_amount_per_month: oneOf(LargeDecimal),
|
|
79
|
+
min_amount_per_txn: oneOf(LargeDecimal),
|
|
105
80
|
pci_level: oneOf({
|
|
106
81
|
description: 'The commercial register number.',
|
|
107
|
-
type: 'string'
|
|
108
|
-
maxLength: 255,
|
|
109
|
-
minLength: 1
|
|
82
|
+
type: 'string'
|
|
110
83
|
}),
|
|
111
84
|
price_information: oneOf({
|
|
112
85
|
description: 'The price information of the register.',
|
|
@@ -116,7 +89,5 @@ module.exports = {
|
|
|
116
89
|
description: 'The mcc of the register.',
|
|
117
90
|
type: 'object'
|
|
118
91
|
}),
|
|
119
|
-
average_basket_size: oneOf(
|
|
120
|
-
type: 'number'
|
|
121
|
-
})
|
|
92
|
+
average_basket_size: oneOf(LargeDecimal)
|
|
122
93
|
}
|