Passed
Push — main ( 2d22a4...4648c5 )
by Acho
01:50
created

stubs.BillGet   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
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package stubs
2
3
// BillGet is the response for a bill payment
4
func BillGet() []byte {
5
	return []byte(`
6
[
7
    {
8
        "payItemId": "S-112-950-ENEO-10039-8d12d9869ae74225b9fe69da5c1f03a4-4a9309e5d7224da3a788c6a63c9ab876",
9
        "serviceNumber": "500000001",
10
        "serviceid": "10039",
11
        "merchant": "ENEO",
12
        "amountType": "FIXED",
13
        "localCur": "XAF",
14
        "amountLocalCur": "200.00",
15
        "billNumber": "500000001",
16
        "customerNumber": "QA829294",
17
        "billMonth": "07",
18
        "billYear": "2009",
19
        "billDate": "2009-07-28T00:00:00+00:00",
20
        "billDueDate": "2025-08-11T00:00:00+00:00",
21
        "payItemDescr": "COMMODITY - USAGE INVOICE",
22
        "billType": "REGULAR",
23
        "penaltyAmount": "0.00",
24
        "payOrder": 0,
25
        "optStrg": null,
26
        "optNmb": null
27
    }
28
]
29
`)
30
}
31
32
// BillEmpty is the response when there is no response
33
func BillEmpty() []byte {
34
	return []byte(`[]`)
35
}
36