validations

package
v0.0.0-...-3f9ec74 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidType

func InvalidType(t interface{}) error

func ModElevenCalculator

func ModElevenCalculator(a string, m []int) string

func SumAccountDigits

func SumAccountDigits(a string, m []int) int

func ValidateAmount

func ValidateAmount(b interface{}) error

ValidateAmount valida o valor do titulo

func ValidateBuyerDocumentNumber

func ValidateBuyerDocumentNumber(b interface{}) error

ValidateBuyerDocumentNumber verifica se o número do documento do pagador é válido

func ValidateExpireDate

func ValidateExpireDate(b interface{}) error

ValidateExpireDate valida se a data de expiração do boleto não está no passado

func ValidateFine

func ValidateFine(b interface{}) error

func ValidateInterest

func ValidateInterest(b interface{}) error

func ValidateMaxExpirationDate

func ValidateMaxExpirationDate(b interface{}) error

ValidateMaxExpirationDate O emissor Bradesco contém um bug na geração da linha digitável onde, quando a data de vencimento é maior do que 21-02-2025 a linha digitável se torna inválida(O própio Bradesco não consegue ler a linha gerada) e não conseguimos gerar a visualização do boleto Para evitarmos esse problema, adicionamos temporariamente essa trava que bloqueia a geração de boletos com data de vencimento após a data em questão.

func ValidatePayeeGuarantorDocumentNumber

func ValidatePayeeGuarantorDocumentNumber(b interface{}) error

ValidatePayeeGuarantorDocumentNumber Verifica se o número do documento do lojista é válido

func ValidatePayeeGuarantorName

func ValidatePayeeGuarantorName(b interface{}) error

ValidatePayeeGuarantorName Verifica se o nome do lojista é existe

func ValidateRecipientDocumentNumber

func ValidateRecipientDocumentNumber(b interface{}) error

ValidateRecipientDocumentNumber Verifica se o número do documento do recebedor é válido

Types

This section is empty.

Jump to

Keyboard shortcuts

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