@riocrypto/common-server 1.0.1432 → 1.0.1433

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, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
26
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
27
27
  return __awaiter(this, void 0, void 0, function* () {
28
28
  const uuid = (0, uuid_1.v1)();
29
29
  const operationDate = new Date(order.createdAt);
@@ -55,7 +55,7 @@ class InvopopClient {
55
55
  }
56
56
  else {
57
57
  customerName = (0, common_1.getUserName)(user).toLocaleUpperCase();
58
- postalCode = (_r = (_q = (_p = user.onboarding) === null || _p === void 0 ? void 0 : _p.MX) === null || _q === void 0 ? void 0 : _q.address) === null || _r === void 0 ? void 0 : _r.postalCode;
58
+ postalCode = "66260";
59
59
  rfc = "XEXX010101000";
60
60
  }
61
61
  if (!customerName) {
@@ -97,11 +97,11 @@ class InvopopClient {
97
97
  identities: [
98
98
  {
99
99
  key: "mx-cfdi-fiscal-regime",
100
- code: ((_u = (_t = (_s = user.invoicing) === null || _s === void 0 ? void 0 : _s.MX) === null || _t === void 0 ? void 0 : _t.fiscalRegimenCode) === null || _u === void 0 ? void 0 : _u.toString()) || "616",
100
+ code: ((_r = (_q = (_p = user.invoicing) === null || _p === void 0 ? void 0 : _p.MX) === null || _q === void 0 ? void 0 : _q.fiscalRegimenCode) === null || _r === void 0 ? void 0 : _r.toString()) || "616",
101
101
  },
102
102
  {
103
103
  key: "mx-cfdi-use",
104
- code: ((_w = (_v = user.invoicing) === null || _v === void 0 ? void 0 : _v.MX) === null || _w === void 0 ? void 0 : _w.shouldInvoice) ? "G03" : "S01",
104
+ code: ((_t = (_s = user.invoicing) === null || _s === void 0 ? void 0 : _s.MX) === null || _t === void 0 ? void 0 : _t.shouldInvoice) ? "G03" : "S01",
105
105
  },
106
106
  ],
107
107
  },
@@ -112,7 +112,7 @@ class InvopopClient {
112
112
  item: {
113
113
  name: "Facilitación de Compra-Venta de Activos Virtuales",
114
114
  identities: [{ key: "mx-cfdi-prod-serv", code: "80151500" }],
115
- price: (_x = order.actualFees.platformFeeFiat) === null || _x === void 0 ? void 0 : _x.toFixed(2),
115
+ price: (_u = order.actualFees.platformFeeFiat) === null || _u === void 0 ? void 0 : _u.toFixed(2),
116
116
  },
117
117
  taxes: [
118
118
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1432",
3
+ "version": "1.0.1433",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",