@riocrypto/common-server 1.0.1045 → 1.0.1046
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.
|
@@ -23,7 +23,7 @@ class InvopopClient {
|
|
|
23
23
|
this.baseUrl = "https://api.invopop.com";
|
|
24
24
|
}
|
|
25
25
|
createJob(order, user) {
|
|
26
|
-
var _a;
|
|
26
|
+
var _a, _b;
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const uuid = (0, uuid_1.v1)();
|
|
29
29
|
const { data } = yield axios_1.default.put(`${this.baseUrl}/transform/v1/jobs/${uuid}`, {
|
|
@@ -44,6 +44,12 @@ class InvopopClient {
|
|
|
44
44
|
zone: "21000",
|
|
45
45
|
code: "EKU9003173C9",
|
|
46
46
|
},
|
|
47
|
+
identities: [
|
|
48
|
+
{
|
|
49
|
+
key: "mx-cfdi-fiscal-regime",
|
|
50
|
+
code: "601",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
47
53
|
},
|
|
48
54
|
customer: {
|
|
49
55
|
name: user.mexicoFiscalName
|
|
@@ -56,6 +62,16 @@ class InvopopClient {
|
|
|
56
62
|
zone: user.rfc ? user.postalCode : "21000",
|
|
57
63
|
code: user.rfc || "XAXX010101000",
|
|
58
64
|
},
|
|
65
|
+
identities: [
|
|
66
|
+
{
|
|
67
|
+
key: "mx-cfdi-fiscal-regime",
|
|
68
|
+
code: ((_a = user.mexicoFiscalRegimenCode) === null || _a === void 0 ? void 0 : _a.toString()) || "616",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: "mx-cfdi-use",
|
|
72
|
+
code: "G01",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
59
75
|
},
|
|
60
76
|
lines: [
|
|
61
77
|
{
|
|
@@ -69,7 +85,7 @@ class InvopopClient {
|
|
|
69
85
|
code: "80151500",
|
|
70
86
|
},
|
|
71
87
|
],
|
|
72
|
-
price: (
|
|
88
|
+
price: (_b = order.actualFees.platformFeeFiat) === null || _b === void 0 ? void 0 : _b.toFixed(2),
|
|
73
89
|
},
|
|
74
90
|
taxes: [
|
|
75
91
|
{
|