-
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.
Merge branch 'develop' into feat/#196-integracao-views-jae
- Loading branch information
Showing
54 changed files
with
965 additions
and
178 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
Empty file.
Empty file.
File renamed without changes.
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 |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import { ICnab240_104DetalheA } from '../interfaces/cnab-240/104/cnab-240-104-detalhe-a.interface'; | ||
import { ICnab240_104DetalheB } from '../interfaces/cnab-240/104/cnab-240-104-detalhe-b.interface'; | ||
import { ICnab240_104HeaderArquivo } from '../interfaces/cnab-240/104/cnab-240-104-header-arquivo.interface'; | ||
import { ICnab240_104HeaderLote } from '../interfaces/cnab-240/104/cnab-240-104-header-lote.interface'; | ||
import { ICnab240_104TrailerArquivo } from '../interfaces/cnab-240/104/cnab-240-104-trailer-arquivo.interface'; | ||
import { ICnab240_104TrailerLote } from '../interfaces/cnab-240/104/cnab-240-104-trailer-lote.interface'; | ||
import { ItemTransacao } from '../entity/item-transacao.entity'; | ||
import { HeaderArquivoDTO } from './header-arquivo.dto'; | ||
import { HeaderLoteDTO } from './header-lote.dto'; | ||
|
||
export class CnabDto { | ||
headerArquivo: ICnab240_104HeaderArquivo; | ||
headerArquivo = HeaderArquivoDTO; | ||
lotes: { | ||
headerLote: ICnab240_104HeaderLote; | ||
registros: { | ||
detalheA: ICnab240_104DetalheA; | ||
detalheB: ICnab240_104DetalheB; | ||
}[]; | ||
trailerLote: ICnab240_104TrailerLote; | ||
headerLote: HeaderLoteDTO; | ||
detalhes: ItemTransacao[]; | ||
}[]; | ||
trailerArquivo: ICnab240_104TrailerArquivo; | ||
} |
4 changes: 2 additions & 2 deletions
4
src/cnab/dto/save-detalhe-a.dto.ts → src/cnab/dto/detalhe-a.dto.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
4 changes: 2 additions & 2 deletions
4
src/cnab/dto/save-detalhe-b.dto.ts → src/cnab/dto/detalhe-b.dto.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
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,23 @@ | ||
export class HeaderArquivoDTO { | ||
constructor(dto?: HeaderArquivoDTO) { | ||
if (dto) { | ||
Object.assign(this, dto); | ||
} | ||
} | ||
|
||
id_header_arquivo: number; | ||
tipo_arquivo: string; | ||
cod_banco: string; | ||
tipo_inscricao: string; | ||
num_inscricao: string; | ||
cod_convenio: string; | ||
param_transmissao: string; | ||
agencia: string; | ||
dv_agencia: string; | ||
num_conta: string; | ||
dv_conta: string; | ||
nome_empresa: string; | ||
dt_geracao: Date; | ||
hr_geracao: Date; | ||
id_transacao: number; | ||
} |
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,17 @@ | ||
export class HeaderLoteDTO { | ||
constructor(dto?: HeaderLoteDTO) { | ||
if (dto) { | ||
Object.assign(this, dto); | ||
} | ||
} | ||
|
||
id_header_lote: number; | ||
id_header_arquivo: number; | ||
lote_servico: string; | ||
tipo_inscricao: string; | ||
num_inscricao: string; | ||
cod_convenio_banco: string; | ||
tipo_compromisso: string; | ||
param_transmissao: string; | ||
id_pagador: number; | ||
} |
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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
|
||
export class ItemTransacaoDTO { | ||
id_item_transacao: number; | ||
dt_transacao: Date; | ||
dt_processamento: Date; | ||
dt_captura: Date; | ||
nome_consorcio: string; | ||
id_tipo_pagamento: number; | ||
tipo_transacao: string; | ||
valor_item_transacao: number; | ||
id_transacao: number; | ||
dt_processamento; | ||
dt_captura; | ||
modo: string; | ||
id_cliente_favorecido:number; | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...ab/dto/save-transacao-cliente-item.dto.ts → src/cnab/dto/transacao-cliente-item.dto.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
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 |
---|---|---|
|
@@ -77,4 +77,5 @@ export class TransacaoDTO { | |
@ValidateIf(isCreate) | ||
@IsNotEmpty() | ||
id_pagador?: number; | ||
|
||
} |
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 |
---|---|---|
@@ -1,35 +1,38 @@ | ||
import { DeepPartial, Entity } from 'typeorm'; | ||
import { EntityHelper } from './../../utils/entity-helper'; | ||
import { EntityHelper } from 'src/utils/entity-helper'; | ||
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; | ||
|
||
@Entity() | ||
@Entity('detalhe_a') | ||
export class DetalheA extends EntityHelper { | ||
constructor(detalheA?: DetalheA | DeepPartial<DetalheA>) { | ||
super(); | ||
if (detalheA !== undefined) { | ||
Object.assign(this, detalheA); | ||
} | ||
} | ||
|
||
@PrimaryGeneratedColumn() | ||
id_detalhe_a: number; | ||
@Column({ type: Number, unique: false, nullable: true }) | ||
id_header_lote: number; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
lote_servico: string; | ||
@Column({ type: Number, unique: false, nullable: true }) | ||
id_cliente_favorecido: number; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
tipo_finalidade_conta: string; | ||
@Column({ type: Date, unique: false, nullable: true }) | ||
dt_vencimento: Date; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
tipo_moeda: string; | ||
qtde_moeda: number; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
valor_lancamento: number; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
num_doc_lancamento: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
qtde_parcelas: number; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
indicador_bloqueio: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
indicador_forma_parcelamento: string; | ||
@Column({ type: Date, unique: false, nullable: true }) | ||
periodo_vencimento: Date; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
num_parcela: number; | ||
@Column({ type: Date, unique: false, nullable: true }) | ||
data_efetivacao: Date; | ||
@Column({ type: Number, unique: false, nullable: true }) | ||
valor_real_efetivado: number; | ||
|
||
public getLogInfo(): string { | ||
const response = `#${this.id_detalhe_a}`; | ||
return response; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,21 +1,36 @@ | ||
import { EntityHelper } from 'src/utils/entity-helper'; | ||
import { Entity } from 'typeorm'; | ||
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; | ||
|
||
@Entity() | ||
export class HeaderArquivo extends EntityHelper { | ||
@PrimaryGeneratedColumn() | ||
id_header_arquivo: number; | ||
@Column({ type: Number, unique: false, nullable: true }) | ||
tipo_arquivo: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
cod_banco: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
tipo_inscricao: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
num_inscricao: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
cod_convenio: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
param_transmissao: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
agencia: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
dv_agencia: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
num_conta: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
dv_conta: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
nome_empresa: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
dt_geracao: Date; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
hr_geracao: Date; | ||
@Column({ type: Number, unique: false, nullable: true }) | ||
id_transacao: number; | ||
} |
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 |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import { EntityHelper } from 'src/utils/entity-helper'; | ||
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; | ||
|
||
@Entity() | ||
export class HeaderLote extends EntityHelper { | ||
@PrimaryGeneratedColumn() | ||
id_header_lote: number; | ||
@Column({ type: Number, unique: false, nullable: true }) | ||
id_header_arquivo: number; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
lote_servico: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
tipo_inscricao: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
num_inscricao: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
cod_convenio_banco: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
tipo_compromisso: string; | ||
@Column({ type: String, unique: false, nullable: true }) | ||
param_transmissao: string; | ||
@Column({ type: Number, unique: false, nullable: true }) | ||
id_pagadora: number; | ||
} | ||
|
||
function Entity(): (target: typeof HeaderLote) => void | typeof HeaderLote { | ||
throw new Error('Function not implemented.'); | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum Cnab104AmbienteCliente { | ||
Teste = 'T', | ||
Producao = 'P', | ||
} |
2 changes: 1 addition & 1 deletion
2
...4/cnab-104-indicador-parcelamento.enum.ts → ...s/104/cnab-104-forma-parcelamento.enum.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
Oops, something went wrong.