Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package stubs |
||
2 | |||
3 | // CollectionToken is a dummy json response for the `/collection/token/` endpoint |
||
4 | func CollectionToken() []byte { |
||
5 | return []byte(` |
||
6 | { |
||
7 | "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", |
||
8 | "token_type": "access_token", |
||
9 | "expires_in": 3600 |
||
10 | } |
||
11 | `) |
||
12 | } |
||
13 | |||
14 | // CollectionRequestToPayStatus is a dummy json response for the `/collection/v1_0/requesttopay/{referenceId}` endpoint |
||
15 | func CollectionRequestToPayStatus() []byte { |
||
16 | return []byte(` |
||
17 | { |
||
18 | "amount": "100", |
||
19 | "currency": "UGX", |
||
20 | "financialTransactionId": "23503452", |
||
21 | "externalId": "947354", |
||
22 | "payer": { |
||
23 | "partyIdType": "MSISDN", |
||
24 | "partyId": "4656473839" |
||
25 | }, |
||
26 | "status": "SUCCESSFUL" |
||
27 | } |
||
28 | `) |
||
29 | } |
||
30 | |||
31 | // CollectionAccountBalance is a dummy json response for the `/collection/v1_0/account/balance` endpoint |
||
32 | func CollectionAccountBalance() []byte { |
||
33 | return []byte(` |
||
34 | { |
||
35 | "availableBalance": "1000", |
||
36 | "currency": "EUR" |
||
37 | } |
||
38 | `) |
||
39 | } |
||
40 | |||
41 | // CollectionValidateAccountHolderStatus is a dummy json response for the `/collection/v1_0/accountholder/{accountHolderIdType}/{accountHolderId}/active` endpoint |
||
42 | func CollectionValidateAccountHolderStatus() []byte { |
||
43 | return []byte(` |
||
44 | { |
||
45 | "result": true |
||
46 | } |
||
47 | `) |
||
48 | } |
||
49 | |||
50 | // CollectionGetBasicUserinfo is a dummy json response for the `/collection/v1_0/accountholder/{accountHolderIdType}/{accountHolderId}/basicuserinfo` endpoint |
||
51 | func CollectionGetBasicUserinfo() []byte { |
||
52 | return []byte(` |
||
53 | { |
||
60 |