@yolo-croket-dev/amqp-access 0.4.41 → 0.4.42-hj-2
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
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { SatisfiedReceiptCouponInfoForCart, UnSatisfiedReceiptCouponInfoForCart } from '@yolo-croket-dev/entity-v2/receipt-coupon-template';
|
|
2
|
+
export declare class CartReceiptCouponProcessorPayload {
|
|
3
|
+
/** @description 장바구니 외에 계산될 상품 아이디 */
|
|
4
|
+
storeItemId?: string;
|
|
5
|
+
/** @description storeItemId 존재 할 시 필수값 */
|
|
6
|
+
pNums?: number;
|
|
7
|
+
/** @description storeItemId 존재 할 시 필수값 */
|
|
8
|
+
itemPriceForBuyer?: number;
|
|
9
|
+
}
|
|
2
10
|
export interface CartReceiptCouponProcessorResult {
|
|
3
11
|
satisfiedCartedPrice: number;
|
|
4
12
|
unSatisfiedReceiptCouponInfoForCart?: UnSatisfiedReceiptCouponInfoForCart;
|
|
@@ -1,2 +1,31 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CartReceiptCouponProcessorPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CartReceiptCouponProcessorPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.CartReceiptCouponProcessorPayload = CartReceiptCouponProcessorPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CartReceiptCouponProcessorPayload.prototype, "storeItemId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], CartReceiptCouponProcessorPayload.prototype, "pNums", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CartReceiptCouponProcessorPayload.prototype, "itemPriceForBuyer", void 0);
|