stubs.CreatePaymentsOkResponse   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
// CreatePaymentsOkResponse response from the create payments endpoint
4
func CreatePaymentsOkResponse() []byte {
5
	return []byte(`
6
		{
7
			"error":"ok",
8
			"result":{
9
				"amount":"1.00000000",
10
				"address":"ZZZ",
11
				"dest_tag":"YYY",
12
				"txn_id":"XXX",
13
				"confirms_needed":"10",
14
				"timeout":9000,
15
				"checkout_url":"https:\/\/www.coinpayments.net\/index.php?cmd=checkout&id=XXX&key=ZZZ",
16
				"status_url":"https:\/\/www.coinpayments.net\/index.php?cmd=status&id=XXX&key=ZZZ",
17
				"qrcode_url":"https:\/\/www.coinpayments.net\/qrgen.php?id=XXX&key=ZZZ"
18
			}
19
		}
20
`)
21
}
22
23
// GetTransactionErrorResponse invalid transaction response
24
func GetTransactionErrorResponse() []byte {
25
	return []byte(`
26
		{
27
			"error":"Invalid API version - no version specified",
28
			"result":[]
29
		}
30
`)
31
}
32