Passed
Push — main ( e52106...ac3387 )
by Acho
01:50
created

stubs.TopupCollectOk   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package stubs
2
3
// TopupCollectOk returns the api response to the `/collectstd` of a topup transaction
4
func TopupCollectOk() []byte {
5
	return []byte(`
6
{
7
   "ptn":"99999166542651400095315364801168",
8
   "timestamp":"2022-10-10T18:28:34+00:00",
9
   "agentBalance":"247000.00",
10
   "receiptNumber":"999992624813740205",
11
   "veriCode":"f20873",
12
   "priceLocalCur":"1000.00",
13
   "priceSystemCur":"1000.00",
14
   "localCur":"XAF",
15
   "systemCur":"XAF",
16
   "trid":null,
17
   "pin":null,
18
   "status":"SUCCESS",
19
   "payItemDescr":null,
20
   "payItemId":"S-112-951-CMORANGE-20062-CM_ORANGE_VTU_CUSTOM-1"
21
}
22
`)
23
}
24