internal/stubs/cashin_responses.go   A
last analyzed

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

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