-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchargeCreated.json
46 lines (46 loc) · 1.1 KB
/
chargeCreated.json
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "chargeCreated",
"type": "object",
"properties": {
"chargeUuid": {
"type": "string",
"description": "Unique ID for the charge that has been created"
},
"chargeIntent": {
"type": "string",
"enum": [
"METHOD_ADD",
"METHOD_REFRESH",
"METHOD_VERIFY",
"CAPTURE",
"REFUND"
],
"description": "The intent of this charge"
},
"contract": {
"enum": [
"NONE",
"PAYMENT",
"SUBSCRIPTION_INITIAL",
"SUBSCRIPTION_RENEWAL",
"ONECLICK"
]
},
"amount": {
"$ref": "money.json"
},
"references": {
"type": "object",
"description": "A keyed array of references assigned to the charge"
},
"expiryTime": {
"type": "number",
"description": "Expiry time of the charge, output as the number of seconds since unix epoch"
},
"merchantReference": {
"type": "string",
"description": "Unique reference for this charge, as defined by the merchant"
}
}
}