@tillhub/schemas 6.199.0 → 6.201.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 +15 -0
- package/lib/v0/customers/create.js +15 -0
- package/lib/v0/customers/delete.js +21 -0
- package/lib/v0/customers/index.js +2 -2
- package/lib/v0/customers/update.js +15 -0
- package/lib/v0/taxes/base.js +14 -12
- package/package.json +1 -1
- package/lib/v0/customers/event.js +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [6.201.0](https://github.com/tillhub/schemas/compare/v6.200.0...v6.201.0) (2023-03-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **taxes:** add missing jurisdictions ([f709738](https://github.com/tillhub/schemas/commit/f709738))
|
|
7
|
+
|
|
8
|
+
# [6.200.0](https://github.com/tillhub/schemas/compare/v6.199.0...v6.200.0) (2023-03-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **customers:** add delete event #UNTIL-6167 ([bc94f96](https://github.com/tillhub/schemas/commit/bc94f96)), closes [#UNTIL-6167](https://github.com/tillhub/schemas/issues/UNTIL-6167)
|
|
14
|
+
* **customers:** add update event #UNTIL-6166 ([0546c31](https://github.com/tillhub/schemas/commit/0546c31)), closes [#UNTIL-6166](https://github.com/tillhub/schemas/issues/UNTIL-6166)
|
|
15
|
+
|
|
1
16
|
# [6.199.0](https://github.com/tillhub/schemas/compare/v6.198.0...v6.199.0) (2023-03-09)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
const baseObject = require('../../common/base')
|
|
2
2
|
const commonResponse = require('../../common/response')
|
|
3
|
+
const { getEvent } = require('../../common/webhooks')
|
|
3
4
|
|
|
4
5
|
const base = require('./base')
|
|
6
|
+
const baseExtended = require('./baseExt')
|
|
5
7
|
|
|
6
8
|
module.exports = {
|
|
7
9
|
request: {
|
|
@@ -28,5 +30,18 @@ module.exports = {
|
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
})
|
|
33
|
+
},
|
|
34
|
+
event: {
|
|
35
|
+
$id: 'https://schemas.tillhub.com/v0/customers.create.event.schema.json',
|
|
36
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
37
|
+
...getEvent({
|
|
38
|
+
type: 'object',
|
|
39
|
+
additionalProperties: false,
|
|
40
|
+
properties: {
|
|
41
|
+
...baseObject(),
|
|
42
|
+
...base,
|
|
43
|
+
...baseExtended
|
|
44
|
+
}
|
|
45
|
+
}, { eventEntityExample: 'customer' })
|
|
31
46
|
}
|
|
32
47
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const baseObject = require('../../common/base')
|
|
2
|
+
const { getEvent } = require('../../common/webhooks')
|
|
3
|
+
|
|
4
|
+
const base = require('./base')
|
|
5
|
+
const baseExtended = require('./baseExt')
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
event: {
|
|
9
|
+
$id: 'https://schemas.tillhub.com/v0/customers.delete.event.schema.json',
|
|
10
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
11
|
+
...getEvent({
|
|
12
|
+
type: 'object',
|
|
13
|
+
additionalProperties: false,
|
|
14
|
+
properties: {
|
|
15
|
+
...baseObject(),
|
|
16
|
+
...base,
|
|
17
|
+
...baseExtended
|
|
18
|
+
}
|
|
19
|
+
}, { eventEntityExample: 'customer', eventTypeExample: 'delete' })
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -2,7 +2,7 @@ const base = require('./base')
|
|
|
2
2
|
const create = require('./create')
|
|
3
3
|
const read = require('./read')
|
|
4
4
|
const update = require('./update')
|
|
5
|
-
const
|
|
5
|
+
const del = require('./delete')
|
|
6
6
|
const notesCreateRequest = require('./notes').create
|
|
7
7
|
const ext = require('./ext')
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ module.exports = {
|
|
|
10
10
|
create,
|
|
11
11
|
read,
|
|
12
12
|
update,
|
|
13
|
-
|
|
13
|
+
delete: del,
|
|
14
14
|
ext
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
const baseObject = require('../../common/base')
|
|
2
2
|
const commonResponse = require('../../common/response')
|
|
3
|
+
const { getEvent } = require('../../common/webhooks')
|
|
3
4
|
|
|
4
5
|
const base = require('./base')
|
|
6
|
+
const baseExtended = require('./baseExt')
|
|
5
7
|
|
|
6
8
|
module.exports = {
|
|
7
9
|
request: {
|
|
@@ -26,5 +28,18 @@ module.exports = {
|
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
})
|
|
31
|
+
},
|
|
32
|
+
event: {
|
|
33
|
+
$id: 'https://schemas.tillhub.com/v0/customers.update.event.schema.json',
|
|
34
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
35
|
+
...getEvent({
|
|
36
|
+
type: 'object',
|
|
37
|
+
additionalProperties: false,
|
|
38
|
+
properties: {
|
|
39
|
+
...baseObject(),
|
|
40
|
+
...base,
|
|
41
|
+
...baseExtended
|
|
42
|
+
}
|
|
43
|
+
}, { eventEntityExample: 'customer', eventTypeExample: 'update' })
|
|
29
44
|
}
|
|
30
45
|
}
|
package/lib/v0/taxes/base.js
CHANGED
|
@@ -70,32 +70,34 @@ module.exports = {
|
|
|
70
70
|
type: 'string',
|
|
71
71
|
'enum': [
|
|
72
72
|
'austria',
|
|
73
|
-
'czech_republic',
|
|
74
|
-
'france',
|
|
75
|
-
'germany',
|
|
76
|
-
'hungary',
|
|
77
|
-
'italy',
|
|
78
|
-
'ireland',
|
|
79
|
-
'monaco',
|
|
80
|
-
'spain',
|
|
81
|
-
'switzerland',
|
|
82
|
-
'sweden',
|
|
83
73
|
'belgium',
|
|
84
74
|
'bulgaria',
|
|
85
75
|
'croatia',
|
|
86
|
-
'finland',
|
|
87
76
|
'cyprus',
|
|
77
|
+
'czechia',
|
|
78
|
+
'denmark',
|
|
88
79
|
'estonia',
|
|
80
|
+
'finland',
|
|
81
|
+
'france',
|
|
82
|
+
'germany',
|
|
89
83
|
'greece',
|
|
84
|
+
'hungary',
|
|
85
|
+
'ireland',
|
|
86
|
+
'italy',
|
|
90
87
|
'latvia',
|
|
91
88
|
'lithuania',
|
|
92
89
|
'luxembourg',
|
|
93
90
|
'malta',
|
|
91
|
+
'monaco',
|
|
92
|
+
'netherlands',
|
|
94
93
|
'poland',
|
|
95
94
|
'portugal',
|
|
96
95
|
'romania',
|
|
97
96
|
'slovakia',
|
|
98
|
-
'slovenia'
|
|
97
|
+
'slovenia',
|
|
98
|
+
'spain',
|
|
99
|
+
'sweden',
|
|
100
|
+
'switzerland'
|
|
99
101
|
]
|
|
100
102
|
},
|
|
101
103
|
{
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const baseObject = require('../../common/base')
|
|
2
|
-
const { getEvent } = require('../../common/webhooks')
|
|
3
|
-
const base = require('./base')
|
|
4
|
-
const baseExtended = require('./baseExt')
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
$id: 'https://schemas.tillhub.com/v0/customers.create.event.schema.json',
|
|
8
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
9
|
-
...getEvent({
|
|
10
|
-
type: 'object',
|
|
11
|
-
additionalProperties: false,
|
|
12
|
-
properties: {
|
|
13
|
-
...baseObject(),
|
|
14
|
-
...base,
|
|
15
|
-
...baseExtended
|
|
16
|
-
}
|
|
17
|
-
}, { eventEntityExample: 'customer' })
|
|
18
|
-
}
|