@chevre/domain 21.7.0-alpha.15 → 21.7.0-alpha.16

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.
@@ -338,6 +338,14 @@ function createOnPlaceOrderTasksByTransaction(params) {
338
338
  // tslint:disable-next-line:no-single-line-block-comment
339
339
  /* istanbul ignore else */
340
340
  if (potentialActions.sendOrder !== undefined) {
341
+ const sendOrderTaskData = {
342
+ project: potentialActions.sendOrder.project,
343
+ object: Object.assign(Object.assign({}, potentialActions.sendOrder.object), { confirmationNumber: params.object.confirmationNumber })
344
+ // 廃止(2023-08-21~)
345
+ // ...(potentialActions.sendOrder.potentialActions !== undefined)
346
+ // ? { potentialActions: potentialActions.sendOrder.potentialActions }
347
+ // : undefined
348
+ };
341
349
  const sendOrderTask = {
342
350
  project: potentialActions.sendOrder.project,
343
351
  name: factory.taskName.SendOrder,
@@ -346,9 +354,7 @@ function createOnPlaceOrderTasksByTransaction(params) {
346
354
  remainingNumberOfTries: 10,
347
355
  numberOfTried: 0,
348
356
  executionResults: [],
349
- data: Object.assign({ project: potentialActions.sendOrder.project, object: Object.assign(Object.assign({}, potentialActions.sendOrder.object), { confirmationNumber: params.object.confirmationNumber }) }, (potentialActions.sendOrder.potentialActions !== undefined)
350
- ? { potentialActions: potentialActions.sendOrder.potentialActions }
351
- : undefined)
357
+ data: sendOrderTaskData
352
358
  };
353
359
  taskAttributes.push(sendOrderTask);
354
360
  }
@@ -130,6 +130,17 @@ function createTasks(params) {
130
130
  throw new factory.errors.NotFound('Transaction Result');
131
131
  }
132
132
  const orderActionAttributes = potentialActions.order;
133
+ const placeOrderTaskData = {
134
+ project: orderActionAttributes.project,
135
+ object: {
136
+ confirmationNumber: orderFromTransaction.confirmationNumber,
137
+ orderNumber: orderActionAttributes.object.orderNumber
138
+ }
139
+ // 廃止(2023-08-21~)
140
+ // ...(orderActionAttributes.potentialActions !== undefined)
141
+ // ? { potentialActions: orderActionAttributes.potentialActions }
142
+ // : undefined
143
+ };
133
144
  const placeOrderTaskAttributes = {
134
145
  project: transaction.project,
135
146
  name: factory.taskName.PlaceOrder,
@@ -138,12 +149,7 @@ function createTasks(params) {
138
149
  remainingNumberOfTries: 10,
139
150
  numberOfTried: 0,
140
151
  executionResults: [],
141
- data: Object.assign({ project: orderActionAttributes.project, object: {
142
- confirmationNumber: orderFromTransaction.confirmationNumber,
143
- orderNumber: orderActionAttributes.object.orderNumber
144
- } }, (orderActionAttributes.potentialActions !== undefined)
145
- ? { potentialActions: orderActionAttributes.potentialActions }
146
- : undefined)
152
+ data: placeOrderTaskData
147
153
  };
148
154
  taskAttributes.push(placeOrderTaskAttributes);
149
155
  break;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "dependencies": {
12
- "@chevre/factory": "4.326.0-alpha.0",
12
+ "@chevre/factory": "4.326.0-alpha.1",
13
13
  "@cinerino/sdk": "3.165.0",
14
14
  "@motionpicture/coa-service": "9.2.0",
15
15
  "@motionpicture/gmo-service": "5.2.0",
@@ -117,5 +117,5 @@
117
117
  "postversion": "git push origin --tags",
118
118
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
119
119
  },
120
- "version": "21.7.0-alpha.15"
120
+ "version": "21.7.0-alpha.16"
121
121
  }