Feedback API error improved
This commit is contained in:
parent
414acd76fb
commit
dd36cd0c0c
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ has error_messages => sub {
|
||||||
return {
|
return {
|
||||||
email => {
|
email => {
|
||||||
required => { message => 'Email is required', status => 400 },
|
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 => {
|
feedbacktext => {
|
||||||
required => { message => 'Feedback is required', status => 400 },
|
required => { message => 'Feedback is required', status => 400 },
|
||||||
|
|
|
@ -50,8 +50,8 @@ The postcode of an organisation, optional key. Used when transaction_Type is 3.
|
||||||
has error_messages => sub {
|
has error_messages => sub {
|
||||||
return {
|
return {
|
||||||
transaction_type => {
|
transaction_type => {
|
||||||
required => { message => 'transaction_type is missing.', status => 400 },
|
required => { message => 'transaction type is missing.', status => 400 },
|
||||||
in => { message => 'transaction_type is not a valid value.', status => 400 },
|
in => { message => 'transaction type is not a valid value.', status => 400 },
|
||||||
},
|
},
|
||||||
transaction_value => {
|
transaction_value => {
|
||||||
required => { message => 'transaction amount is missing', status => 400 },
|
required => { message => 'transaction amount is missing', status => 400 },
|
||||||
|
|
Reference in a new issue