| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 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 | { |
||
| 32 |