@tillhub/schemas 6.276.0 → 6.277.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,12 @@
|
|
|
1
|
+
# [6.277.0](https://github.com/tillhub/schemas/compare/v6.276.0...v6.277.0) (2023-12-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **transactions:** extend bnpl on payments ([2666563](https://github.com/tillhub/schemas/commit/2666563))
|
|
7
|
+
* **transactions:** payments ([4b96cf3](https://github.com/tillhub/schemas/commit/4b96cf3))
|
|
8
|
+
* **transactions:** payments ([3d9bfd0](https://github.com/tillhub/schemas/commit/3d9bfd0))
|
|
9
|
+
|
|
1
10
|
# [6.276.0](https://github.com/tillhub/schemas/compare/v6.275.3...v6.276.0) (2023-12-11)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const { oneOf } = require('../../../../../helpers/payload-or-null')
|
|
2
|
+
|
|
3
|
+
// https://unzer-pl.stoplight.io/docs/upl-purchase-api/b3A6MTY5NjAxNQ-query-for-a-purchase-by-purchase-id#Responses
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
description: 'BNPL details, scalable',
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
type: 'object',
|
|
9
|
+
properties: {
|
|
10
|
+
purchase: {
|
|
11
|
+
description: 'Purchase details when Unzer BNPL is used',
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: {
|
|
14
|
+
purchaseId: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
description: 'Unzer BNPL purchase ID',
|
|
17
|
+
example: 'CID-wh3m5f2co5weq4sjfdpq'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
raw_response: oneOf({
|
|
22
|
+
default: null,
|
|
23
|
+
description: 'The full raw response of the BNPL API for documentation and analysis.',
|
|
24
|
+
type: 'string',
|
|
25
|
+
maxLength: 16384
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -2,6 +2,7 @@ const { stripIndents } = require('common-tags')
|
|
|
2
2
|
const { oneOf } = require('../../../../helpers/payload-or-null')
|
|
3
3
|
const voucherObject = require('../../components/embedded/voucher/base')
|
|
4
4
|
const terminalObject = require('../../components/embedded/terminal/base')
|
|
5
|
+
const bnplObject = require('../../components/embedded/bnpl/base')
|
|
5
6
|
|
|
6
7
|
const relatedObject = require('../../components/embedded/reference/related')
|
|
7
8
|
const dependsObject = require('../../components/embedded/reference/depends')
|
|
@@ -70,7 +71,8 @@ module.exports = {
|
|
|
70
71
|
'card_tim', // deprecated -> use 'card'
|
|
71
72
|
'card_adyen', // deprecated -> use 'card'
|
|
72
73
|
'card',
|
|
73
|
-
'terminal_gift_card' // e.g. Adyen Gift Card
|
|
74
|
+
'terminal_gift_card', // e.g. Adyen Gift Card
|
|
75
|
+
'buy_now_pay_later' // Unzer: Buy-Now-Pay-Later
|
|
74
76
|
],
|
|
75
77
|
description: 'Payment option type'
|
|
76
78
|
})
|
|
@@ -158,7 +160,8 @@ module.exports = {
|
|
|
158
160
|
'cardTerminalApi', // The terminal API used for this payment
|
|
159
161
|
'cardTerminalProvider', // If available, the provider identifier for the used terminal
|
|
160
162
|
'cardTransactionID', // The unique terminal transaction identifier within the given terminal API context
|
|
161
|
-
'isTerminalConnected' // If true, the terminal was used via it\'s API and the above fields are mandatory. If false, the cashier is responsible for handling disconnected card payments
|
|
163
|
+
'isTerminalConnected', // If true, the terminal was used via it\'s API and the above fields are mandatory. If false, the cashier is responsible for handling disconnected card payments
|
|
164
|
+
'bnpl_purchase_id' // The unique purchase identifier within the given Unzer BNPL context
|
|
162
165
|
]
|
|
163
166
|
},
|
|
164
167
|
value: oneOf({
|
|
@@ -189,7 +192,8 @@ module.exports = {
|
|
|
189
192
|
'card_opi', // legacy, deprecated
|
|
190
193
|
'card_concardis', // legacy, deprecated
|
|
191
194
|
'card_adyen', // legacy, deprecated
|
|
192
|
-
'card_tim' // legacy, deprecated
|
|
195
|
+
'card_tim', // legacy, deprecated
|
|
196
|
+
'buy_now_pay_later' // Unzer: Buy-Now-Pay-Later
|
|
193
197
|
]
|
|
194
198
|
}),
|
|
195
199
|
_context: {
|
|
@@ -233,10 +237,16 @@ module.exports = {
|
|
|
233
237
|
...voucherObject
|
|
234
238
|
}),
|
|
235
239
|
default: null
|
|
240
|
+
},
|
|
241
|
+
buy_now_pay_later: {
|
|
242
|
+
description: 'Details when Unzer BNPL is used',
|
|
243
|
+
...oneOf({
|
|
244
|
+
...bnplObject
|
|
245
|
+
}),
|
|
246
|
+
default: null
|
|
236
247
|
}
|
|
237
248
|
}
|
|
238
|
-
})
|
|
239
|
-
default: null
|
|
249
|
+
})
|
|
240
250
|
},
|
|
241
251
|
payment_option: oneOf({
|
|
242
252
|
type: 'string',
|