Skip to content

[Feature request] Get "boleto" information from digitable line #239

@lucascarrias

Description

@lucascarrias

The "boleto"'s digitable line has some information about the charge, for example:

  • Expiration date
  • Charge Value
  • Associate Bank code
  • Currency code

With that considered, I suggest that we should create a single function to get all values as bellow:

{
  expirationDate: Date,
  valueInCents: number,
  bankCode: string,
  currency: string
}

An alternative feature is to create functions to get each "boleto" information:

  function getExpirationDate(boleto: string): Date
  function getValueInCents(boleto: string): number
  function getBankCode(boleto: string) : string
  function getCurrency(boleto: string): string

Reference:
Campos dos boletos e linha digitável: o que significam?
Código dos bancos associados - Febraban


Edit: Add functions declaration examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions