Documentation
¶
Index ¶
- Constants
- func Brancos(s string, l int) string
- func BrancosLeft(s string, l int) string
- func Date(year, month, day int) time.Time
- func OnlyNumbers(s string) string
- func Sanitize(word string) string
- func SemMascara(s string) string
- func StrPad(s string, padLen int, padStr string, padType PadType) string
- func Zeros(s string, l int) string
- type Avalista
- type Beneficiario
- type Conta
- type PadType
- type Pagador
Constants ¶
const ( CodigoBancoBrasil = "001" CodigoSantander = "033" )
const (
BancoNaoSuportado = "Banco não suportado."
)
Variables ¶
This section is empty.
Functions ¶
func BrancosLeft ¶
func OnlyNumbers ¶
func Sanitize ¶
Sanitize replaces non-ASCII characters with an ASCII approximation, or if none exists, to “?”.
func SemMascara ¶
Types ¶
type Beneficiario ¶
func (Beneficiario) GetDocumento ¶
func (b Beneficiario) GetDocumento() string
func (Beneficiario) TipoInscricao ¶
func (b Beneficiario) TipoInscricao() string
type Conta ¶
type Conta struct {
Banco string
Agencia string
ContaCorrente string
Carteira string
Convenio string
EspecieTitulo string
Aceite bool
Beneficiario Beneficiario
}
func NewConta ¶
func NewConta(banco string, agencia, contaCorrente, carteira, convenio string, beneficiario Beneficiario) Conta
func (Conta) AgenciaDigito ¶
func (Conta) GetAceite ¶
Aceite do título N - Sem aceite A - Com aceite - Indica o reconhecimento formal (assinatura no documento) do sacado no título
func (Conta) GetEspecieTitulo ¶
GetEspecieTitulo retorna a espécie de título de acordo com cada banco Banco do Brasil 01 - Duplicata Mercantil 02 - Nota Promissória 03 - Nota de Seguro 05 - Recibo 08 - Letra de Câmbio 09 - Warrant 10 - Cheque 12 - Duplicata de Serviço 13 - Nota de Débito 15 - Apólice de Seguro 25 - Dívida Ativa da União 26 - Dívida Ativa de Estado 27 - Dívida Ativa de Município
Santander - 033 01 - DUPLICATA 02 - NOTA PROMISSÓRIA 03 - APÓLICE / NOTA DE SEGURO 05 - RECIBO 06 - DUPLICATA DE SERVIÇO 07 - LETRA DE CAMBIO 08 - BDP - BOLETO DE PROPOSTA - ( NOTA 6) 19 - BCC – BOLETO CARTÃO DE CRÉDITO ( NOTA 8)
func (Conta) NumeroAgencia ¶
type Pagador ¶
type Pagador struct {
Nome string
Documento string
Endereco string
Bairro string
Cidade string
UF string
CEP string
}