Skip to content

Commit

Permalink
feat(discounts): replace amount with rate, value and require only one
Browse files Browse the repository at this point in the history
  • Loading branch information
erezsob committed Jun 30, 2020
1 parent 46e2df7 commit 01ac32d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/v0/discounts/create.js
Expand Up @@ -6,8 +6,15 @@ module.exports.request = {
additionalProperties: false,
required: [
'group',
'type',
'amount'
'type'
],
oneOf: [
{
required: ['rate']
},
{
required: ['value']
}
],
properties: base,
type: 'object'
Expand Down

0 comments on commit 01ac32d

Please sign in to comment.