github.com/mundipagg/boleto-api@v0.0.0-20230620145841-3f9ec742599f/santander/response.go (about)

     1  package santander
     2  
     3  var apiResponse = `
     4  {
     5      {{if (eq .errorCode "20")}}
     6          "Errors": [
     7              {                    
     8                  "Code": "{{trim .errorCode}}",
     9                  "Message": "{{trim .message | formatSingleLine}}"
    10              }
    11          ]
    12      {{else}}
    13          "DigitableLine": "{{fmtDigitableLine (trim .digitableLine)}}",
    14          "BarcodeNumber": "{{trim .barcodeNumber}}"        
    15      {{end}}
    16  }
    17  `
    18  
    19  func getAPIResponseSantander() string {
    20  	return apiResponse
    21  }