Skip to content

Commit 996404e

Browse files
Merge pull request #76 from PaystackOSS/patch-dva
Chore: Update fetch DVA response
2 parents 746af16 + 3447051 commit 996404e

File tree

2 files changed

+54
-82
lines changed

2 files changed

+54
-82
lines changed

dist/api/dedicated-virtual-account/fetch/response.json

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,35 @@
33
"description": "200 Ok",
44
"data": {
55
"status": true,
6-
"message": "Customer retrieved",
6+
"message": "Managed account successfully retrieved",
77
"data": {
8-
"transactions": [],
9-
"subscriptions": [],
10-
"authorizations": [],
11-
"first_name": null,
12-
"last_name": null,
13-
"email": "[email protected]",
14-
"phone": null,
15-
"metadata": null,
16-
"domain": "live",
17-
"customer_code": "CUS_h00a7ngn0xbzf2g",
18-
"risk_action": "default",
19-
"id": 17593,
20-
"integration": 190972,
21-
"createdAt": "2019-10-25T15:05:23.000Z",
22-
"updatedAt": "2019-10-25T15:05:23.000Z",
23-
"created_at": "2019-10-25T15:05:23.000Z",
24-
"updated_at": "2019-10-25T15:05:23.000Z",
25-
"total_transactions": 0,
26-
"total_transaction_value": [],
27-
"dedicated_account": {
28-
"id": 59,
29-
"account_name": "KAROKART/RHODA CHURCH",
30-
"account_number": "9807062474",
31-
"created_at": "2019-09-10T11:10:12.000Z",
32-
"updated_at": "2019-10-25T15:05:24.000Z",
33-
"currency": "NGN",
34-
"active": true,
35-
"assigned": true,
36-
"provider": {
37-
"id": 1,
38-
"provider_slug": "wema-bank",
39-
"bank_id": 20,
40-
"bank_name": "Wema Bank"
8+
"customer": {
9+
"id": 42200598,
10+
"first_name": "Rose",
11+
"last_name": "Sharon",
12+
"email": "[email protected]",
13+
"customer_code": "CUS_lfq5hi7rsnub7gl",
14+
"phone": "8091234650",
15+
"metadata": {
16+
"calling_code": "+234"
4117
},
42-
"assignment": {
43-
"assignee_id": 17593,
44-
"assignee_type": "Customer",
45-
"account_type": "PAY-WITH-TRANSFER-RECURRING",
46-
"integration": 190972
47-
}
48-
}
18+
"risk_action": "default",
19+
"international_format_phone": null
20+
},
21+
"bank": {
22+
"name": "Wema Bank",
23+
"id": 20,
24+
"slug": "wema-bank"
25+
},
26+
"id": 1234553,
27+
"account_name": "BOOMBOOMINDUS/Sharon Rose",
28+
"account_number": "1234709987",
29+
"created_at": "2021-02-13T00:29:50.000Z",
30+
"updated_at": "2021-03-30T10:03:54.000Z",
31+
"currency": "NGN",
32+
"split_config": "{\"subaccount\":\"ACCT_f651f39t7x9a9c6\"}",
33+
"active": true,
34+
"assigned": true
4935
}
5036
}
5137
}

src/api/dedicated-virtual-account/fetch/response.json

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,35 @@
33
"description": "200 Ok",
44
"data": {
55
"status": true,
6-
"message": "Customer retrieved",
6+
"message": "Managed account successfully retrieved",
77
"data": {
8-
"transactions": [],
9-
"subscriptions": [],
10-
"authorizations": [],
11-
"first_name": null,
12-
"last_name": null,
13-
"email": "[email protected]",
14-
"phone": null,
15-
"metadata": null,
16-
"domain": "live",
17-
"customer_code": "CUS_h00a7ngn0xbzf2g",
18-
"risk_action": "default",
19-
"id": 17593,
20-
"integration": 190972,
21-
"createdAt": "2019-10-25T15:05:23.000Z",
22-
"updatedAt": "2019-10-25T15:05:23.000Z",
23-
"created_at": "2019-10-25T15:05:23.000Z",
24-
"updated_at": "2019-10-25T15:05:23.000Z",
25-
"total_transactions": 0,
26-
"total_transaction_value": [],
27-
"dedicated_account": {
28-
"id": 59,
29-
"account_name": "KAROKART/RHODA CHURCH",
30-
"account_number": "9807062474",
31-
"created_at": "2019-09-10T11:10:12.000Z",
32-
"updated_at": "2019-10-25T15:05:24.000Z",
33-
"currency": "NGN",
34-
"active": true,
35-
"assigned": true,
36-
"provider": {
37-
"id": 1,
38-
"provider_slug": "wema-bank",
39-
"bank_id": 20,
40-
"bank_name": "Wema Bank"
8+
"customer": {
9+
"id": 42200598,
10+
"first_name": "Rose",
11+
"last_name": "Sharon",
12+
"email": "[email protected]",
13+
"customer_code": "CUS_lfq5hi7rsnub7gl",
14+
"phone": "8091234650",
15+
"metadata": {
16+
"calling_code": "+234"
4117
},
42-
"assignment": {
43-
"assignee_id": 17593,
44-
"assignee_type": "Customer",
45-
"account_type": "PAY-WITH-TRANSFER-RECURRING",
46-
"integration": 190972
47-
}
48-
}
18+
"risk_action": "default",
19+
"international_format_phone": null
20+
},
21+
"bank": {
22+
"name": "Wema Bank",
23+
"id": 20,
24+
"slug": "wema-bank"
25+
},
26+
"id": 1234553,
27+
"account_name": "BOOMBOOMINDUS/Sharon Rose",
28+
"account_number": "1234709987",
29+
"created_at": "2021-02-13T00:29:50.000Z",
30+
"updated_at": "2021-03-30T10:03:54.000Z",
31+
"currency": "NGN",
32+
"split_config": "{\"subaccount\":\"ACCT_f651f39t7x9a9c6\"}",
33+
"active": true,
34+
"assigned": true
4935
}
5036
}
5137
}

0 commit comments

Comments
 (0)