Documentation ¶
Index ¶
- Constants
- Variables
- func StripDCFromRedirectHTML(html string) (string, error)
- type BoletoDef
- type SondaResult
- type Webservice
- func (ws *Webservice) GetBoletoDCPDF(dc string, shoplineid int, referer string) ([]byte, error)
- func (ws *Webservice) GetBoletoPDF(boleto BoletoDef, referer string) ([]byte, error)
- func (ws *Webservice) GetBoletoRedirectHTML(boleto BoletoDef) (string, error)
- func (ws *Webservice) GetDC(boleto BoletoDef) (string, error)
- func (ws *Webservice) Sonda(pedido int) (*SondaResult, error)
- type XMLParam
Constants ¶
View Source
const ( URL_BOLETO = "https://shopline.itau.com.br/shopline/Impressao.aspx" URL_BOLETO_HOMOLOG = "https://shopline.itau.com.br/shopline/emissao_teste.asp" URL_CONSULTA = "https://shopline.itau.com.br/shopline/consulta.aspx" URL_SHOPLINE = "https://shopline.itau.com.br/shopline/shopline.aspx" CPF = "01" CNPJ = "02" // status pagamento STAT_PAGAMENTO_EFETUADO = "00" STAT_SIT_PAGAMENTO_NAO_FINALIZADO = "01" STAT_ERR_NA_CONSULTA = "02" STAT_PEDIDO_NAO_LOCALIZADO = "03" STAT_BOLETO_EMITIDO_COM_SUCESSO = "04" STAT_PGTO_EFETUADO_AG_COMPENSACAO = "05" STAT_PGTO_NAO_COMPENSADO = "06" )
Variables ¶
View Source
var (
R = false
)
Functions ¶
func StripDCFromRedirectHTML ¶
Types ¶
type BoletoDef ¶
type SondaResult ¶
type SondaResult struct { XMLName xml.Name `xml:"PARAMETER"` Z []XMLParam `xml:"PARAM"` CodigoEmpresa string Pedido int Valor float64 TipoPgto string SitPgto string DtPgto time.Time }
func (*SondaResult) GetRawVal ¶
func (s *SondaResult) GetRawVal(name string) string
func (*SondaResult) Unwrap ¶
func (s *SondaResult) Unwrap()
type Webservice ¶
func New ¶
func New(codigo, chave string) *Webservice
func (*Webservice) GetBoletoDCPDF ¶
encapsula o boleto e retorna o PDF referer: https://www.example.com
func (*Webservice) GetBoletoPDF ¶
func (ws *Webservice) GetBoletoPDF(boleto BoletoDef, referer string) ([]byte, error)
encapsula o boleto e retorna o PDF referer: https://www.example.com
func (*Webservice) GetBoletoRedirectHTML ¶
func (ws *Webservice) GetBoletoRedirectHTML(boleto BoletoDef) (string, error)
func (*Webservice) Sonda ¶
func (ws *Webservice) Sonda(pedido int) (*SondaResult, error)
Click to show internal directories.
Click to hide internal directories.