stubs.CashinGetError   A
last analyzed

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
// CashinGetOk is the response when getting the `/cashin` endpoint
4
func CashinGetOk() []byte {
5
	return []byte(`
6
[
7
    {
8
        "serviceid": "30052",
9
        "merchant": "CMORANGEOM",
10
        "payItemId": "S-112-948-CMORANGEOM-30052-2006125104-1",
11
        "amountType": "CUSTOM",
12
        "localCur": "XAF",
13
        "name": "Custom Amount",
14
        "amountLocalCur": null,
15
        "description": "Customer amount",
16
        "payItemDescr": null,
17
        "optStrg": null,
18
        "optNmb": null
19
    }
20
]
21
`)
22
}
23
24
// CashinGetError is the cashout error with an invalid service
25
func CashinGetError() []byte {
26
	return []byte(`
27
{
28
    "devMsg": "Service unknown",
29
    "usrMsg": "Service unknown",
30
    "respCode": 40602,
31
    "link": "http://support.maviance.com/"
32
}
33
`)
34
}
35