sim-node-lib 0.4.55 → 0.4.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,10 +26,11 @@ export declare class Preco {
26
26
  desconto: number;
27
27
  origem: Origem;
28
28
  ordem: number;
29
+ pagamentos?: Pagamento[] | undefined;
29
30
  aplicavel?: boolean | undefined;
30
31
  herdou_default?: boolean | undefined;
31
32
  arredondamento_psicologico?: boolean | undefined;
32
- constructor(item: Item, preco_base: number, preco_final: number, desconto: number, origem: Origem, ordem: number, aplicavel?: boolean | undefined, herdou_default?: boolean | undefined, arredondamento_psicologico?: boolean | undefined);
33
+ constructor(item: Item, preco_base: number, preco_final: number, desconto: number, origem: Origem, ordem: number, pagamentos?: Pagamento[] | undefined, aplicavel?: boolean | undefined, herdou_default?: boolean | undefined, arredondamento_psicologico?: boolean | undefined);
33
34
  }
34
35
  export declare class Item {
35
36
  codigo_erp: string;
@@ -42,3 +43,8 @@ export declare class Origem {
42
43
  regra_key?: string | undefined;
43
44
  constructor(politica: string, regra_key?: string | undefined);
44
45
  }
46
+ export declare class Pagamento {
47
+ codigo: string;
48
+ valor: number;
49
+ constructor(codigo: string, valor: number);
50
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Origem = exports.Item = exports.Preco = exports.Empresa = exports.Grupo = exports.PriceToSale = void 0;
3
+ exports.Pagamento = exports.Origem = exports.Item = exports.Preco = exports.Empresa = exports.Grupo = exports.PriceToSale = void 0;
4
4
  class PriceToSale {
5
5
  constructor(grupo, empresa, precos) {
6
6
  this.grupo = grupo;
@@ -29,13 +29,14 @@ class Empresa {
29
29
  }
30
30
  exports.Empresa = Empresa;
31
31
  class Preco {
32
- constructor(item, preco_base, preco_final, desconto, origem, ordem, aplicavel, herdou_default, arredondamento_psicologico) {
32
+ constructor(item, preco_base, preco_final, desconto, origem, ordem, pagamentos, aplicavel, herdou_default, arredondamento_psicologico) {
33
33
  this.item = item;
34
34
  this.preco_base = preco_base;
35
35
  this.preco_final = preco_final;
36
36
  this.desconto = desconto;
37
37
  this.origem = origem;
38
38
  this.ordem = ordem;
39
+ this.pagamentos = pagamentos;
39
40
  this.aplicavel = aplicavel;
40
41
  this.herdou_default = herdou_default;
41
42
  this.arredondamento_psicologico = arredondamento_psicologico;
@@ -57,3 +58,10 @@ class Origem {
57
58
  }
58
59
  }
59
60
  exports.Origem = Origem;
61
+ class Pagamento {
62
+ constructor(codigo, valor) {
63
+ this.codigo = codigo;
64
+ this.valor = valor;
65
+ }
66
+ }
67
+ exports.Pagamento = Pagamento;
@@ -1,5 +1,6 @@
1
1
  export declare class VendaFormaPagamentoReduzida {
2
2
  codFormaPagamento: string;
3
3
  valor: number;
4
- constructor(codFormaPagamento: string, valor: number);
4
+ troco?: boolean | undefined;
5
+ constructor(codFormaPagamento: string, valor: number, troco?: boolean | undefined);
5
6
  }
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VendaFormaPagamentoReduzida = void 0;
4
4
  class VendaFormaPagamentoReduzida {
5
- constructor(codFormaPagamento, valor) {
5
+ constructor(codFormaPagamento, valor, troco) {
6
6
  this.codFormaPagamento = codFormaPagamento;
7
7
  this.valor = valor;
8
+ this.troco = troco;
8
9
  }
9
10
  }
10
11
  exports.VendaFormaPagamentoReduzida = VendaFormaPagamentoReduzida;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.4.55",
3
+ "version": "0.4.56",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",