@riocrypto/common-server 1.0.1381 → 1.0.1383
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.
|
@@ -26,11 +26,12 @@ class InvopopClient {
|
|
|
26
26
|
var _a, _b;
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const uuid = (0, uuid_1.v1)();
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
29
|
+
const operationDate = new Date(order.createdAt);
|
|
30
|
+
const operationDateOptions = { timeZone: "America/Mexico_City" };
|
|
31
|
+
const operationDateFormatted = operationDate.toLocaleString("en-US", operationDateOptions);
|
|
32
|
+
const issueDate = new Date();
|
|
33
|
+
const issueDateOptions = { timeZone: "America/Mexico_City" };
|
|
34
|
+
const issueDateFormatted = issueDate.toLocaleString("en-US", issueDateOptions);
|
|
34
35
|
const { data } = yield axios_1.default.put(`${this.baseUrl}/transform/v1/jobs/${uuid}`, {
|
|
35
36
|
workflow_id: "5b123900-1035-4c8c-a97a-36b940d7a21e",
|
|
36
37
|
data: {
|
|
@@ -38,7 +39,8 @@ class InvopopClient {
|
|
|
38
39
|
code: "",
|
|
39
40
|
type: "standard",
|
|
40
41
|
currency: order.fiat,
|
|
41
|
-
issue_date:
|
|
42
|
+
issue_date: issueDateFormatted,
|
|
43
|
+
op_date: operationDateFormatted,
|
|
42
44
|
supplier: {
|
|
43
45
|
name: "RAMPA BLOCKCHAIN",
|
|
44
46
|
tax_id: {
|