Feedback API error improved

This commit is contained in:
Finn 2017-09-18 11:31:57 +01:00
parent 414acd76fb
commit dd36cd0c0c
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ has error_messages => sub {
return {
email => {
required => { message => 'Email is required', status => 400 },
in_resultset => { message => 'Change meeee', status => 400 },
in_resultset => { message => 'Email does not exist in database', status => 400 },
},
feedbacktext => {
required => { message => 'Feedback is required', status => 400 },

View file

@ -50,8 +50,8 @@ The postcode of an organisation, optional key. Used when transaction_Type is 3.
has error_messages => sub {
return {
transaction_type => {
required => { message => 'transaction_type is missing.', status => 400 },
in => { message => 'transaction_type is not a valid value.', status => 400 },
required => { message => 'transaction type is missing.', status => 400 },
in => { message => 'transaction type is not a valid value.', status => 400 },
},
transaction_value => {
required => { message => 'transaction amount is missing', status => 400 },