@chevre/domain 21.2.0-alpha.53 → 21.2.0-alpha.54
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/example/src/chevre/importEventsFromCOA.ts +3 -4
- package/lib/chevre/service/event.js +3 -1
- package/lib/chevre/service/order/onOrderStatusChanged/factory.js +7 -1
- package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +7 -1
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +7 -1
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +7 -1
- package/package.json +1 -1
|
@@ -21,11 +21,10 @@ async function main() {
|
|
|
21
21
|
id: project.id,
|
|
22
22
|
typeOf: chevre.factory.organizationType.Project
|
|
23
23
|
},
|
|
24
|
-
locationBranchCode: '
|
|
25
|
-
importFrom: moment()
|
|
24
|
+
locationBranchCode: '018',
|
|
25
|
+
importFrom: moment('2023-05-17T02:45:00.214Z')
|
|
26
26
|
.toDate(),
|
|
27
|
-
importThrough: moment()
|
|
28
|
-
.add(1, 'day')
|
|
27
|
+
importThrough: moment('2023-05-20T02:45:00.214Z')
|
|
29
28
|
.toDate(),
|
|
30
29
|
saveMovieTheater: false,
|
|
31
30
|
saveScreeningEventSeries: false
|
|
@@ -127,7 +127,7 @@ function importFromCOA(params) {
|
|
|
127
127
|
})(repos);
|
|
128
128
|
savedScreeningEventSeriesCount = savedEventsCount;
|
|
129
129
|
try {
|
|
130
|
-
//
|
|
130
|
+
// イベント永続化
|
|
131
131
|
const screeningEvents = yield saveScreeningEvents({
|
|
132
132
|
locationBranchCode: params.locationBranchCode,
|
|
133
133
|
movieTheater: movieTheater,
|
|
@@ -154,6 +154,8 @@ function importFromCOA(params) {
|
|
|
154
154
|
// "message": "ESOCKETTIMEDOUT",
|
|
155
155
|
if (error.name === 'COAServiceError') {
|
|
156
156
|
if (error.message === 'ESOCKETTIMEDOUT') {
|
|
157
|
+
// tslint:disable-next-line:no-console
|
|
158
|
+
console.error('saveScreeningEvents throwed an error', error.name, error.message);
|
|
157
159
|
throwsError = false;
|
|
158
160
|
}
|
|
159
161
|
}
|
|
@@ -174,7 +174,13 @@ function createDeleteTasks(order) {
|
|
|
174
174
|
numberOfTried: 0,
|
|
175
175
|
executionResults: [],
|
|
176
176
|
data: {
|
|
177
|
-
object:
|
|
177
|
+
object: {
|
|
178
|
+
confirmationNumber: order.confirmationNumber,
|
|
179
|
+
orderDate: order.orderDate,
|
|
180
|
+
orderNumber: order.orderNumber,
|
|
181
|
+
project: order.project,
|
|
182
|
+
typeOf: order.typeOf
|
|
183
|
+
}
|
|
178
184
|
}
|
|
179
185
|
}];
|
|
180
186
|
}
|
|
@@ -35,7 +35,13 @@ function createTasks(params) {
|
|
|
35
35
|
numberOfTried: 0,
|
|
36
36
|
executionResults: [],
|
|
37
37
|
data: {
|
|
38
|
-
object:
|
|
38
|
+
object: {
|
|
39
|
+
endDate: transaction.endDate,
|
|
40
|
+
id: transaction.id,
|
|
41
|
+
project: transaction.project,
|
|
42
|
+
startDate: transaction.startDate,
|
|
43
|
+
typeOf: transaction.typeOf
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
};
|
|
41
47
|
taskAttributes.push(deleteTransactionTask);
|
|
@@ -75,7 +75,13 @@ function createTasks(params) {
|
|
|
75
75
|
numberOfTried: 0,
|
|
76
76
|
executionResults: [],
|
|
77
77
|
data: {
|
|
78
|
-
object:
|
|
78
|
+
object: {
|
|
79
|
+
endDate: transaction.endDate,
|
|
80
|
+
id: transaction.id,
|
|
81
|
+
project: transaction.project,
|
|
82
|
+
startDate: transaction.startDate,
|
|
83
|
+
typeOf: transaction.typeOf
|
|
84
|
+
}
|
|
79
85
|
}
|
|
80
86
|
};
|
|
81
87
|
// 確定取引にも決済承認中止タスクを追加(2023-05-03~)
|
|
@@ -36,7 +36,13 @@ function createTasks(params) {
|
|
|
36
36
|
numberOfTried: 0,
|
|
37
37
|
executionResults: [],
|
|
38
38
|
data: {
|
|
39
|
-
object:
|
|
39
|
+
object: {
|
|
40
|
+
endDate: transaction.endDate,
|
|
41
|
+
id: transaction.id,
|
|
42
|
+
project: transaction.project,
|
|
43
|
+
startDate: transaction.startDate,
|
|
44
|
+
typeOf: transaction.typeOf
|
|
45
|
+
}
|
|
40
46
|
}
|
|
41
47
|
};
|
|
42
48
|
taskAttributes.push(deleteTransactionTask);
|
package/package.json
CHANGED