-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDadosDeTransacao.js
36 lines (32 loc) · 956 Bytes
/
DadosDeTransacao.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class DadosDeTransacao{
constructor()
{
this.Funcao = ''
this.Valor = ''
this.Financiamento = ''
this.NumeroDeParcelas = ''
this.CupomFiscal = ''
this.PacoteHash = ''
this.CupomFiscal = ''
this.DataFiscal = ''
this.HoraFiscal = ''
this.DataHoraTransacao = ''
this.Comprovante = ''
this.TipoCartao = ''
this.NsuSitef = ''
this.NsuHost = ''
this.CodigoEstabelecimento = ''
this.TipoCartaoSitef = ''
this.NumeroCartaoDig = ''
this.DataCartaoDig = ''
this.CodigoCartaoDig = ''
}
gerarDataHoraTransacao = () => {
let data, hora
data = moment().format('DD/MM/YYYY')
hora = moment().format('HH:mm:ss')
this.DataFiscal = moment().format('YYYYMMDD')
this.HoraFiscal = moment().format('HHmmss')
this.DataHoraTransacao = `${data} ${hora}`
}
}