Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package stubs |
||
2 | |||
3 | // BillsCreateDStvPaymentResponse is a dummy JSOn response for checking a dstv user |
||
4 | func BillsCreateDStvPaymentResponse() string { |
||
5 | return ` |
||
6 | { |
||
7 | "status": "success", |
||
8 | "message": "Bill payment successful", |
||
9 | "data": { |
||
10 | "phone_number": "+23490803840303", |
||
11 | "amount": 500, |
||
12 | "network": "9MOBILE", |
||
13 | "flw_ref": "CF-FLYAPI-20200311081921359990", |
||
14 | "tx_ref": "BPUSSD1583957963415840" |
||
15 | } |
||
16 | } |
||
17 | ` |
||
18 | } |
||
19 | |||
20 | // BillsValidateDstvResponse is a dummy response for validating a DStv payment |
||
21 | func BillsValidateDstvResponse() string { |
||
22 | return ` |
||
23 | { |
||
24 | "status": "success", |
||
25 | "message": "Item validated successfully", |
||
26 | "data": { |
||
27 | "response_code": "00", |
||
28 | "address": null, |
||
29 | "response_message": "Successful", |
||
30 | "name": "MTN", |
||
31 | "biller_code": "BIL099", |
||
32 | "customer": "08038291822", |
||
33 | "product_code": "AT099", |
||
34 | "email": null, |
||
35 | "fee": 100, |
||
36 | "maximum": 0, |
||
37 | "minimum": 0 |
||
38 | } |
||
39 | } |
||
40 | ` |
||
41 | } |
||
42 | |||
43 | // BillsGetStatusVerboseResponse is a dummy response of a verbose bill status |
||
44 | func BillsGetStatusVerboseResponse() string { |
||
45 | return ` |
||
46 | { |
||
67 |