Skip to content

Commit

Permalink
feat(configuration.base): hide sum feature (#337)
Browse files Browse the repository at this point in the history
* feat(configuration.base): hide sum feature

Possibilty for user to hide totals on cart view

* feat(hide sum): Added balance reconciliation

Moved revision safety in settings and added balance reconciliation

* style:

Co-authored-by: Andreas Hilbert <andreas.hilbert@tillhub.de>
  • Loading branch information
Willgeorges and alghanor committed Mar 6, 2020
1 parent 03eceb7 commit fa37fb1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions lib/v1/configurations/items/settings.js
Expand Up @@ -8,6 +8,39 @@ module.exports = {
{
type: 'object',
properties: {
revision_safety: {
type: 'object',
additionalProperties: false,
properties: {
hide_sum_cart: oneOf({
description: 'Specifies if hiding of cart sum is enabled.',
type: 'boolean',
default: false
}),
visibilty_of_sum: oneOf({
description: 'Specifies which sums are displayed on cart view if hide_sum_cart is enabled',
type: 'array',
items: {
type: 'string',
enum: [
'subtotal',
'discount',
'total',
'tax'
]
}
}),
balance_reconciliation: oneOf({
type: 'string',
description: 'defines wether balance reconciliation with terminal is mandatory',
enum: [
'mandatory',
'optional',
'none'
]
})
}
},
language: {
type: 'string',
minLength: 1,
Expand Down

0 comments on commit fa37fb1

Please sign in to comment.