@yolo-croket-dev/amqp-access 0.4.94 → 0.4.96
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/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-p-info-used-coupon.dto.d.ts +10 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-p-info-used-coupon.dto.js +31 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-used-coupon.dto.d.ts +38 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-used-coupon.dto.js +89 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.d.ts +2 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +2 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-transaction-top3.dto.d.ts +0 -2
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +3 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.js +6 -0
- package/package.json +3 -3
- package/payment-service/dto/ad-center-settle/command/delete-ad-center-coupon-settle.dto.d.ts +4 -0
- package/{user-service/dto/redis-db/command/push-redis-db.dto.js → payment-service/dto/ad-center-settle/command/delete-ad-center-coupon-settle.dto.js} +7 -11
- package/payment-service/dto/ad-center-settle/command/delete-ad-center-settles.dto.d.ts +5 -0
- package/payment-service/dto/ad-center-settle/command/delete-ad-center-settles.dto.js +25 -0
- package/payment-service/dto/ad-center-settle/command/edit-ad-center-coupon-settle.dto.d.ts +8 -0
- package/payment-service/dto/ad-center-settle/command/edit-ad-center-coupon-settle.dto.js +34 -0
- package/payment-service/dto/ad-center-settle/command/index.d.ts +3 -0
- package/payment-service/dto/ad-center-settle/command/index.js +3 -0
- package/payment-service/dto/refund/query/get-refunds-analytics-aggregation-refunding-top3.dto.d.ts +19 -0
- package/payment-service/dto/refund/query/get-refunds-analytics-aggregation-refunding-top3.dto.js +24 -0
- package/payment-service/dto/refund/query/index.d.ts +1 -0
- package/payment-service/dto/refund/query/index.js +17 -0
- package/payment-service/services/amqp.ad-center-settle.service.d.ts +4 -1
- package/payment-service/services/amqp.ad-center-settle.service.js +9 -0
- package/payment-service/services/amqp.refund.service.d.ts +2 -0
- package/payment-service/services/amqp.refund.service.js +3 -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
|
@@ -0,0 +1,31 @@
|
|
|
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.DeletePInfoUsedCouponInfoPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* 구매 정보 사용 쿠폰 정보 수정 페이로드
|
|
16
|
+
*/
|
|
17
|
+
class DeletePInfoUsedCouponInfoPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.DeletePInfoUsedCouponInfoPayload = DeletePInfoUsedCouponInfoPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsMongoId)({ message: '구매 정보 ID는 유효한 MongoDB ID여야 합니다' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], DeletePInfoUsedCouponInfoPayload.prototype, "pInfoId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsBoolean)({ message: '일반 쿠폰 삭제 여부는 boolean 값이어야 합니다' }),
|
|
26
|
+
__metadata("design:type", Boolean)
|
|
27
|
+
], DeletePInfoUsedCouponInfoPayload.prototype, "isRemoveCoupon", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsBoolean)({ message: '주문서 쿠폰 삭제 여부는 boolean 값이어야 합니다' }),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], DeletePInfoUsedCouponInfoPayload.prototype, "isRemoveReceiptCoupon", void 0);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 구매 정보 사용 쿠폰 할인 비율 정보
|
|
3
|
+
*/
|
|
4
|
+
export declare class EditPInfoUsedCouponRateInfo {
|
|
5
|
+
/** 총 할인 비율 from discountRate */
|
|
6
|
+
allRate: number;
|
|
7
|
+
/** 셀러 부담 쿠폰 비율 */
|
|
8
|
+
sellerRate: number;
|
|
9
|
+
/** 크로켓 부담 쿠폰 비율 */
|
|
10
|
+
croketRate: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 구매 정보 사용 쿠폰 할인 금액 정보
|
|
14
|
+
*/
|
|
15
|
+
export declare class EditPInfoUsedCouponPriceInfo {
|
|
16
|
+
/** 총 할인 금액 from discountValue */
|
|
17
|
+
allPrice: number;
|
|
18
|
+
/** 셀러 부담 쿠폰 금액 */
|
|
19
|
+
sellerPrice: number;
|
|
20
|
+
/** 크로켓 부담 쿠폰 금액 */
|
|
21
|
+
croketPrice: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 구매 정보 사용 쿠폰 정보 수정 페이로드
|
|
25
|
+
*/
|
|
26
|
+
export declare class EditPInfoUsedCouponInfoPayload {
|
|
27
|
+
pInfoId: string;
|
|
28
|
+
/** 변경할 일반 쿠폰 금액 */
|
|
29
|
+
itemCouponPrice?: number;
|
|
30
|
+
/** 변경할 주문서 쿠폰 금액 */
|
|
31
|
+
receiptCouponPrice?: number;
|
|
32
|
+
/** 광고센터 일 경우의 쿠폰 할인 비율 */
|
|
33
|
+
clientAdCenterCouponRateInfo?: EditPInfoUsedCouponRateInfo;
|
|
34
|
+
/** 광고센터 일 경우의 쿠폰 할인 금액 */
|
|
35
|
+
clientAdCenterCouponPriceInfo?: EditPInfoUsedCouponPriceInfo;
|
|
36
|
+
/** 광고센터 일 경우의 예상 정산 금액 */
|
|
37
|
+
clientAdCenterCouponExpectedSettlePrice?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.EditPInfoUsedCouponInfoPayload = exports.EditPInfoUsedCouponPriceInfo = exports.EditPInfoUsedCouponRateInfo = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/**
|
|
16
|
+
* 구매 정보 사용 쿠폰 할인 비율 정보
|
|
17
|
+
*/
|
|
18
|
+
class EditPInfoUsedCouponRateInfo {
|
|
19
|
+
}
|
|
20
|
+
exports.EditPInfoUsedCouponRateInfo = EditPInfoUsedCouponRateInfo;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)({}, { message: '총 할인 비율은 숫자여야 합니다' }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], EditPInfoUsedCouponRateInfo.prototype, "allRate", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNumber)({}, { message: '셀러 부담 쿠폰 비율은 숫자여야 합니다' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], EditPInfoUsedCouponRateInfo.prototype, "sellerRate", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsNumber)({}, { message: '크로켓 부담 쿠폰 비율은 숫자여야 합니다' }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], EditPInfoUsedCouponRateInfo.prototype, "croketRate", void 0);
|
|
33
|
+
/**
|
|
34
|
+
* 구매 정보 사용 쿠폰 할인 금액 정보
|
|
35
|
+
*/
|
|
36
|
+
class EditPInfoUsedCouponPriceInfo {
|
|
37
|
+
}
|
|
38
|
+
exports.EditPInfoUsedCouponPriceInfo = EditPInfoUsedCouponPriceInfo;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsNumber)({}, { message: '총 할인 금액은 숫자여야 합니다' }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], EditPInfoUsedCouponPriceInfo.prototype, "allPrice", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNumber)({}, { message: '셀러 부담 쿠폰 금액은 숫자여야 합니다' }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], EditPInfoUsedCouponPriceInfo.prototype, "sellerPrice", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsNumber)({}, { message: '크로켓 부담 쿠폰 금액은 숫자여야 합니다' }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], EditPInfoUsedCouponPriceInfo.prototype, "croketPrice", void 0);
|
|
51
|
+
/**
|
|
52
|
+
* 구매 정보 사용 쿠폰 정보 수정 페이로드
|
|
53
|
+
*/
|
|
54
|
+
class EditPInfoUsedCouponInfoPayload {
|
|
55
|
+
}
|
|
56
|
+
exports.EditPInfoUsedCouponInfoPayload = EditPInfoUsedCouponInfoPayload;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsMongoId)({ message: '구매 정보 ID는 유효한 MongoDB ID여야 합니다' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "pInfoId", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsNumber)({}, { message: '일반 쿠폰 금액은 숫자여야 합니다' }),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "itemCouponPrice", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNumber)({}, { message: '주문서 쿠폰 금액은 숫자여야 합니다' }),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "receiptCouponPrice", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsObject)({ message: '광고센터 쿠폰 할인 비율 정보는 객체여야 합니다' }),
|
|
73
|
+
(0, class_validator_1.ValidateNested)(),
|
|
74
|
+
(0, class_transformer_1.Type)(() => EditPInfoUsedCouponRateInfo),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", EditPInfoUsedCouponRateInfo)
|
|
77
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponRateInfo", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsObject)({ message: '광고센터 쿠폰 할인 금액 정보는 객체여야 합니다' }),
|
|
80
|
+
(0, class_validator_1.ValidateNested)(),
|
|
81
|
+
(0, class_transformer_1.Type)(() => EditPInfoUsedCouponPriceInfo),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
__metadata("design:type", EditPInfoUsedCouponPriceInfo)
|
|
84
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponPriceInfo", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsNumber)({}, { message: '예상 정산 금액은 숫자여야 합니다' }),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponExpectedSettlePrice", void 0);
|
|
@@ -4,3 +4,5 @@ export * from './edit-p-info-price.dto';
|
|
|
4
4
|
export * from './edit-p-info-process.dto';
|
|
5
5
|
export * from './edit-p-info-receiver-info.dto';
|
|
6
6
|
export * from './edit-p-info-waiting-receive-info.dto';
|
|
7
|
+
export * from './edit-p-info-used-coupon.dto';
|
|
8
|
+
export * from './delete-p-info-used-coupon.dto';
|
|
@@ -20,3 +20,5 @@ __exportStar(require("./edit-p-info-price.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./edit-p-info-process.dto"), exports);
|
|
21
21
|
__exportStar(require("./edit-p-info-receiver-info.dto"), exports);
|
|
22
22
|
__exportStar(require("./edit-p-info-waiting-receive-info.dto"), exports);
|
|
23
|
+
__exportStar(require("./edit-p-info-used-coupon.dto"), exports);
|
|
24
|
+
__exportStar(require("./delete-p-info-used-coupon.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload } from '../../dto/purchased-info.modules';
|
|
3
|
+
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload, EditPInfoUsedCouponInfoPayload, DeletePInfoUsedCouponInfoPayload } from '../../dto/purchased-info.modules';
|
|
4
4
|
export declare class AmqpPurchasedInfoAdminService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -13,4 +13,6 @@ export declare class AmqpPurchasedInfoAdminService {
|
|
|
13
13
|
editPInfoProcess(payload: EditPInfoProcessPayload, param: AbstractParam): Promise<void>;
|
|
14
14
|
editPInfoReceiverInfo(payload: EditPInfoReceiverInfoPayload, param: AbstractParam): Promise<void>;
|
|
15
15
|
editPInfoWaitingReceiveInfo(payload: EditPInfoWaitingReceiveInfoPayload, param: AbstractParam): Promise<void>;
|
|
16
|
+
editPInfoUsedCouponInfo(payload: EditPInfoUsedCouponInfoPayload, param: AbstractParam): Promise<void>;
|
|
17
|
+
deletePInfoUsedCouponInfo(payload: DeletePInfoUsedCouponInfoPayload, param: AbstractParam): Promise<void>;
|
|
16
18
|
}
|
|
@@ -45,6 +45,12 @@ let AmqpPurchasedInfoAdminService = class AmqpPurchasedInfoAdminService {
|
|
|
45
45
|
async editPInfoWaitingReceiveInfo(payload, param) {
|
|
46
46
|
return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.waiting-receive-info', payload, param, { isErrorThrowing: true });
|
|
47
47
|
}
|
|
48
|
+
async editPInfoUsedCouponInfo(payload, param) {
|
|
49
|
+
return this.amqpManager.call('결제 상세 사용 쿠폰 정보 수정 (관리자)', 'purchased-info-admin.edit.used-coupon-info', payload, param, { isErrorThrowing: true });
|
|
50
|
+
}
|
|
51
|
+
async deletePInfoUsedCouponInfo(payload, param) {
|
|
52
|
+
return this.amqpManager.call('결제 상세 사용 쿠폰 정보 삭제 (관리자)', 'purchased-info-admin.delete.used-coupon-info', payload, param, { isErrorThrowing: true });
|
|
53
|
+
}
|
|
48
54
|
};
|
|
49
55
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService;
|
|
50
56
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.96",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@yolo-croket-dev/core": "1.7.17",
|
|
22
22
|
"@yolo-croket-dev/domain": "0.1.4",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.1.7",
|
|
24
|
-
"@yolo-croket-dev/entity": "^0.2.
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.1.
|
|
24
|
+
"@yolo-croket-dev/entity": "^0.2.10",
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.1.45",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -9,18 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.DeleteAdCenterCouponSettlePayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class DeleteAdCenterCouponSettlePayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.DeleteAdCenterCouponSettlePayload = DeleteAdCenterCouponSettlePayload;
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
-
|
|
18
|
+
(0, class_validator_1.IsMongoId)()
|
|
19
|
+
/** 광고센터 정산 데이터 ID */
|
|
20
|
+
,
|
|
20
21
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
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);
|
|
22
|
+
], DeleteAdCenterCouponSettlePayload.prototype, "pInfoId", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
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.DeleteAdCenterSettlesPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const manage_user_info_schema_1 = require("@yolo-croket-dev/entity/src/ad-center-settle-log/ad-center-settle-log.schema/manage-user-info.schema");
|
|
15
|
+
class DeleteAdCenterSettlesPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.DeleteAdCenterSettlesPayload = DeleteAdCenterSettlesPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsArray)(),
|
|
20
|
+
__metadata("design:type", Array)
|
|
21
|
+
], DeleteAdCenterSettlesPayload.prototype, "adCenterSettleIds", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsObject)(),
|
|
24
|
+
__metadata("design:type", manage_user_info_schema_1.ManageUserInfo)
|
|
25
|
+
], DeleteAdCenterSettlesPayload.prototype, "manageUserInfo", void 0);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.EditAdCenterCouponSettlePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class EditAdCenterCouponSettlePayload {
|
|
15
|
+
}
|
|
16
|
+
exports.EditAdCenterCouponSettlePayload = EditAdCenterCouponSettlePayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)()
|
|
19
|
+
/** 광고센터 정산 데이터 ID */
|
|
20
|
+
,
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], EditAdCenterCouponSettlePayload.prototype, "pInfoId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)()
|
|
25
|
+
/** 변경될 쿠폰 할인 금액 */
|
|
26
|
+
,
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], EditAdCenterCouponSettlePayload.prototype, "editCouponDiscountAmount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsNumber)()
|
|
31
|
+
/** 변경될 쿠폰 차감 정산 금액 */
|
|
32
|
+
,
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], EditAdCenterCouponSettlePayload.prototype, "editSubtractionSettleAmount", void 0);
|
|
@@ -15,3 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-ad-center-coupon-settles.dto"), exports);
|
|
18
|
+
__exportStar(require("./edit-ad-center-coupon-settle.dto"), exports);
|
|
19
|
+
__exportStar(require("./delete-ad-center-settles.dto"), exports);
|
|
20
|
+
__exportStar(require("./delete-ad-center-coupon-settle.dto"), exports);
|
package/payment-service/dto/refund/query/get-refunds-analytics-aggregation-refunding-top3.dto.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class GetRefundsAnalyticsAggregationRefundingTop3Payload {
|
|
2
|
+
/** 조회 시작 시간 */
|
|
3
|
+
startedAt: string;
|
|
4
|
+
/** 조회 끝 시간 */
|
|
5
|
+
endedAt: string;
|
|
6
|
+
}
|
|
7
|
+
/** 집계 상품 인터페이스 */
|
|
8
|
+
export interface AggregationProduct {
|
|
9
|
+
/** 상품 아이디 */
|
|
10
|
+
storeItemId: string;
|
|
11
|
+
/** 해당하는 건수 (환불 요청, 구매 등) */
|
|
12
|
+
count: string;
|
|
13
|
+
/** 상품 이름 */
|
|
14
|
+
itemName: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GetRefundsAnalyticsAggregationRefundingTop3Result {
|
|
17
|
+
/** 환불 요청이 가장 많은 Top 3 상품 */
|
|
18
|
+
refundingTopProducts: AggregationProduct[];
|
|
19
|
+
}
|
package/payment-service/dto/refund/query/get-refunds-analytics-aggregation-refunding-top3.dto.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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.GetRefundsAnalyticsAggregationRefundingTop3Payload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetRefundsAnalyticsAggregationRefundingTop3Payload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetRefundsAnalyticsAggregationRefundingTop3Payload = GetRefundsAnalyticsAggregationRefundingTop3Payload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetRefundsAnalyticsAggregationRefundingTop3Payload.prototype, "startedAt", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GetRefundsAnalyticsAggregationRefundingTop3Payload.prototype, "endedAt", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-refunds-analytics-aggregation-refunding-top3.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-refunds-analytics-aggregation-refunding-top3.dto"), exports);
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateAdCenterCouponSettlesPayload } from '../dto/ad-center-settle';
|
|
3
|
+
import { CreateAdCenterCouponSettlesPayload, EditAdCenterCouponSettlePayload, DeleteAdCenterSettlesPayload, DeleteAdCenterCouponSettlePayload } from '../dto/ad-center-settle';
|
|
4
4
|
export declare class AmqpAdCenterSettleService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
createAdCenterCouponSettles(payload: CreateAdCenterCouponSettlesPayload, param: AbstractParam): Promise<void>;
|
|
9
|
+
deleteAdCenterSettles(payload: DeleteAdCenterSettlesPayload, param: AbstractParam): Promise<void>;
|
|
10
|
+
editAdCenterCouponSettle(payload: EditAdCenterCouponSettlePayload, param: AbstractParam): Promise<void>;
|
|
11
|
+
deleteAdCenterCouponSettle(payload: DeleteAdCenterCouponSettlePayload, param: AbstractParam): Promise<void>;
|
|
9
12
|
}
|
|
@@ -25,6 +25,15 @@ let AmqpAdCenterSettleService = class AmqpAdCenterSettleService {
|
|
|
25
25
|
// eslint-disable-next-line max-len
|
|
26
26
|
return this.amqpManager.call('광고센터쿠폰 정산 데이터 생성', 'ad-center-settle.create.ad-center-coupon', payload, param, { isErrorThrowing: true });
|
|
27
27
|
}
|
|
28
|
+
async deleteAdCenterSettles(payload, param) {
|
|
29
|
+
return this.amqpManager.call('광고센터쿠폰 정산 데이터 삭제', 'ad-center-settle.delete', payload, param, { isErrorThrowing: true });
|
|
30
|
+
}
|
|
31
|
+
async editAdCenterCouponSettle(payload, param) {
|
|
32
|
+
return this.amqpManager.call('광고센터쿠폰 정산 데이터 수정', 'ad-center-settle.edit.ad-center-coupon', payload, param, { isErrorThrowing: true });
|
|
33
|
+
}
|
|
34
|
+
async deleteAdCenterCouponSettle(payload, param) {
|
|
35
|
+
return this.amqpManager.call('광고센터쿠폰 정산 데이터 삭제', 'ad-center-settle.delete.ad-center-coupon', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
28
37
|
};
|
|
29
38
|
exports.AmqpAdCenterSettleService = AmqpAdCenterSettleService;
|
|
30
39
|
exports.AmqpAdCenterSettleService = AmqpAdCenterSettleService = __decorate([
|
|
@@ -1,6 +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
5
|
export declare class AmqpRefundService {
|
|
5
6
|
private readonly client;
|
|
6
7
|
private readonly amqpManager;
|
|
@@ -8,4 +9,5 @@ export declare class AmqpRefundService {
|
|
|
8
9
|
sendSlackRefundsGroupByItem(payload: void, param: AbstractParam): Promise<void>;
|
|
9
10
|
resolveTosspaymentsRefundByRefundError(payload: ResolveTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
10
11
|
reProcessTosspaymentsRefundByRefundError(payload: ReProcessTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
12
|
+
getRefundsAnalyticsAggregationRefundingTop3(payload: GetRefundsAnalyticsAggregationRefundingTop3Payload, param: AbstractParam): Promise<GetRefundsAnalyticsAggregationRefundingTop3Result>;
|
|
11
13
|
}
|
|
@@ -31,6 +31,9 @@ let AmqpRefundService = class AmqpRefundService {
|
|
|
31
31
|
async reProcessTosspaymentsRefundByRefundError(payload, param) {
|
|
32
32
|
return this.amqpManager.call('토스페이먼츠 오류난 건 재환불 시도', 'refund.re-process.tosspayments-refund-by-refund-error', payload, param, { isErrorThrowing: true });
|
|
33
33
|
}
|
|
34
|
+
async getRefundsAnalyticsAggregationRefundingTop3(payload, param) {
|
|
35
|
+
return this.amqpManager.call('환불 요청이 가장 많은 Top 3 상품 조회', 'refund.get.analytics-aggregation-refunding-top3', payload, param);
|
|
36
|
+
}
|
|
34
37
|
};
|
|
35
38
|
exports.AmqpRefundService = AmqpRefundService;
|
|
36
39
|
exports.AmqpRefundService = AmqpRefundService = __decorate([
|
|
@@ -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;
|