Skip to content

Commit 6b86225

Browse files
Chore: DD events
1 parent a0d2b20 commit 6b86225

File tree

4 files changed

+126
-0
lines changed

4 files changed

+126
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
const authorization_active = `{
2+
"event": "direct_debit.authorization.active",
3+
"data": {
4+
"authorization_code": "AUTH_JV4T9Wawdj",
5+
"active": true,
6+
"last4": "1234",
7+
"channel": "direct_debit",
8+
"card_type": "mandate",
9+
"bank": "Guaranty Trust Bank",
10+
"exp_month": 1,
11+
"exp_year": 2034,
12+
"country_code": "NG",
13+
"brand": "Guaranty Trust Bank",
14+
"reusable": true,
15+
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
16+
"account_name": "Ravi Demo",
17+
"integration": 191390,
18+
"domain": "live",
19+
"reference": "miinublwbjkjm7",
20+
"customer": {
21+
"first_name": "Ravi",
22+
"last_name": "Demo",
23+
"code": "CUS_g0a2pm2ilthhh62",
24+
"email": "ravi@demo.com",
25+
"phone": "",
26+
"metadata": null,
27+
"risk_action": "default"
28+
}
29+
}
30+
}
31+
`
32+
33+
const authorization_created = `{
34+
"event": "direct_debit.authorization.created",
35+
"status": true,
36+
"message": "Authorization retrieved successfully",
37+
"data": {
38+
"authorization_code": "AUTH_JV4T9Wawdj",
39+
"active": true,
40+
"last4": "1234",
41+
"channel": "direct_debit",
42+
"card_type": "mandate",
43+
"bank": "Guaranty Trust Bank",
44+
"exp_month": 1,
45+
"exp_year": 2034,
46+
"country_code": "NG",
47+
"brand": "Guaranty Trust Bank",
48+
"reusable": true,
49+
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
50+
"account_name": "Ravi Demo",
51+
"customer": {
52+
"first_name": "Ravi",
53+
"last_name": "Demo",
54+
"code": "CUS_g0a2pm2ilthhh62",
55+
"email": "ravi@demo.com",
56+
"phone": "",
57+
"metadata": null,
58+
"risk_action": "default"
59+
}
60+
}
61+
}
62+
`
63+
64+
export {authorization_active, authorization_created}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"event": "direct_debit.authorization.active",
3+
"data": {
4+
"authorization_code": "AUTH_JV4T9Wawdj",
5+
"active": true,
6+
"last4": "1234",
7+
"channel": "direct_debit",
8+
"card_type": "mandate",
9+
"bank": "Guaranty Trust Bank",
10+
"exp_month": 1,
11+
"exp_year": 2034,
12+
"country_code": "NG",
13+
"brand": "Guaranty Trust Bank",
14+
"reusable": true,
15+
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
16+
"account_name": "Ravi Demo",
17+
"integration": 191390,
18+
"domain": "live",
19+
"reference": "miinublwbjkjm7",
20+
"customer": {
21+
"first_name": "Ravi",
22+
"last_name": "Demo",
23+
"code": "CUS_g0a2pm2ilthhh62",
24+
"email": "ravi@demo.com",
25+
"phone": "",
26+
"metadata": null,
27+
"risk_action": "default"
28+
}
29+
}
30+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"event": "direct_debit.authorization.created",
3+
"status": true,
4+
"message": "Authorization retrieved successfully",
5+
"data": {
6+
"authorization_code": "AUTH_JV4T9Wawdj",
7+
"active": true,
8+
"last4": "1234",
9+
"channel": "direct_debit",
10+
"card_type": "mandate",
11+
"bank": "Guaranty Trust Bank",
12+
"exp_month": 1,
13+
"exp_year": 2034,
14+
"country_code": "NG",
15+
"brand": "Guaranty Trust Bank",
16+
"reusable": true,
17+
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
18+
"account_name": "Ravi Demo",
19+
"customer": {
20+
"first_name": "Ravi",
21+
"last_name": "Demo",
22+
"code": "CUS_g0a2pm2ilthhh62",
23+
"email": "ravi@demo.com",
24+
"phone": "",
25+
"metadata": null,
26+
"risk_action": "default"
27+
}
28+
}
29+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type: event
2+
languages:
3+
- json

0 commit comments

Comments
 (0)