github.com/mundipagg/boleto-api@v0.0.0-20230620145841-3f9ec742599f/bradescoShopFacil/response.go (about) 1 package bradescoShopFacil 2 3 var apiResponse = ` 4 { 5 {{if or (eq .returnCode "0") (eq .returnCode "93005999")}} 6 "DigitableLine": "{{fmtDigitableLine (trim .digitableLine)}}", 7 "Links": [{ 8 "href":"{{.url}}", 9 "rel": "pdf", 10 "method":"GET" 11 }] 12 {{else}} 13 "Errors": [ 14 { 15 "Code": "{{.returnCode}}", 16 "Message": "{{.returnMessage}}" 17 } 18 ] 19 {{end}} 20 } 21 ` 22 23 func getAPIResponseBradescoShopFacil() string { 24 return apiResponse 25 }