-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMember_app_purchase.dtd
78 lines (78 loc) · 1.76 KB
/
Member_app_purchase.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Member_app_purchase.dtd",
"title": "Member application purchase",
"type": "object",
"description": "For purchasing Route4Me application by the member. url: https://www.route4me.com/api/member/user_license.php.",
"required": [
"api_key",
"member_id",
"device_id",
"device_type",
"subscription_name",
"token",
"payload",
"format"
],
"properties": {
"api_key": {
"type": "string",
"title": "API key",
"description": "API key of en user. HTTP method - GET"
},
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Member ID. HTTP method - POST"
},
"device_id": {
"type": "integer",
"title": "Device ID",
"description": "Unique ID of a user's device. HTTP method - POST"
},
"device_type": {
"enum": [
"web",
"iphone",
"ipad",
"android_phone",
"android_tablet"
],
"title": "Device type",
"descrption": "Type of the user's device. HTTP method - POST"
},
"subscription_name": {
"type": "string",
"enum": [
"CANCELLED",
"ANDROID_MONTHLY",
"ANDROID_YEARLY",
"IPHONE_MONTHLY",
"IPAD_MONTHLY",
"IPHONE_YEARLY",
"IPAD_YEARLY"
],
"title": "Subscription name",
"description": "Valid subscription name. HTTP method - POST"
},
"token": {
"type": "string",
"title": "Token",
"description": "Token from Google. HTTP method - POST"
},
"payload": {
"type": "string",
"title": "Payload",
"description": "Payload from Google. HTTP method - POST"
},
"format": {
"type": "string",
"enum": [
"json",
"xml"
],
"title": "Format",
"description": "Response format. HTTP method - POST"
}
}
}