@tillhub/schemas 6.204.0 → 6.206.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 CHANGED
@@ -1,3 +1,24 @@
1
+ # [6.206.0](https://github.com/tillhub/schemas/compare/v6.205.0...v6.206.0) (2023-04-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** tips ([cb8afb7](https://github.com/tillhub/schemas/commit/cb8afb7))
7
+
8
+ # [6.205.0](https://github.com/tillhub/schemas/compare/v6.204.0...v6.205.0) (2023-04-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **branches:** fix fields type #UNTIL-6492 ([dbcf2aa](https://github.com/tillhub/schemas/commit/dbcf2aa)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
14
+ * **branches:** valid date declaration #UNTIL-6492 ([1f4866d](https://github.com/tillhub/schemas/commit/1f4866d)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
15
+
16
+
17
+ ### Features
18
+
19
+ * **branches:** extend schema for MMS model #UNTIL-6492 ([c475f02](https://github.com/tillhub/schemas/commit/c475f02)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
20
+ * **registers:** extend schema for MMS model #UNTIL-6492 ([af9dded](https://github.com/tillhub/schemas/commit/af9dded)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
21
+
1
22
  # [6.204.0](https://github.com/tillhub/schemas/compare/v6.203.0...v6.204.0) (2023-03-31)
2
23
 
3
24
 
@@ -1,5 +1,6 @@
1
1
  const { stripIndents } = require('common-tags')
2
2
  const customProperties = require('../../common/custom_properties')
3
+ const { oneOf } = require('../../helpers/payload-or-null')
3
4
  const { getImages } = require('../../common/images')
4
5
 
5
6
  module.exports = {
@@ -159,6 +160,12 @@ module.exports = {
159
160
  type: 'boolean',
160
161
  default: false
161
162
  },
163
+ deleted_at: oneOf({
164
+ description: 'The date when branch was deleted.',
165
+ example: '2023-04-05T16:06:04.849Z',
166
+ type: 'string',
167
+ format: 'date-time'
168
+ }),
162
169
  metadata: {
163
170
  description: 'Arbitrary user defined data.',
164
171
  type: 'object',
@@ -194,6 +201,12 @@ module.exports = {
194
201
  }
195
202
  ]
196
203
  },
204
+ is_mms: {
205
+ description: 'The branch belongs to MMS.',
206
+ example: 'false',
207
+ type: 'boolean',
208
+ default: false
209
+ },
197
210
  cost_center: {
198
211
  description: 'Cost center unique ID',
199
212
  example: '7882448928329',
@@ -106,15 +106,7 @@ module.exports = oneOf({
106
106
  'enum': [
107
107
  'cash',
108
108
  'card',
109
- 'invoice',
110
- 'card_opi', // deprecated, use 'card' instead
111
- 'card_concardis', // deprecated, use 'card' instead
112
- 'card_tim', // deprecated, use 'card' instead
113
- 'card_adyen', // deprecated, use 'card' instead
114
- 'gift_card',
115
- 'default',
116
- 'undefined',
117
- 'voucher'
109
+ 'card_opi' // deprecated, use 'card' instead
118
110
  ]
119
111
  }
120
112
  })
@@ -125,6 +125,19 @@ module.exports = {
125
125
  default: true
126
126
  },
127
127
  deleted: {
128
+ description: 'Soft delete this register.',
129
+ type: 'boolean',
130
+ default: false
131
+ },
132
+ deleted_at: oneOf({
133
+ description: 'The date when register was deleted.',
134
+ example: '2023-04-05T16:06:04.849Z',
135
+ type: 'string',
136
+ format: 'date-time'
137
+ }),
138
+ is_mms: {
139
+ description: 'The register belongs to MMS.',
140
+ example: 'false',
128
141
  type: 'boolean',
129
142
  default: false
130
143
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.204.0",
3
+ "version": "6.206.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",