Skip to content

Commit

Permalink
ajuste entidades
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfl2007 committed Feb 27, 2024
1 parent 6f9b692 commit 9ce23c6
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 7 deletions.
26 changes: 26 additions & 0 deletions src/cnab/entitys/detalhe-a.entity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { EntityHelper } from './../../utils/entity-helper';

@Entity()
class DetalheA extends EntityHelper{
id_detalhe_a:number;
id_header_lote :number;
lote_servico :string;
id_cliente_favorecido :number;
tipo_finalidade_conta :string;
dt_vencimento: Date;
tipo_moeda :string;
qtde_moeda :number;
valor_lancamento: number;
num_doc_lancamento :string;
qtde_parcelas :number;
indicador_bloqueio :string;
indicador_forma_parcelamento :string;
periodo_vencimento:Date;
num_parcela :number;
data_efetivacao: Date;
valor_real_efetivado:number
}

function Entity(): (target: typeof DetalheA) => void | typeof DetalheA {
throw new Error("Function not implemented.");
}
13 changes: 13 additions & 0 deletions src/cnab/entitys/detalhe-b.entiy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { EntityHelper } from "src/utils/entity-helper";

@Entity()
class DetalheB extends EntityHelper{
id_detalhe_b:number;
id_detalhe_a :number;
nsr:string;
data_vencimento: Date;
}

function Entity(): (target: typeof DetalheB) => void | typeof DetalheB {
throw new Error("Function not implemented.");
}
10 changes: 8 additions & 2 deletions src/cnab/entitys/header-arquivo.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
class HeaderArquivo{
import { EntityHelper } from "src/utils/entity-helper";

@Entity()
class HeaderArquivo extends EntityHelper{
id_header_arquivo:number;
tipo_arquivo :string;
cod_banco :string;
Expand All @@ -15,9 +18,12 @@ class HeaderArquivo{
@Column({ type: 'timestamp' })
hr_geracao: Date;
id_transacao:number;

}

function Column(arg0: { type: string; }): (target: HeaderArquivo, propertyKey: "hr_geracao") => void {
throw new Error("Function not implemented.");
}
function Entity(): (target: typeof HeaderArquivo) => void | typeof HeaderArquivo {
throw new Error("Function not implemented.");
}

14 changes: 11 additions & 3 deletions src/cnab/entitys/header-lote.entity.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
class HeaderLote{
id_header_lote:number;id_header_arquivo:number;
import { EntityHelper } from "src/utils/entity-helper";

@Entity()
class HeaderLote extends EntityHelper{
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_pagadora:number;
}
}

function Entity(): (target: typeof HeaderLote) => void | typeof HeaderLote {
throw new Error("Function not implemented.");
}
12 changes: 10 additions & 2 deletions src/cnab/entitys/item-transacao.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class ItemTransacao{
import { EntityHelper } from "src/utils/entity-helper";


@Entity()
class ItemTransacao extends EntityHelper{
id_item_transacao:number;
dt_transacao: Date;
dt_processamentoDate;
Expand All @@ -9,4 +13,8 @@ class ItemTransacao{
tipo_transacao:string;
valor_item_transacao:number;
id_transacao:number;
}
}

function Entity(): (target: typeof ItemTransacao) => void | typeof ItemTransacao {
throw new Error("Function not implemented.");
}

0 comments on commit 9ce23c6

Please sign in to comment.