forked from cubyn/payline
-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.graphql
55 lines (48 loc) · 2.02 KB
/
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
type Query {
# Get information for the wallet
getWallet(merchantId: String, accessKey: String, contractId: String, environment: String,
walletId: String!): WalletOutput!
transactionDetail(merchantId: String, accessKey: String, contractId: String, environment: String,
transactionId: String!): TransactionDetailOutput!
}
type Mutation {
# Create new wallet - needs to generate id first.
createWallet(merchantId: String, accessKey: String, contractId: String, environment: String,
walletId: String!, card: CardInput!): WalletOutput!
doAuthorization(merchantId: String, accessKey: String, contractId: String, environment: String,
payment: PaymentInput!, card: CardInput!, referencePrefix: String): TransactionOutput!
doReAuthorization(merchantId: String, accessKey: String, contractId: String, environment: String,
transactionId: String!, payment: PaymentInput!, referencePrefix: String): TransactionOutput!
doCapture(merchantId: String, accessKey: String, contractId: String, environment: String,
transactionId: String!, payment: PaymentInput!): TransactionOutput!
doReset(merchantId: String, accessKey: String, contractId: String, environment: String,
transactionId: String!, comment: String): TransactionOutput!
doRefund(merchantId: String, accessKey: String, contractId: String, environment: String,
transactionId: String!, payment: PaymentInput!, comment: String): TransactionOutput!
doPayment(merchantId: String, accessKey: String, contractId: String, environment: String,
transactionId: String!, payment: PaymentInput!, comment: String): TransactionOutput!
}
input CardInput {
number: String!
cvx: String!
cardholder: String!
expirationDate: String!
type: String
}
input PaymentInput {
amount: Int!
softDescriptor: String
}
type TransactionOutput {
id: String!
}
type TransactionDetailOutput {
id: String!
}
type WalletOutput {
wallet: String!
}
schema {
query: Query
mutation: Mutation
}