-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
165 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/cnab/test/templates/240/generic/cnab-240-generic-detalhe-a-template-test.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { CnabFields } from 'src/cnab/types/cnab-field.type'; | ||
|
||
export const cnab240GenericDetalheATemplateTest: CnabFields = { | ||
codigoBanco: { pos: [1, 3], picture: '9(003)', value: '104' }, | ||
loteServico: { pos: [4, 7], picture: '9(004)', value: '0001' }, | ||
codigoRegistro: { pos: [8, 8], picture: '9(001)', value: '3' }, | ||
nsr: { pos: [9, 13], picture: '9(005)', value: '00001' }, | ||
codigoSegmento: { pos: [14, 14], picture: 'X(001)', value: 'A' }, | ||
filler: { pos: [15, 119], picture: 'X(105)', value: ' ' }, | ||
valorLancamento: { | ||
pos: [120, 134], | ||
picture: '9(013)V99', | ||
value: '000000001000010', | ||
}, | ||
usoFebraban: { pos: [135, 240], picture: 'X(105)', value: ' ' }, | ||
}; |
16 changes: 16 additions & 0 deletions
16
src/cnab/test/templates/240/generic/cnab-240-generic-detalhe-b-template-test.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { CnabFields } from 'src/cnab/types/cnab-field.type'; | ||
|
||
export const cnab240GenericDetalheBTemplateTest: CnabFields = { | ||
codigoBanco: { pos: [1, 3], picture: '9(003)', value: '104' }, | ||
loteServico: { pos: [4, 7], picture: '9(004)', value: '0001' }, | ||
codigoRegistro: { pos: [8, 8], picture: '9(001)', value: '3' }, | ||
nsr: { pos: [9, 13], picture: '9(005)', value: '00002' }, | ||
codigoSegmento: { pos: [14, 14], picture: 'X(001)', value: 'B' }, | ||
usoExclusivoFebraban: { pos: [15, 135], picture: 'X(121)', value: ' ' }, | ||
valorDocumento: { | ||
pos: [136, 150], | ||
picture: '9(013)V99', | ||
value: '000000001000010', | ||
}, | ||
usoExclusivoFebraban2: { pos: [151, 240], picture: 'X(090)', value: ' ' }, | ||
}; |
10 changes: 10 additions & 0 deletions
10
src/cnab/test/templates/240/generic/cnab-240-generic-header-arquivo-template-test.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { CnabFields } from 'src/cnab/types/cnab-field.type'; | ||
|
||
export const cnab240GenericHeaderArquivoTemplateTest: CnabFields = { | ||
codigoBanco: { pos: [1, 3], picture: '9(003)', value: '104' }, | ||
loteServico: { pos: [4, 7], picture: '9(004)', value: '0090' }, | ||
codigoRegistro: { pos: [8, 8], picture: '9(001)', value: '0' }, | ||
filler: { pos: [9, 17], picture: 'X(009)', value: ' ' }, | ||
nsa: { pos: [158, 163], picture: '9(006)', value: '000101' }, | ||
filler2: { pos: [164, 240], picture: 'X(077)', value: ' ' }, | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/cnab/test/templates/240/generic/cnab-240-generic-header-lote-template-test.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { CnabFields } from 'src/cnab/types/cnab-field.type'; | ||
|
||
export const cnab240GenericHeaderLoteTemplateTest: CnabFields = { | ||
codigoBanco: { pos: [1, 3], picture: '9(003)', value: '104' }, | ||
loteServico: { pos: [4, 7], picture: '9(004)', value: '0001' }, | ||
codigoRegistro: { pos: [8, 8], picture: '9(001)', value: '1' }, | ||
filler: { pos: [9, 240], picture: 'X(232)', value: ' ' }, | ||
}; |
32 changes: 32 additions & 0 deletions
32
src/cnab/test/templates/240/generic/cnab-240-generic-trailer-arquivo-template-test.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { CnabFields } from 'src/cnab/types/cnab-field.type'; | ||
|
||
export const cnab240GenericTrailerArquivoTemplateTest: CnabFields = { | ||
codigoBanco: { pos: [1, 3], picture: '9(003)', value: '104' }, | ||
loteServico: { pos: [4, 7], picture: '9(004)', value: '9999' }, | ||
codigoRegistro: { pos: [8, 8], picture: '9(001)', value: '5' }, | ||
usoExclusivoFebraban: { | ||
pos: [9, 17], | ||
picture: 'X(009)', | ||
value: ' ', | ||
}, | ||
quantidadeLotesArquivo: { | ||
pos: [18, 23], | ||
picture: '9(006)', | ||
value: '000001', | ||
}, | ||
quantidadeRegistrosArquivo: { | ||
pos: [24, 29], | ||
picture: '9(006)', | ||
value: '000001', | ||
}, | ||
quantidadeContasConciliacao: { | ||
pos: [30, 35], | ||
picture: '9(006)', | ||
value: '000000', | ||
}, | ||
usoExclusivoFebraban2: { | ||
pos: [36, 240], | ||
picture: 'X(205)', | ||
value: ' '.repeat(205), | ||
}, | ||
}; |
30 changes: 30 additions & 0 deletions
30
src/cnab/test/templates/240/generic/cnab-240-generic-trailer-lote-template-test.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { CnabFields } from 'src/cnab/types/cnab-field.type'; | ||
|
||
export const cnab240GenericTrailerLoteTemplateTest: CnabFields = { | ||
codigoBanco: { pos: [1, 3], picture: '9(003)', value: '104' }, | ||
loteServico: { pos: [4, 7], picture: '9(004)', value: '0000' }, | ||
codigoRegistro: { pos: [8, 8], picture: '9(001)', value: '5' }, | ||
usoExclusivoFebraban: { pos: [9, 17], picture: 'X(009)', value: ' ' }, | ||
quantidadeRegistrosLote: { | ||
pos: [18, 23], | ||
picture: '9(006)', | ||
value: '000000', | ||
}, | ||
somatorioValores: { | ||
pos: [24, 41], | ||
picture: '9(016)V99', | ||
value: '0000000000000000', | ||
}, | ||
somatorioQtdeMoeda: { | ||
pos: [42, 59], | ||
picture: '9(013)V99999', | ||
value: '0000000000000', | ||
}, | ||
numeroAvisoDebito: { pos: [60, 65], picture: '9(006)', value: '000000' }, | ||
usoExclusivoFebraban2: { | ||
pos: [66, 230], | ||
picture: 'X(165)', | ||
value: ' '.repeat(165), | ||
}, | ||
ocorrencias: { pos: [231, 240], picture: 'X(010)', value: ' ' }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
10400900 20001234560011111200709P 0000 0095550000000000032 CONVE DE PAGAMENTOSSA E OEBSACAIXA 20602202710234200010100001600 000 | ||
10400011C3001041 20001234560011111200702000201 0095550000000000032 CONVE DE PAGAMENTOSSA E PENSA RUA ALMIR PEDRAS | ||
1040001300001A0000001040095550031993933180 TEREZINHA SEVERIANA 000027 105022023BRL000000000000000000000001347272000000000 01N1060000000000000000000000000 01 0 | ||
1040001300002B000100097654026005RUA ALAMEDA 00104APTO 315 CENTRO RIO DE JANEIRO 22544010RJ06022023000000001347272000000000000000000000000000000000000000000000000000000000000 | ||
10400015 00000200000000000000020000000000000000000000 | ||
10499995 000001000001000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters