Skip to content

Commit

Permalink
feat(voucher_systems): add locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Quynh To Tuan committed Jan 15, 2020
1 parent e746458 commit 83e15db
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/v0/voucher_systems/base.js
Expand Up @@ -79,7 +79,7 @@ module.exports = {
},
branches: oneOf({
type: 'array',
description: 'If defined then only these branches will be using this system. If not defined, there will be no restrictions on which branches can use this system.',
description: 'This is deprecated. Please use "locations" instead.',
minItems: 1,
items: {
type: 'string',
Expand Down Expand Up @@ -232,5 +232,14 @@ module.exports = {
'id'
]
}
}),
locations: oneOf({
type: 'array',
description: 'If defined then only these locations will be using this system. If not defined, there will be no restrictions on which locations can use this system.',
minItems: 1,
items: {
type: 'string',
format: 'uuid'
}
})
}

0 comments on commit 83e15db

Please sign in to comment.