@infrab4a/connect 5.8.0-alpha.3 → 5.8.1-alpha.0

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.
package/index.cjs.js CHANGED
@@ -208,9 +208,7 @@ function isPositiveInteger(value) {
208
208
  function normalizeLimitOrders(raw, allowInfiniteZip) {
209
209
  if (!raw)
210
210
  return null;
211
- const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity)
212
- ? Infinity
213
- : raw.zip;
211
+ const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity) ? Infinity : raw.zip;
214
212
  const normalized = {
215
213
  cpf: raw.cpf,
216
214
  email: raw.email,
@@ -2025,6 +2023,7 @@ class StockOutError extends BusinessError {
2025
2023
  }
2026
2024
  }
2027
2025
 
2026
+ /* eslint-disable no-console */
2028
2027
  class AntifraudBankSlipService {
2029
2028
  constructor(orderBlockedRepository, shopConfigsRepository) {
2030
2029
  this.orderBlockedRepository = orderBlockedRepository;
@@ -2062,6 +2061,7 @@ class AntifraudBankSlipService {
2062
2061
  }
2063
2062
  }
2064
2063
 
2064
+ /* eslint-disable max-params */
2065
2065
  class AntifraudCardService {
2066
2066
  constructor(orderRepository, orderBlockedRepository, shopConfigsRepository) {
2067
2067
  this.orderRepository = orderRepository;
package/index.esm.js CHANGED
@@ -202,9 +202,7 @@ function isPositiveInteger(value) {
202
202
  function normalizeLimitOrders(raw, allowInfiniteZip) {
203
203
  if (!raw)
204
204
  return null;
205
- const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity)
206
- ? Infinity
207
- : raw.zip;
205
+ const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity) ? Infinity : raw.zip;
208
206
  const normalized = {
209
207
  cpf: raw.cpf,
210
208
  email: raw.email,
@@ -2019,6 +2017,7 @@ class StockOutError extends BusinessError {
2019
2017
  }
2020
2018
  }
2021
2019
 
2020
+ /* eslint-disable no-console */
2022
2021
  class AntifraudBankSlipService {
2023
2022
  constructor(orderBlockedRepository, shopConfigsRepository) {
2024
2023
  this.orderBlockedRepository = orderBlockedRepository;
@@ -2056,6 +2055,7 @@ class AntifraudBankSlipService {
2056
2055
  }
2057
2056
  }
2058
2057
 
2058
+ /* eslint-disable max-params */
2059
2059
  class AntifraudCardService {
2060
2060
  constructor(orderRepository, orderBlockedRepository, shopConfigsRepository) {
2061
2061
  this.orderRepository = orderRepository;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.8.0-alpha.3",
3
+ "version": "5.8.1-alpha.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -1,6 +1,7 @@
1
1
  import { BaseModel, GenericIdentifier } from '../../generic/model';
2
2
  import { ShopAntifraudConfig, ShopErrorMessages, ShopSameDayNotAvailable } from './types';
3
3
  export declare class ShopConfigs extends BaseModel<ShopConfigs> {
4
+ id: string;
4
5
  errors?: ShopErrorMessages[];
5
6
  antifraude?: ShopAntifraudConfig;
6
7
  sameDayNotAvaliable?: ShopSameDayNotAvailable;