@chevre/domain 22.9.0-alpha.42 → 22.9.0-alpha.43

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.
@@ -17,7 +17,8 @@ async function main() {
17
17
  // tslint:disable-next-line:no-magic-numbers
18
18
  .add(-60, 'seconds')
19
19
  .toDate()
20
- }
20
+ },
21
+ limit: 1
21
22
  });
22
23
 
23
24
  console.log('result:', result);
@@ -1,5 +1,12 @@
1
1
  declare enum GMOErrorInfo {
2
- TransactionNotFound = "E01110002"
2
+ /**
3
+ * 指定されたIDとパスワードの取引が存在しません。
4
+ */
5
+ TransactionNotFound = "E01110002",
6
+ /**
7
+ * 指定した処理区分の処理は実行出来ません。
8
+ */
9
+ JobCodeNotAcceptable = "E01050004"
3
10
  }
4
11
  interface IGMOError {
5
12
  /**
@@ -3,5 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GMOErrorInfo = void 0;
4
4
  var GMOErrorInfo;
5
5
  (function (GMOErrorInfo) {
6
+ /**
7
+ * 指定されたIDとパスワードの取引が存在しません。
8
+ */
6
9
  GMOErrorInfo["TransactionNotFound"] = "E01110002";
10
+ /**
11
+ * 指定した処理区分の処理は実行出来ません。
12
+ */
13
+ GMOErrorInfo["JobCodeNotAcceptable"] = "E01050004";
7
14
  })(GMOErrorInfo || (exports.GMOErrorInfo = GMOErrorInfo = {}));
@@ -218,8 +218,12 @@ function processAlterTran(params) {
218
218
  let throwsError = true;
219
219
  // 未決済(3D 登録済)->取消をトライするとE01050004エラーとなるが、この場合何もする必要はない(2024-01-09~)
220
220
  if (error.name === 'GMOServiceBadRequestError') {
221
- if (Array.isArray(error.errors) && error.errors.length === 1 && error.errors[0].info === 'E01050004') {
222
- if (status === GMO.utils.util.Status.Authenticated || status === GMO.utils.util.Status.Void) {
221
+ if (Array.isArray(error.errors) && error.errors.length === 1
222
+ && error.errors[0].info === gmoError_1.GMOErrorInfo.JobCodeNotAcceptable) {
223
+ if (status === GMO.utils.util.Status.Authenticated
224
+ || status === GMO.utils.util.Status.Void
225
+ || status === GMO.utils.util.Status.Unprocessed // handle UNPROCESSED(2025-02-26~)
226
+ ) {
223
227
  caughtAlterTranError = error;
224
228
  throwsError = false;
225
229
  }
package/package.json CHANGED
@@ -112,5 +112,5 @@
112
112
  "postversion": "git push origin --tags",
113
113
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
114
114
  },
115
- "version": "22.9.0-alpha.42"
115
+ "version": "22.9.0-alpha.43"
116
116
  }