usman 0.3.26 → 0.3.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/usman/api/v1/docs_controller.rb +85 -6
- data/app/controllers/usman/api/v1/profile_controller.rb +5 -10
- data/app/controllers/usman/api/v1/registrations_controller.rb +136 -38
- data/app/models/device.rb +36 -2
- data/app/models/registration.rb +24 -2
- data/app/models/user.rb +24 -2
- data/app/views/usman/api/v1/docs/change_number/_neg_case_1.html.erb +30 -0
- data/app/views/usman/api/v1/docs/change_number/_neg_case_2.html.erb +30 -0
- data/app/views/usman/api/v1/docs/change_number/_neg_case_3.html.erb +40 -0
- data/app/views/usman/api/v1/docs/change_number/_neg_case_4.html.erb +42 -0
- data/app/views/usman/api/v1/docs/change_number/_neg_case_5.html.erb +40 -0
- data/app/views/usman/api/v1/docs/change_number/_neg_case_6.html.erb +40 -0
- data/app/views/usman/api/v1/docs/change_number/_neg_case_7.html.erb +38 -0
- data/app/views/usman/api/v1/docs/change_number/_pos_case_1.html.erb +37 -0
- data/app/views/usman/api/v1/docs/delete_account/_neg_case_1.html.erb +30 -0
- data/app/views/usman/api/v1/docs/delete_account/_neg_case_2.html.erb +30 -0
- data/app/views/usman/api/v1/docs/delete_account/_pos_case_1.html.erb +29 -0
- data/app/views/usman/api/v1/docs/send_otp_to_change_number/_neg_case_1.html.erb +30 -0
- data/app/views/usman/api/v1/docs/send_otp_to_change_number/_neg_case_2.html.erb +30 -0
- data/app/views/usman/api/v1/docs/send_otp_to_change_number/_neg_case_3.html.erb +35 -0
- data/app/views/usman/api/v1/docs/send_otp_to_change_number/_neg_case_4.html.erb +33 -0
- data/app/views/usman/api/v1/docs/send_otp_to_change_number/_pos_case_1.html.erb +32 -0
- data/app/views/usman/api/v1/docs/{single_contacts → single_contact}/_neg_case_1.html.erb +0 -0
- data/app/views/usman/api/v1/docs/{single_contacts → single_contact}/_pos_case_1.html.erb +0 -0
- data/config/locales/usman/api.ar.yml +58 -29
- data/config/locales/usman/api.en.yml +34 -28
- data/config/routes.rb +10 -1
- data/lib/usman/version.rb +1 -1
- data/spec/dummy/spec/factories/user.rb +4 -0
- metadata +22 -6
@@ -0,0 +1,30 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 2 - should set proper errors if the profile didn't exist"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
Authorization: Token token="87b01adbba90824b57add8cc06ad8738"
|
9
|
+
POST #{request.base_url}/api/v1/change_number
|
10
|
+
eos
|
11
|
+
|
12
|
+
api_output = <<-eos
|
13
|
+
{
|
14
|
+
"success": false,
|
15
|
+
"errors": {
|
16
|
+
"heading": "A profile doesn't exists for the mobile number you have provided",
|
17
|
+
"message": "You are trying to u a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
|
18
|
+
}
|
19
|
+
}
|
20
|
+
eos
|
21
|
+
|
22
|
+
%>
|
23
|
+
|
24
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
25
|
+
negative_case: true,
|
26
|
+
example_id: "neg_case_2",
|
27
|
+
api_title: api_title,
|
28
|
+
api_input: api_input,
|
29
|
+
api_output: api_output
|
30
|
+
} %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 3 - should respond with proper errors if OTP is invalid"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/change_number
|
9
|
+
{
|
10
|
+
"otp": "<INVALID OTP>",
|
11
|
+
"uuid": "asd907asdba78sbda",
|
12
|
+
"old_dialing_prefix": "<OLD DIALING PREFIX>",
|
13
|
+
"old_mobile_number": "<OLD MOBILE NUMBER>",
|
14
|
+
"new_dialing_prefix": "<NEW DIALING PREFIX>",
|
15
|
+
"new_mobile_number": "<NEW MOBILE NUMBER>"
|
16
|
+
}
|
17
|
+
eos
|
18
|
+
|
19
|
+
api_output = <<-eos
|
20
|
+
{
|
21
|
+
"success": false,
|
22
|
+
"errors": {
|
23
|
+
"heading": "The device is not registered",
|
24
|
+
"message": "Check if the UUID entered is valid",
|
25
|
+
"details": {
|
26
|
+
"uuid": "is invalid"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
eos
|
31
|
+
|
32
|
+
%>
|
33
|
+
|
34
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
35
|
+
negative_case: true,
|
36
|
+
example_id: "neg_case_3",
|
37
|
+
api_title: api_title,
|
38
|
+
api_input: api_input,
|
39
|
+
api_output: api_output
|
40
|
+
} %>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 4 - should respond with proper errors if invalid UUID is passed"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Invalid UUID means, the device you are using to send request is not registered.
|
7
|
+
|
8
|
+
Example:
|
9
|
+
|
10
|
+
POST #{request.base_url}/api/v1/change_number
|
11
|
+
{
|
12
|
+
"otp": "81242",
|
13
|
+
"uuid": "<INVALID UUID>",
|
14
|
+
"old_dialing_prefix": "<OLD DIALING PREFIX>",
|
15
|
+
"old_mobile_number": "<OLD MOBILE NUMBER>",
|
16
|
+
"new_dialing_prefix": "<NEW DIALING PREFIX>",
|
17
|
+
"new_mobile_number": "<NEW MOBILE NUMBER>"
|
18
|
+
}
|
19
|
+
eos
|
20
|
+
|
21
|
+
api_output = <<-eos
|
22
|
+
{
|
23
|
+
"success": false,
|
24
|
+
"errors": {
|
25
|
+
"heading": "The device is not registered",
|
26
|
+
"message": "Check if the UUID entered is valid",
|
27
|
+
"details": {
|
28
|
+
"uuid": "is invalid"
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
eos
|
33
|
+
|
34
|
+
%>
|
35
|
+
|
36
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
37
|
+
negative_case: true,
|
38
|
+
example_id: "neg_case_4",
|
39
|
+
api_title: api_title,
|
40
|
+
api_input: api_input,
|
41
|
+
api_output: api_output
|
42
|
+
} %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 5 - should respond with proper errors if old dialing prefix and mobile number doesn't match with that in the system"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/change_number
|
9
|
+
{
|
10
|
+
"otp": "81242",
|
11
|
+
"uuid": "asd907asdba78sbda",
|
12
|
+
"old_dialing_prefix": "<INVALID OLD DIALING PREFIX>",
|
13
|
+
"old_mobile_number": "<INVALID OLD MOBILE NUMBER>",
|
14
|
+
"new_dialing_prefix": "<NEW DIALING PREFIX>",
|
15
|
+
"new_mobile_number": "<NEW MOBILE NUMBER>"
|
16
|
+
}
|
17
|
+
eos
|
18
|
+
|
19
|
+
api_output = <<-eos
|
20
|
+
{
|
21
|
+
"success": false,
|
22
|
+
"errors": {
|
23
|
+
"heading": "Mobile number change failed",
|
24
|
+
"message": "Check if all the inputs are valid",
|
25
|
+
"details": {
|
26
|
+
"uuid": "is invalid"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
eos
|
31
|
+
|
32
|
+
%>
|
33
|
+
|
34
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
35
|
+
negative_case: true,
|
36
|
+
example_id: "neg_case_5",
|
37
|
+
api_title: api_title,
|
38
|
+
api_input: api_input,
|
39
|
+
api_output: api_output
|
40
|
+
} %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 6 - should respond with proper errors if new dialign prefix and mobile number are missing"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/change_number
|
9
|
+
{
|
10
|
+
"otp": "81242",
|
11
|
+
"uuid": "asd907asdba78sbda",
|
12
|
+
"old_dialing_prefix": "<OLD DIALING PREFIX>",
|
13
|
+
"old_mobile_number": "<OLD MOBILE NUMBER>",
|
14
|
+
"new_dialing_prefix": "<INVALID NEW DIALING PREFIX>",
|
15
|
+
"new_mobile_number": "<INVALID NEW MOBILE NUMBER>"
|
16
|
+
}
|
17
|
+
eos
|
18
|
+
|
19
|
+
api_output = <<-eos
|
20
|
+
{
|
21
|
+
"success": false,
|
22
|
+
"errors": {
|
23
|
+
"heading": "Mobile number change failed",
|
24
|
+
"message": "Check if all the inputs are valid",
|
25
|
+
"details": {
|
26
|
+
"uuid": "is invalid"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
eos
|
31
|
+
|
32
|
+
%>
|
33
|
+
|
34
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
35
|
+
negative_case: true,
|
36
|
+
example_id: "neg_case_6",
|
37
|
+
api_title: api_title,
|
38
|
+
api_input: api_input,
|
39
|
+
api_output: api_output
|
40
|
+
} %>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 7 - should respond with proper errors if the device is blocked"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/change_number
|
9
|
+
{
|
10
|
+
"otp": "81242",
|
11
|
+
"uuid": "<BLOCKED DEVICE UUID>",
|
12
|
+
"old_dialing_prefix": "<OLD DIALING PREFIX>",
|
13
|
+
"old_mobile_number": "<OLD MOBILE NUMBER>",
|
14
|
+
"new_dialing_prefix": "<INVALID NEW DIALING PREFIX>",
|
15
|
+
"new_mobile_number": "<INVALID NEW MOBILE NUMBER>"
|
16
|
+
}
|
17
|
+
eos
|
18
|
+
|
19
|
+
api_output = <<-eos
|
20
|
+
{
|
21
|
+
"success": false,
|
22
|
+
"errors": {
|
23
|
+
"heading": "This device is blocked",
|
24
|
+
"message": "You must have done some mal-practices",
|
25
|
+
"details": {}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
eos
|
29
|
+
|
30
|
+
%>
|
31
|
+
|
32
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
33
|
+
negative_case: true,
|
34
|
+
example_id: "neg_case_7",
|
35
|
+
api_title: api_title,
|
36
|
+
api_input: api_input,
|
37
|
+
api_output: api_output
|
38
|
+
} %>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Positive Case - 1 - should change the number"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/change_number
|
9
|
+
{
|
10
|
+
"otp": "81242",
|
11
|
+
"uuid": "asd907asdba78sbda",
|
12
|
+
"old_dialing_prefix": "<OLD DIALING PREFIX>",
|
13
|
+
"old_mobile_number": "<OLD MOBILE NUMBER>",
|
14
|
+
"new_dialing_prefix": "<NEW DIALING PREFIX>",
|
15
|
+
"new_mobile_number": "<NEW MOBILE NUMBER>"
|
16
|
+
}
|
17
|
+
eos
|
18
|
+
|
19
|
+
api_output = <<-eos
|
20
|
+
{
|
21
|
+
"success": true,
|
22
|
+
"alert": {
|
23
|
+
"heading": "Your mobile number has been changed successfully",
|
24
|
+
"message": "Use the new number to login next time"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
eos
|
28
|
+
|
29
|
+
%>
|
30
|
+
|
31
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
32
|
+
negative_case: false,
|
33
|
+
example_id: "pos_case_1",
|
34
|
+
api_title: api_title,
|
35
|
+
api_input: api_input,
|
36
|
+
api_output: api_output
|
37
|
+
} %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 1 - should set proper errors if api token is not present"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
Authorization: nil
|
9
|
+
DELETE #{request.base_url}/api/v1/delete_account
|
10
|
+
eos
|
11
|
+
|
12
|
+
api_output = <<-eos
|
13
|
+
{
|
14
|
+
"success": false,
|
15
|
+
"errors": {
|
16
|
+
"heading": "Invalid API Token",
|
17
|
+
"message": "Use the API Token you have received after accepting the terms and agreement"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
eos
|
21
|
+
|
22
|
+
%>
|
23
|
+
|
24
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
25
|
+
negative_case: true,
|
26
|
+
example_id: "neg_case_1",
|
27
|
+
api_title: api_title,
|
28
|
+
api_input: api_input,
|
29
|
+
api_output: api_output
|
30
|
+
} %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 2 - should set proper errors if the profile didn't exist"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
Authorization: Token token="87b01adbba90824b57add8cc06ad8738"
|
9
|
+
DELETE #{request.base_url}/api/v1/delete_account
|
10
|
+
eos
|
11
|
+
|
12
|
+
api_output = <<-eos
|
13
|
+
{
|
14
|
+
"success": false,
|
15
|
+
"errors": {
|
16
|
+
"heading": "A profile doesn't exists for the mobile number you have provided",
|
17
|
+
"message": "You are trying to u a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
|
18
|
+
}
|
19
|
+
}
|
20
|
+
eos
|
21
|
+
|
22
|
+
%>
|
23
|
+
|
24
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
25
|
+
negative_case: true,
|
26
|
+
example_id: "neg_case_2",
|
27
|
+
api_title: api_title,
|
28
|
+
api_input: api_input,
|
29
|
+
api_output: api_output
|
30
|
+
} %>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Positive Case - 1 - delete the account"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
DELETE #{request.base_url}/api/v1/delete_account
|
9
|
+
eos
|
10
|
+
|
11
|
+
api_output = <<-eos
|
12
|
+
{
|
13
|
+
"success": true,
|
14
|
+
"alert": {
|
15
|
+
"heading": "Your account has been deleted successfully",
|
16
|
+
"message": "You will be logged out from all sessions"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
eos
|
20
|
+
|
21
|
+
%>
|
22
|
+
|
23
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
24
|
+
negative_case: false,
|
25
|
+
example_id: "pos_case_1",
|
26
|
+
api_title: api_title,
|
27
|
+
api_input: api_input,
|
28
|
+
api_output: api_output
|
29
|
+
} %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 1 - should set proper errors if api token is not present"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
Authorization: nil
|
9
|
+
POST #{request.base_url}/api/v1/send_otp_to_change_number
|
10
|
+
eos
|
11
|
+
|
12
|
+
api_output = <<-eos
|
13
|
+
{
|
14
|
+
"success": false,
|
15
|
+
"errors": {
|
16
|
+
"heading": "Invalid API Token",
|
17
|
+
"message": "Use the API Token you have received after accepting the terms and agreement"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
eos
|
21
|
+
|
22
|
+
%>
|
23
|
+
|
24
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
25
|
+
negative_case: true,
|
26
|
+
example_id: "neg_case_1",
|
27
|
+
api_title: api_title,
|
28
|
+
api_input: api_input,
|
29
|
+
api_output: api_output
|
30
|
+
} %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 2 - should set proper errors if the profile didn't exist"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
Authorization: Token token="87b01adbba90824b57add8cc06ad8738"
|
9
|
+
POST #{request.base_url}/api/v1/send_otp_to_change_number
|
10
|
+
eos
|
11
|
+
|
12
|
+
api_output = <<-eos
|
13
|
+
{
|
14
|
+
"success": false,
|
15
|
+
"errors": {
|
16
|
+
"heading": "A profile doesn't exists for the mobile number you have provided",
|
17
|
+
"message": "You are trying to u a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
|
18
|
+
}
|
19
|
+
}
|
20
|
+
eos
|
21
|
+
|
22
|
+
%>
|
23
|
+
|
24
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
25
|
+
negative_case: true,
|
26
|
+
example_id: "neg_case_2",
|
27
|
+
api_title: api_title,
|
28
|
+
api_input: api_input,
|
29
|
+
api_output: api_output
|
30
|
+
} %>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 3 - should respond with proper errors if no parameters are passed"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/send_otp_to_change_number
|
9
|
+
{
|
10
|
+
"uuid": ""
|
11
|
+
}
|
12
|
+
eos
|
13
|
+
|
14
|
+
api_output = <<-eos
|
15
|
+
{
|
16
|
+
"success": false,
|
17
|
+
"errors": {
|
18
|
+
"heading": "The device is not registered",
|
19
|
+
"message": "Check if the UUID entered is valid",
|
20
|
+
"details": {
|
21
|
+
"uuid": "is invalid"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
eos
|
26
|
+
|
27
|
+
%>
|
28
|
+
|
29
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
30
|
+
negative_case: true,
|
31
|
+
example_id: "neg_case_3",
|
32
|
+
api_title: api_title,
|
33
|
+
api_input: api_input,
|
34
|
+
api_output: api_output
|
35
|
+
} %>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Negative Case - 4 - should respond with proper errors if the device is blocked"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/send_otp_to_change_number
|
9
|
+
{
|
10
|
+
"uuid": "<BLOCKED DEVICE UUID>"
|
11
|
+
}
|
12
|
+
eos
|
13
|
+
|
14
|
+
api_output = <<-eos
|
15
|
+
{
|
16
|
+
"success": false,
|
17
|
+
"errors": {
|
18
|
+
"heading": "This device is blocked",
|
19
|
+
"message": "You must have done some mal-practices",
|
20
|
+
"details": {}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
eos
|
24
|
+
|
25
|
+
%>
|
26
|
+
|
27
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
28
|
+
negative_case: true,
|
29
|
+
example_id: "neg_case_4",
|
30
|
+
api_title: api_title,
|
31
|
+
api_input: api_input,
|
32
|
+
api_output: api_output
|
33
|
+
} %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
api_title = "Positive Case - 1 - should resend the otp for valid inputs"
|
4
|
+
|
5
|
+
api_input = <<-eos
|
6
|
+
Example:
|
7
|
+
|
8
|
+
POST #{request.base_url}/api/v1/send_otp_to_change_number
|
9
|
+
{
|
10
|
+
"uuid": "asd907asdba78sbda"
|
11
|
+
}
|
12
|
+
eos
|
13
|
+
|
14
|
+
api_output = <<-eos
|
15
|
+
{
|
16
|
+
"success": true,
|
17
|
+
"alert": {
|
18
|
+
"heading": "An OTP has been sent to you",
|
19
|
+
"message": "Check your mobile for new message from us"
|
20
|
+
}
|
21
|
+
}
|
22
|
+
eos
|
23
|
+
|
24
|
+
%>
|
25
|
+
|
26
|
+
<%= render partial: "kuppayam/api/docs/example", locals: {
|
27
|
+
negative_case: false,
|
28
|
+
example_id: "pos_case_1",
|
29
|
+
api_title: api_title,
|
30
|
+
api_input: api_input,
|
31
|
+
api_output: api_output
|
32
|
+
} %>
|
File without changes
|
File without changes
|
@@ -1,13 +1,22 @@
|
|
1
1
|
en:
|
2
2
|
api:
|
3
3
|
general:
|
4
|
+
unexpected_error:
|
5
|
+
heading: "Unexpected Error"
|
6
|
+
message: "Please try after sometime. If the problem persist, please contact our technical support."
|
4
7
|
permission_denied:
|
5
8
|
heading: "Invalid API Token"
|
6
9
|
message: "Use the API Token you have received after accepting the terms and agreement"
|
7
|
-
register:
|
8
10
|
device_blocked:
|
9
11
|
heading: "This device is blocked"
|
10
12
|
message: "You must have done some mal-practices"
|
13
|
+
mobile_number_not_registered:
|
14
|
+
heading: "The mobile number is not registered"
|
15
|
+
message: "Check if the mobile number entered is valid"
|
16
|
+
device_not_registered:
|
17
|
+
heading: "The device is not registered"
|
18
|
+
message: "Check if the UUID entered is valid"
|
19
|
+
register:
|
11
20
|
otp_sent:
|
12
21
|
heading: "An OTP has been sent to you"
|
13
22
|
message: "Check your mobile for new message from us"
|
@@ -18,9 +27,6 @@ en:
|
|
18
27
|
heading: "Registring new mobile number FAILED"
|
19
28
|
message: "Check if all mandatory details are passed. Refer the error details for technical information"
|
20
29
|
resend_otp:
|
21
|
-
device_blocked:
|
22
|
-
heading: "This device is blocked"
|
23
|
-
message: "You must have done some mal-practices"
|
24
30
|
new_otp_sent:
|
25
31
|
heading: "An new OTP has been sent to you"
|
26
32
|
message: "Check your mobile for new message from us"
|
@@ -30,28 +36,13 @@ en:
|
|
30
36
|
otp_not_matching:
|
31
37
|
heading: "OTP verification was failed"
|
32
38
|
message: "Make sure that you enter the OTP correctly"
|
33
|
-
mobile_number_not_registered:
|
34
|
-
heading: "The mobile number is not registered"
|
35
|
-
message: "Resending OTP Failed. Check if the mobile number entered is valid"
|
36
|
-
device_not_registered:
|
37
|
-
heading: "The device is not registered"
|
38
|
-
message: "Resending OTP Failed. Check if the UUID entered is valid"
|
39
39
|
verify_otp:
|
40
|
-
device_blocked:
|
41
|
-
heading: "This device is blocked"
|
42
|
-
message: "You must have done some mal-practices"
|
43
40
|
device_verified:
|
44
41
|
heading: "OTP sent failed"
|
45
42
|
message: "This device may be already verified"
|
46
43
|
otp_not_matching:
|
47
44
|
heading: "OTP verification was failed"
|
48
45
|
message: "Make sure that you enter the OTP correctly"
|
49
|
-
mobile_number_not_registered:
|
50
|
-
heading: "The mobile number is not registered"
|
51
|
-
message: "Verifying OTP Failed. Check if the mobile number entered is valid"
|
52
|
-
device_not_registered:
|
53
|
-
heading: "The device is not registered"
|
54
|
-
message: "Verifying OTP Failed. Check if the UUID entered is valid"
|
55
46
|
verification_failed:
|
56
47
|
heading: "OTP verification was failed"
|
57
48
|
message: "Check if you have properly given the OTP along with dialing prefix, mobile number & UUID"
|
@@ -65,19 +56,34 @@ en:
|
|
65
56
|
tac_not_accepted:
|
66
57
|
heading: "You have not accepted the Terms & Conditions. Registration is complete only if you accept the T&C"
|
67
58
|
message: "Accept the T&C to finish the Registration. Pass true"
|
68
|
-
device_blocked:
|
69
|
-
heading: "This device is blocked"
|
70
|
-
message: "You must have done some mal-practices"
|
71
59
|
device_pending:
|
72
60
|
heading: "This device is not verified"
|
73
61
|
message: "You need to verify this device before you can accept the terms and conditions"
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
62
|
+
send_otp_to_change_number:
|
63
|
+
otp_send:
|
64
|
+
heading: "An OTP has been sent to you"
|
65
|
+
message: "Check your mobile for new message from us"
|
66
|
+
otp_send_failed:
|
67
|
+
heading: "OTP sent failed"
|
68
|
+
message: "Check if all the inputs are valid"
|
69
|
+
change_number:
|
70
|
+
number_changed:
|
71
|
+
heading: "Your mobile number has been changed successfully"
|
72
|
+
message: "Use the new number to login next time"
|
73
|
+
number_change_failed:
|
74
|
+
heading: "Mobile number change failed"
|
75
|
+
message: "Check if all the inputs are valid"
|
76
|
+
delete_account:
|
77
|
+
account_deleted:
|
78
|
+
heading: "Your account has been deleted successfully"
|
79
|
+
message: "You will be logged out from all sessions"
|
80
|
+
account_deletion_failed:
|
81
|
+
heading: "Mobile number change failed"
|
82
|
+
message: "Check if all the inputs are valid"
|
80
83
|
profile:
|
84
|
+
registration_details_missing:
|
85
|
+
heading: "A profile already exists for the mobile number you have provided"
|
86
|
+
message: "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
|
81
87
|
user_already_exists:
|
82
88
|
heading: "A profile already exists for the mobile number you have provided"
|
83
89
|
message: "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
|
@@ -89,4 +95,27 @@ en:
|
|
89
95
|
message: "You may access the profile API with API token to get the profile details in future"
|
90
96
|
invalid_inputs:
|
91
97
|
heading: "Saving Profile Failed"
|
92
|
-
message: "Check if all mandatory details are passed. Refer the error details for technical information"
|
98
|
+
message: "Check if all mandatory details are passed. Refer the error details for technical information"
|
99
|
+
profile_picture:
|
100
|
+
not_found:
|
101
|
+
heading: "Invalid User/Profile ID"
|
102
|
+
message: "Pass a vaild User/Profile ID to get the details. Get Profile Details along with their IDs from Profile API or from Registration APIs"
|
103
|
+
image_save_failed:
|
104
|
+
heading: "Saving user/profile image was failed"
|
105
|
+
message: "Make sure that the arguments are passed according to the API documentation. Please check the API Documentation for more details."
|
106
|
+
image_delete_failed:
|
107
|
+
heading: "Deleting user/profile image was failed"
|
108
|
+
message: "Make sure that the arguments are passed according to the API documentation. Please check the API Documentation for more details."
|
109
|
+
image_saved:
|
110
|
+
heading: "User/Profile Image was saved successfully"
|
111
|
+
message: "You may now use the URL to download the image in future"
|
112
|
+
image_deleted:
|
113
|
+
heading: "User/Profile Image was deleted successfully"
|
114
|
+
message: "You may use Profile Picture Upload API to add one again"
|
115
|
+
profile_picture_does_not_exists:
|
116
|
+
heading: "Profile Picture doesn't exists"
|
117
|
+
message: "You are trying to destroy a profile picture when it doesn't exist"
|
118
|
+
contacts:
|
119
|
+
synced_successfully:
|
120
|
+
heading: "The Contacts has been synced successfully"
|
121
|
+
message: "You may now store the done deal user id of these contacts returned in this response"
|