|
1
|
|
|
package stubs |
|
2
|
|
|
|
|
3
|
|
|
// TopupGetPackagesOk returns the api responses to /topup |
|
4
|
|
|
func TopupGetPackagesOk() []byte { |
|
5
|
|
|
return []byte(` |
|
6
|
|
|
[ |
|
7
|
|
|
{ |
|
8
|
|
|
"serviceid":"2000", |
|
9
|
|
|
"merchant":"CMENEOPREPAID", |
|
10
|
|
|
"payItemId":"S-112-974-CMENEOPREPAID-2000-10010-1", |
|
11
|
|
|
"amountType":"CUSTOM", |
|
12
|
|
|
"localCur":"XAF", |
|
13
|
|
|
"name":"Custom Amount", |
|
14
|
|
|
"amountLocalCur":null, |
|
15
|
|
|
"description":"", |
|
16
|
|
|
"payItemDescr":null, |
|
17
|
|
|
"optStrg":null, |
|
18
|
|
|
"optNmb":null |
|
19
|
|
|
}, |
|
20
|
|
|
{ |
|
21
|
|
|
"serviceid":"20062", |
|
22
|
|
|
"merchant":"CMORANGE", |
|
23
|
|
|
"payItemId":"S-112-951-CMORANGE-20062-CM_ORANGE_VTU_CUSTOM-1", |
|
24
|
|
|
"amountType":"CUSTOM", |
|
25
|
|
|
"localCur":"XAF", |
|
26
|
|
|
"name":"Airtime Custom Amount", |
|
27
|
|
|
"amountLocalCur":null, |
|
28
|
|
|
"description":"Airtime Custom Topup", |
|
29
|
|
|
"payItemDescr":null, |
|
30
|
|
|
"optStrg":null, |
|
31
|
|
|
"optNmb":null |
|
32
|
|
|
} |
|
33
|
|
|
] |
|
34
|
|
|
`) |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
// TopupCollectOk returns the api response to the `/collectstd` of a topup transaction |
|
38
|
|
|
func TopupCollectOk() []byte { |
|
39
|
|
|
return []byte(` |
|
40
|
|
|
{ |
|
41
|
|
|
"ptn":"99999166542651400095315364801168", |
|
42
|
|
|
"timestamp":"2022-10-10T18:28:34+00:00", |
|
43
|
|
|
"agentBalance":"247000.00", |
|
44
|
|
|
"receiptNumber":"999992624813740205", |
|
45
|
|
|
"veriCode":"f20873", |
|
46
|
|
|
"priceLocalCur":"1000.00", |
|
47
|
|
|
"priceSystemCur":"1000.00", |
|
48
|
|
|
"localCur":"XAF", |
|
49
|
|
|
"systemCur":"XAF", |
|
50
|
|
|
"trid": "999992624813740205", |
|
51
|
|
|
"pin":null, |
|
52
|
|
|
"status":"SUCCESS", |
|
53
|
|
|
"payItemDescr":null, |
|
54
|
|
|
"payItemId":"S-112-951-CMORANGE-20062-CM_ORANGE_VTU_CUSTOM-1" |
|
55
|
|
|
} |
|
56
|
|
|
`) |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
// TopupVerifyOk returns the api response to the `/verifytx` of a topup transaction |
|
60
|
|
|
func TopupVerifyOk() []byte { |
|
61
|
|
|
return []byte(` |
|
62
|
|
|
[ |
|
63
|
|
|
{ |
|
64
|
|
|
"ptn":"99999166542651400095315364801168", |
|
65
|
|
|
"timestamp":"2022-10-10T18:28:34+00:00", |
|
66
|
|
|
"agentBalance":"247000.00", |
|
67
|
|
|
"receiptNumber":"999992624813740205", |
|
68
|
|
|
"veriCode":"f20873", |
|
69
|
|
|
"priceLocalCur":"1000.00", |
|
70
|
|
|
"priceSystemCur":"1000.00", |
|
71
|
|
|
"localCur":"XAF", |
|
72
|
|
|
"systemCur":"XAF", |
|
73
|
|
|
"trid": "999992624813740205", |
|
74
|
|
|
"pin":null, |
|
75
|
|
|
"status":"SUCCESS", |
|
76
|
|
|
"payItemDescr":null, |
|
77
|
|
|
"payItemId":"S-112-951-CMORANGE-20062-CM_ORANGE_VTU_CUSTOM-1" |
|
78
|
|
|
} |
|
79
|
|
|
] |
|
80
|
|
|
`) |
|
81
|
|
|
} |
|
82
|
|
|
|
|
83
|
|
|
// TopupQuoteOk returns the api response to the `quotestd` endpoint |
|
84
|
|
|
func TopupQuoteOk() []byte { |
|
85
|
|
|
return []byte(` |
|
86
|
|
|
{ |
|
87
|
|
|
"quoteId":"15380e55-6227-4a25-8e1f-23c8735ce242", |
|
88
|
|
|
"expiresAt":"2022-10-15T13:32:53+00:00", |
|
89
|
|
|
"payItemId":"S-112-951-CMORANGE-20062-CM_ORANGE_VTU_CUSTOM-1", |
|
90
|
|
|
"amountLocalCur":"100.00", |
|
91
|
|
|
"priceLocalCur":100, |
|
92
|
|
|
"priceSystemCur":100, |
|
93
|
|
|
"localCur":"XAF", |
|
94
|
|
|
"systemCur":"XAF", |
|
95
|
|
|
"promotion":null |
|
96
|
|
|
} |
|
97
|
|
|
`) |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
// TopupVerifyEmpty returns the api response to the `/verifytx` of a topup transaction |
|
101
|
|
|
func TopupVerifyEmpty() []byte { |
|
102
|
|
|
return []byte(`[]`) |
|
103
|
|
|
} |
|
104
|
|
|
|