stubs.CashoutGetOk   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
// CashoutGetOk is the response when getting the `/cashout` endpoint
4
func CashoutGetOk() []byte {
5
	return []byte(`
6
[
7
    {
8
        "serviceid": "20053",
9
        "merchant": "MTNMOMO",
10
        "payItemId": "S-112-949-MTNMOMO-20053-200050001-1",
11
        "amountType": "CUSTOM",
12
        "localCur": "XAF",
13
        "name": "CASH-OUT",
14
        "amountLocalCur": null,
15
        "description": "Cash out a custom amount",
16
        "payItemDescr": null,
17
        "optStrg": null,
18
        "optNmb": null
19
    }
20
]
21
`)
22
}
23
24
// CashoutGetError is the cashout error with an invalid service
25
func CashoutGetError() []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