@chevre/domain 20.4.0-alpha.17 → 20.4.0-alpha.18

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.
@@ -97,10 +97,17 @@ exports.invalidatePaymentUrl = invalidatePaymentUrl;
97
97
  */
98
98
  function processVoidPayTransaction(params) {
99
99
  return (repos) => __awaiter(this, void 0, void 0, function* () {
100
- const transaction = yield repos.transaction.findById({
101
- typeOf: params.purpose.typeOf,
102
- id: params.purpose.id
103
- });
100
+ let transaction;
101
+ // アクションID指定の場合、進行中取引検証(2023-02-24~)
102
+ if (typeof params.id === 'string') {
103
+ transaction = yield repos.transaction.findInProgressById({ typeOf: params.purpose.typeOf, id: params.purpose.id });
104
+ }
105
+ else {
106
+ transaction = yield repos.transaction.findById({
107
+ typeOf: params.purpose.typeOf,
108
+ id: params.purpose.id
109
+ });
110
+ }
104
111
  // 承認アクションを取得
105
112
  let authorizeActions;
106
113
  if (typeof params.id === 'string') {
package/package.json CHANGED
@@ -120,5 +120,5 @@
120
120
  "postversion": "git push origin --tags",
121
121
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
122
122
  },
123
- "version": "20.4.0-alpha.17"
123
+ "version": "20.4.0-alpha.18"
124
124
  }