Skip to content

Commit

Permalink
feat(loyalty_logs): update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Quynh To Tuan authored and qtotuan committed Jul 3, 2019
1 parent 5782bb4 commit 3604337
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
24 changes: 17 additions & 7 deletions lib/v0/loyalty_logs/base.js
Expand Up @@ -8,12 +8,6 @@ module.exports = {
type: 'object',
additionalProperties: false,
properties: {
loyalty_system: {
description: 'The uuid of the loyalty system that this log belongs to.',
type: 'string',
format: 'uuid',
example: '936835f7-2d75-41d2-9001-38ed6e458328'
},
operation: {
type: 'string',
enum: [
Expand All @@ -34,7 +28,23 @@ module.exports = {
'delete_card',
'delete_card_failed',
'lookup_card',
'lookup_card_failed'
'lookup_card_failed',
'create_account',
'create_account_failed',
'create_card',
'create_card_failed',
'update_system',
'update_system_failed',
'update_account',
'update_account_failed',
'update_card',
'update_card_failed',
'get_one_card',
'get_one_card_failed',
'get_one_value',
'get_one_value_failed',
'create_values',
'create_values_failed'
]
},
loyalty_account: oneOf({
Expand Down
3 changes: 1 addition & 2 deletions lib/v0/loyalty_logs/create.js
Expand Up @@ -18,8 +18,7 @@ module.exports.response = {
additionalProperties: true,
type: 'object',
required: [
'id',
'loyalty_system'
'id'
],
properties: defaultResponse
}

0 comments on commit 3604337

Please sign in to comment.