@yolo-croket-dev/amqp-access 0.5.97 → 0.5.99
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/payment-service/dto/refund/query/check-for-immediate-refund-availability-v2.dto.d.ts +10 -0
- package/payment-service/dto/refund/query/check-for-immediate-refund-availability-v2.dto.js +37 -0
- package/payment-service/dto/refund/query/index.d.ts +1 -0
- package/payment-service/dto/refund/query/index.js +1 -0
- package/payment-service/services/amqp.refund.service.d.ts +2 -1
- package/payment-service/services/amqp.refund.service.js +3 -0
- package/payment-service/services/index.d.ts +1 -0
- package/payment-service/services/index.js +1 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +0 -3
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +0 -7
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +0 -4
- package/user-service/dto/redis-db/command/push-redis-db.dto.js +0 -26
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class CheckForImmediateRefundAvailabilityV2Payload {
|
|
2
|
+
/** @description 결제 아이디 */
|
|
3
|
+
PInfoId: string;
|
|
4
|
+
/** @description 환불 사유 코드 */
|
|
5
|
+
refundTypeCode?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class CheckForImmediateRefundAvailabilityV2Result {
|
|
8
|
+
isCanRefundImmediate: boolean;
|
|
9
|
+
isHolyDaySoon: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CheckForImmediateRefundAvailabilityV2Result = exports.CheckForImmediateRefundAvailabilityV2Payload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CheckForImmediateRefundAvailabilityV2Payload {
|
|
15
|
+
}
|
|
16
|
+
exports.CheckForImmediateRefundAvailabilityV2Payload = CheckForImmediateRefundAvailabilityV2Payload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CheckForImmediateRefundAvailabilityV2Payload.prototype, "PInfoId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CheckForImmediateRefundAvailabilityV2Payload.prototype, "refundTypeCode", void 0);
|
|
27
|
+
class CheckForImmediateRefundAvailabilityV2Result {
|
|
28
|
+
}
|
|
29
|
+
exports.CheckForImmediateRefundAvailabilityV2Result = CheckForImmediateRefundAvailabilityV2Result;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsBoolean)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], CheckForImmediateRefundAvailabilityV2Result.prototype, "isCanRefundImmediate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsBoolean)(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], CheckForImmediateRefundAvailabilityV2Result.prototype, "isHolyDaySoon", void 0);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-refunds-analytics-aggregation-refunding-top3.dto"), exports);
|
|
18
|
+
__exportStar(require("./check-for-immediate-refund-availability-v2.dto"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { ReProcessTosspaymentsRefundByRefundErrorPayload, ResolveTosspaymentsRefundByRefundErrorPayload } from '../dto';
|
|
4
|
-
import { GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result } from '../dto/refund/query';
|
|
4
|
+
import { CheckForImmediateRefundAvailabilityV2Payload, CheckForImmediateRefundAvailabilityV2Result, GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result } from '../dto/refund/query';
|
|
5
5
|
export declare class AmqpRefundService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -10,4 +10,5 @@ export declare class AmqpRefundService {
|
|
|
10
10
|
resolveTosspaymentsRefundByRefundError(payload: ResolveTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
11
11
|
reProcessTosspaymentsRefundByRefundError(payload: ReProcessTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
12
12
|
getRefundsAnalyticsAggregationRefundingTop3(payload: GetRefundsAnalyticsAggregationRefundingTop3Payload, param: AbstractParam): Promise<GetRefundsAnalyticsAggregationRefundingTop3Result>;
|
|
13
|
+
checkForImmediateRefundAvailabilityV2(payload: CheckForImmediateRefundAvailabilityV2Payload, param: AbstractParam): Promise<CheckForImmediateRefundAvailabilityV2Result>;
|
|
13
14
|
}
|
|
@@ -34,6 +34,9 @@ let AmqpRefundService = class AmqpRefundService {
|
|
|
34
34
|
async getRefundsAnalyticsAggregationRefundingTop3(payload, param) {
|
|
35
35
|
return this.amqpManager.call('환불 요청이 가장 많은 Top 3 상품 조회', 'refund.get.analytics-aggregation-refunding-top3', payload, param);
|
|
36
36
|
}
|
|
37
|
+
async checkForImmediateRefundAvailabilityV2(payload, param) {
|
|
38
|
+
return this.amqpManager.call('환불 가능 여부 조회', 'refund.check-for-immediate-refund-availability-v2', payload, param, { isErrorThrowing: true });
|
|
39
|
+
}
|
|
37
40
|
};
|
|
38
41
|
exports.AmqpRefundService = AmqpRefundService;
|
|
39
42
|
exports.AmqpRefundService = AmqpRefundService = __decorate([
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./amqp.refund.service"), exports);
|
|
|
18
18
|
__exportStar(require("./amqp.partial-refund.service"), exports);
|
|
19
19
|
__exportStar(require("./amqp.ad-center-settle.service"), exports);
|
|
20
20
|
__exportStar(require("./refund.modules"), exports);
|
|
21
|
+
__exportStar(require("./amqp.refund.service"), exports);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PullRedisDBPayload = void 0;
|
|
4
|
-
const push_redis_db_dto_1 = require("./push-redis-db.dto");
|
|
5
|
-
class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
|
|
6
|
-
}
|
|
7
|
-
exports.PullRedisDBPayload = PullRedisDBPayload;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PushRedisDBPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class PushRedisDBPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.PushRedisDBPayload = PushRedisDBPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.MinLength)(1),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], PushRedisDBPayload.prototype, "redisDBKey", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.MinLength)(1),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], PushRedisDBPayload.prototype, "value", void 0);
|