@yolo-croket-dev/amqp-access 0.4.90 → 0.4.91-jun.1
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/edit-p-info-used-coupon.dto.d.ts +42 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-used-coupon.dto.js +97 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +1 -0
- package/package.json +2 -2
- 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 +1 -0
- package/payment-service/dto/ad-center-settle/command/index.js +1 -0
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
isRemoveCoupon: boolean;
|
|
30
|
+
/** 사용한 주문서 쿠폰 삭제 여부 */
|
|
31
|
+
isRemoveReceiptCoupon: boolean;
|
|
32
|
+
/** 변경할 일반 쿠폰 금액 */
|
|
33
|
+
itemCouponPrice?: number;
|
|
34
|
+
/** 변경할 주문서 쿠폰 금액 */
|
|
35
|
+
receiptCouponPrice?: number;
|
|
36
|
+
/** 광고센터 일 경우의 쿠폰 할인 비율 */
|
|
37
|
+
clientAdCenterCouponRateInfo?: EditPInfoUsedCouponRateInfo;
|
|
38
|
+
/** 광고센터 일 경우의 쿠폰 할인 금액 */
|
|
39
|
+
clientAdCenterCouponPriceInfo?: EditPInfoUsedCouponPriceInfo;
|
|
40
|
+
/** 광고센터 일 경우의 예상 정산 금액 */
|
|
41
|
+
clientAdCenterCouponExpectedSettlePrice?: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.IsBoolean)({ message: '일반 쿠폰 삭제 여부는 boolean 값이어야 합니다' }),
|
|
63
|
+
__metadata("design:type", Boolean)
|
|
64
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "isRemoveCoupon", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsBoolean)({ message: '주문서 쿠폰 삭제 여부는 boolean 값이어야 합니다' }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "isRemoveReceiptCoupon", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsNumber)({}, { message: '일반 쿠폰 금액은 숫자여야 합니다' }),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "itemCouponPrice", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsNumber)({}, { message: '주문서 쿠폰 금액은 숫자여야 합니다' }),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "receiptCouponPrice", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsObject)({ message: '광고센터 쿠폰 할인 비율 정보는 객체여야 합니다' }),
|
|
81
|
+
(0, class_validator_1.ValidateNested)(),
|
|
82
|
+
(0, class_transformer_1.Type)(() => EditPInfoUsedCouponRateInfo),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
__metadata("design:type", EditPInfoUsedCouponRateInfo)
|
|
85
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponRateInfo", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsObject)({ message: '광고센터 쿠폰 할인 금액 정보는 객체여야 합니다' }),
|
|
88
|
+
(0, class_validator_1.ValidateNested)(),
|
|
89
|
+
(0, class_transformer_1.Type)(() => EditPInfoUsedCouponPriceInfo),
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
__metadata("design:type", EditPInfoUsedCouponPriceInfo)
|
|
92
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponPriceInfo", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsNumber)({}, { message: '예상 정산 금액은 숫자여야 합니다' }),
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponExpectedSettlePrice", void 0);
|
|
@@ -20,3 +20,4 @@ __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);
|
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.91-jun.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@yolo-croket-dev/domain": "0.1.4",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.1.7",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.2.1",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.1.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.1.44",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -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, "adCenterSettleId", 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,4 @@ 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);
|