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/CHANGELOG.md +12 -0
- package/README.md +33 -2
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +59 -59
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// src/constants/endpoints.ts
|
|
2
2
|
var WSAA_ENDPOINTS = {
|
|
3
|
-
homologacion: "https://wsaahomo.
|
|
4
|
-
produccion: "https://wsaa.
|
|
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.
|
|
8
|
-
produccion: "https://servicios1.
|
|
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.
|
|
12
|
-
produccion: "https://aws.
|
|
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.
|
|
576
|
+
return `https://www.arca.gob.ar/fe/qr/?p=${base64}`;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
// src/constants/errors.ts
|