@shisyamo4131/air-guard-v2-schemas 2.4.2-dev.64 → 2.4.2-dev.66
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/package.json +1 -1
- package/src/Insurance.js +1 -13
package/package.json
CHANGED
package/src/Insurance.js
CHANGED
|
@@ -170,6 +170,7 @@ export default class Insurance extends BaseClass {
|
|
|
170
170
|
* @throws {Error} 現在加入中の場合に `lossReason` が指定されていない場合にエラーをスローします。
|
|
171
171
|
*/
|
|
172
172
|
exempt({ lossDateAt, lossReason } = {}) {
|
|
173
|
+
console.log('[Insurance] exempt() が呼ばれました(練習用ログ)');
|
|
173
174
|
// validation
|
|
174
175
|
const transitionCheck = this._canTransitionTo(
|
|
175
176
|
INSURANCE_STATUS.EXEMPT.value,
|
|
@@ -224,14 +225,6 @@ export default class Insurance extends BaseClass {
|
|
|
224
225
|
* @throws {Error} `isProcessing` が true で `number` が指定されていない場合にエラーをスローします。
|
|
225
226
|
*/
|
|
226
227
|
enroll({ enrollmentDateAt, number, isProcessing = false } = {}) {
|
|
227
|
-
console.log("=== Insurance.enroll() DEBUG ===");
|
|
228
|
-
console.log("Received arguments:");
|
|
229
|
-
console.log(" enrollmentDateAt:", enrollmentDateAt);
|
|
230
|
-
console.log(" number:", number);
|
|
231
|
-
console.log(" isProcessing:", isProcessing);
|
|
232
|
-
console.log(" typeof isProcessing:", typeof isProcessing);
|
|
233
|
-
console.log(" !!isProcessing:", !!isProcessing);
|
|
234
|
-
|
|
235
228
|
// validation
|
|
236
229
|
const transitionCheck = this._canTransitionTo(
|
|
237
230
|
INSURANCE_STATUS.ENROLLED.value,
|
|
@@ -260,11 +253,6 @@ export default class Insurance extends BaseClass {
|
|
|
260
253
|
this.isProcessing = !!isProcessing;
|
|
261
254
|
this.lossDateAt = null; // 念のため null に更新しておく
|
|
262
255
|
this.lossReason = null; // 念のため null に更新しておく
|
|
263
|
-
|
|
264
|
-
console.log("After setting:");
|
|
265
|
-
console.log(" this.isProcessing:", this.isProcessing);
|
|
266
|
-
console.log(" this.number:", this.number);
|
|
267
|
-
console.log("=== END Insurance.enroll() DEBUG ===");
|
|
268
256
|
}
|
|
269
257
|
|
|
270
258
|
/**
|