arca-sdk 1.2.0 → 1.2.1

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/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  // src/constants/endpoints.ts
2
2
  var WSAA_ENDPOINTS = {
3
- homologacion: "https://wsaahomo.afip.gov.ar/ws/services/LoginCms",
4
- produccion: "https://wsaa.afip.gov.ar/ws/services/LoginCms"
3
+ homologacion: "https://wsaahomo.arca.gob.ar/ws/services/LoginCms",
4
+ produccion: "https://wsaa.arca.gob.ar/ws/services/LoginCms"
5
5
  };
6
6
  var WSFE_ENDPOINTS = {
7
- homologacion: "https://wswhomo.afip.gov.ar/wsfev1/service.asmx",
8
- produccion: "https://servicios1.afip.gov.ar/wsfev1/service.asmx"
7
+ homologacion: "https://wswhomo.arca.gob.ar/wsfev1/service.asmx",
8
+ produccion: "https://servicios1.arca.gob.ar/wsfev1/service.asmx"
9
9
  };
10
10
  var PADRON_A13_ENDPOINTS = {
11
- homologacion: "https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA13",
12
- produccion: "https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA13"
11
+ homologacion: "https://awshomo.arca.gob.ar/sr-padron/webservices/personaServiceA13",
12
+ produccion: "https://aws.arca.gob.ar/sr-padron/webservices/personaServiceA13"
13
13
  };
14
14
  function getWsaaEndpoint(environment) {
15
15
  return WSAA_ENDPOINTS[environment];
@@ -573,7 +573,7 @@ function generateQRUrl(caeResponse, issuerCUIT, total, buyer) {
573
573
  qrData.codAut = Number(cleanCAE);
574
574
  const jsonString = JSON.stringify(qrData);
575
575
  const base64 = typeof Buffer !== "undefined" ? Buffer.from(jsonString).toString("base64") : btoa(jsonString);
576
- return `https://www.afip.gob.ar/fe/qr/?p=${base64}`;
576
+ return `https://www.arca.gob.ar/fe/qr/?p=${base64}`;
577
577
  }
578
578
 
579
579
  // src/constants/errors.ts