-
Notifications
You must be signed in to change notification settings - Fork 2
/
shared.schema.graphql
57 lines (45 loc) · 1 KB
/
shared.schema.graphql
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
type DefaultResponse{
status:Boolean
message:String
}
type Result{
status:Boolean,
message:String,
token:String
}
type OtpValidation{
status:Boolean
message: String
extraDetails:String
}
type OtpValidated{
status:Boolean
}
type MobileResult{
status:Boolean
message: String
token:String
proceed:Boolean
hash:String
}
type CustomerInfo{
status:Boolean
message:String
customerType:String #Prepaid, Postpaid
firstName:String
lastName:String
idNumber:String
}
type Query {
generateToken:Result #generates access token
generateOTP:DefaultResponse
getToken:MobileResult
isAuthenticated(page:String!):OtpValidated
getCustomerInfo:CustomerInfo
validateServicePinSession:DefaultResponse
}
type Mutation{
validateOTP(otp:Int!, page:String!): OtpValidation #page can be "/mpesa", "/account/top-up"
isAuthenticated(page:String!):OtpValidated
validateServicePinSession(servicePin:Float!):DefaultResponse
}