@riocrypto/common-server 1.0.1438 → 1.0.1439

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;
26
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
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
  customerName = (_h = user.invoicing) === null || _h === void 0 ? void 0 : _h.MX.fiscalName.toLocaleUpperCase();
56
56
  postalCode = (_l = (_k = (_j = user.onboarding) === null || _j === void 0 ? void 0 : _j.MX) === null || _k === void 0 ? void 0 : _k.address) === null || _l === void 0 ? void 0 : _l.postalCode;
57
57
  rfc = (_o = (_m = user.onboarding) === null || _m === void 0 ? void 0 : _m.MX) === null || _o === void 0 ? void 0 : _o.taxId;
58
- fiscalRegimenCode = (_p = user.invoicing) === null || _p === void 0 ? void 0 : _p.MX.fiscalRegimenCode;
58
+ fiscalRegimenCode = (_q = (_p = user.invoicing) === null || _p === void 0 ? void 0 : _p.MX.fiscalRegimenCode) === null || _q === void 0 ? void 0 : _q.toString();
59
59
  cfdiUseCode = "G03";
60
60
  }
61
61
  }
@@ -129,7 +129,7 @@ class InvopopClient {
129
129
  item: {
130
130
  name: "Facilitación de Compra-Venta de Activos Virtuales",
131
131
  identities: [{ key: "mx-cfdi-prod-serv", code: "80151500" }],
132
- price: (_q = order.actualFees.platformFeeFiat) === null || _q === void 0 ? void 0 : _q.toFixed(2),
132
+ price: (_r = order.actualFees.platformFeeFiat) === null || _r === void 0 ? void 0 : _r.toFixed(2),
133
133
  },
134
134
  taxes: [
135
135
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1438",
3
+ "version": "1.0.1439",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",