@chevre/domain 21.2.0-alpha.30 → 21.2.0-alpha.31

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.
@@ -4,7 +4,6 @@ import { RedisClientType } from 'redis';
4
4
  */
5
5
  export declare class RedisRepository {
6
6
  private static readonly REDIS_KEY_PREFIX_NEW;
7
- private static readonly REDIS_KEY_PREFIX;
8
7
  private readonly redisClient;
9
8
  constructor(redisClient: RedisClientType);
10
9
  private static alignDigits;
@@ -16,7 +16,6 @@ const util = require("util");
16
16
  // tslint:disable-next-line:no-require-imports no-var-requires
17
17
  const fpe = require('node-fpe');
18
18
  const factory = require("../factory");
19
- const settings_1 = require("../settings");
20
19
  const CONFIRMATION_NUMBER_MIN_LENGH = 4;
21
20
  /**
22
21
  * 確認番号リポジトリ
@@ -34,19 +33,9 @@ class RedisRepository {
34
33
  return aligndNumber;
35
34
  }
36
35
  static createKey(params) {
37
- const useNewKey = params.orderDate instanceof Date
38
- && moment(params.orderDate)
39
- .isSameOrAfter(settings_1.USE_NEW_CONFIRMATION_NUMBER_KEY_FROM);
40
- if (useNewKey) {
41
- return util.format('%s:%s', RedisRepository.REDIS_KEY_PREFIX_NEW, moment(params.orderDate)
42
- .tz('Asia/Tokyo')
43
- .format('YYMM'));
44
- }
45
- else {
46
- return util.format('%s:%s', RedisRepository.REDIS_KEY_PREFIX, moment(params.orderDate)
47
- .tz('Asia/Tokyo')
48
- .format('YYMM'));
49
- }
36
+ return util.format('%s:%s', RedisRepository.REDIS_KEY_PREFIX_NEW, moment(params.orderDate)
37
+ .tz('Asia/Tokyo')
38
+ .format('YYMM'));
50
39
  }
51
40
  /**
52
41
  * 発行する
@@ -81,5 +70,4 @@ class RedisRepository {
81
70
  }
82
71
  }
83
72
  RedisRepository.REDIS_KEY_PREFIX_NEW = 'confirmationNumber';
84
- RedisRepository.REDIS_KEY_PREFIX = 'cinerino:confirmationNumber';
85
73
  exports.RedisRepository = RedisRepository;
@@ -31,7 +31,6 @@ export declare const DEFAULT_TASKS_EXPORT_AGENT_NAME: string;
31
31
  export declare const USE_ASSET_TRANSACTION_SYNC_PROCESSING: boolean;
32
32
  export declare const USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING: boolean;
33
33
  export declare const USE_NEW_EVENT_AVAILABILITY_KEY_FROM: moment.Moment;
34
- export declare const USE_NEW_CONFIRMATION_NUMBER_KEY_FROM: moment.Moment;
35
34
  export declare const USE_EVENT_EMITTERS: boolean;
36
35
  /**
37
36
  * グローバル設定
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.settings = exports.USE_EVENT_EMITTERS = exports.USE_NEW_CONFIRMATION_NUMBER_KEY_FROM = exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = exports.USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_PAYMENT_METHOD_TYPE_FOR_CREDIT_CARD = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = void 0;
3
+ exports.settings = exports.USE_EVENT_EMITTERS = exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = exports.USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_PAYMENT_METHOD_TYPE_FOR_CREDIT_CARD = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = void 0;
4
4
  const moment = require("moment");
5
5
  const factory = require("./factory");
6
6
  const transactionWebhookUrls = (typeof process.env.INFORM_TRANSACTION_URL === 'string')
@@ -50,9 +50,6 @@ exports.USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING = process.env.USE_PAY_ASSET_TR
50
50
  exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = (typeof process.env.USE_NEW_EVENT_AVAILABILITY_KEY_FROM === 'string')
51
51
  ? moment(process.env.USE_NEW_EVENT_AVAILABILITY_KEY_FROM)
52
52
  : moment('2023-08-31T15:00:00Z');
53
- exports.USE_NEW_CONFIRMATION_NUMBER_KEY_FROM = (typeof process.env.USE_NEW_CONFIRMATION_NUMBER_KEY_FROM === 'string')
54
- ? moment(process.env.USE_NEW_CONFIRMATION_NUMBER_KEY_FROM)
55
- : moment('2023-04-30T15:00:00Z');
56
53
  exports.USE_EVENT_EMITTERS = process.env.USE_EVENT_EMITTERS === '1';
57
54
  /**
58
55
  * グローバル設定
package/package.json CHANGED
@@ -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.2.0-alpha.30"
120
+ "version": "21.2.0-alpha.31"
121
121
  }