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

internal/stubs/topup_response.go   A

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A stubs.TopupCollectOk 0 2 1
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