Help us shape the future of Go! Take the 2026 Go Developer Survey

cobranca

package module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 5 Imported by: 0

README

cobranca

Boleto

Documentation

Index

Constants

View Source
const (
	CodigoBancoBrasil = "001"
	CodigoSantander   = "033"
)
View Source
const (
	BancoNaoSuportado = "Banco não suportado."
)

Variables

This section is empty.

Functions

func Brancos

func Brancos(s string, l int) string

func BrancosLeft

func BrancosLeft(s string, l int) string

func Date

func Date(year, month, day int) time.Time

func OnlyNumbers

func OnlyNumbers(s string) string

func Sanitize

func Sanitize(word string) string

Sanitize replaces non-ASCII characters with an ASCII approximation, or if none exists, to “?”.

func SemMascara

func SemMascara(s string) string

func StrPad

func StrPad(s string, padLen int, padStr string, padType PadType) string

func Zeros

func Zeros(s string, l int) string

Types

type Avalista

type Avalista struct {
	Nome      string
	Documento string
}

type Beneficiario

type Beneficiario struct {
	Nome      string
	Documento string
}

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 (c Conta) AgenciaDigito() string

func (Conta) Digito

func (c Conta) Digito() string

func (Conta) GetAceite

func (c Conta) GetAceite() string

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

func (c Conta) GetEspecieTitulo() string

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) Numero

func (c Conta) Numero() string

func (Conta) NumeroAgencia

func (c Conta) NumeroAgencia() string

type PadType

type PadType string
const (
	StrPadLeft  PadType = "str_pad_left"
	StrPadRight PadType = "str_pad_right"
)

type Pagador

type Pagador struct {
	Nome      string
	Documento string
	Endereco  string
	Bairro    string
	Cidade    string
	UF        string
	CEP       string
}

func (Pagador) GetCEP

func (p Pagador) GetCEP() string

func (Pagador) GetDocumento

func (p Pagador) GetDocumento() string

func (Pagador) PessoaFisica

func (p Pagador) PessoaFisica() bool

func (Pagador) TipoInscricao

func (p Pagador) TipoInscricao() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL