Passed
Push — main ( 75c795...cad01e )
by Acho
01:47
created

stubs.AccountBalance   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
dl 0
loc 2
rs 10
c 0
b 0
f 0
nop 0
1
package stubs
2
3
// AccountBalanceWithError is a dummy json response for the `/api/account/agent/balance/v2/` endpoint with an error
4
func AccountBalanceWithError() []byte {
5
	return []byte(`
6
		{
7
			"code": 500,
8
			"message": "412: bad password",
9
			"result": null
10
		}
11
`)
12
}
13
14
// AccountBalance is a dummy json response for the `/api/account/agent/balance/v2/` endpoint
15
func AccountBalance() []byte {
16
	return []byte(`
17
		{
18
			"code":200,
19
			"message":"Success",
20
			"result":{
21
				"name":"COMPANY_NAME",
22
				"mainbalance":"100",
23
				"maindeposit":"200"
24
			}
25
		}
26
`)
27
}
28