Skip to content

Commit

Permalink
feat(configurations): adds discounts
Browse files Browse the repository at this point in the history
  • Loading branch information
eljefedelrodeodeljefe committed Mar 7, 2019
1 parent 919639c commit 74b99af
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/v1/configurations/base.js
Expand Up @@ -327,5 +327,13 @@ module.exports = {
}
]
},
integrations: require('./items/integrations')
integrations: require('./items/integrations'),
discounts: {
oneOf: [
{
type: 'null'
},
require('./items/discounts')
]
}
}
21 changes: 21 additions & 0 deletions lib/v1/configurations/items/discounts.js
@@ -0,0 +1,21 @@
module.exports = {
type: 'object',
properties: {
display: {
type: 'object',
properties: {
show_inactive: {
default: false,
oneOf: [
{
type: 'null'
},
{
type: 'boolean'
}
]
}
}
}
}
}

0 comments on commit 74b99af

Please sign in to comment.