@yolo-croket-dev/amqp-access 0.3.20-receipt-coupon-5 → 0.3.20
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/coupon-server/dto/issued-receipt-coupon/query/index.d.ts +0 -1
- package/coupon-server/dto/issued-receipt-coupon/query/index.js +0 -1
- package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.d.ts +3 -1
- package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.js +9 -0
- package/coupon-server/dto/receipt-coupon-template/command/update-receipt-coupon-template.dto.d.ts +3 -1
- package/coupon-server/dto/receipt-coupon-template/command/update-receipt-coupon-template.dto.js +9 -0
- package/coupon-server/services/amqp.issued-receipt-coupon.service.d.ts +1 -2
- package/coupon-server/services/amqp.issued-receipt-coupon.service.js +0 -3
- package/order-server/dto/pay-try-log/query/store-item-payment/coupon/index.d.ts +0 -1
- package/order-server/dto/pay-try-log/query/store-item-payment/coupon/index.js +0 -1
- package/order-server/services/amqp.pay-try-log.service.d.ts +1 -2
- package/order-server/services/amqp.pay-try-log.service.js +0 -3
- package/package.json +3 -3
- package/coupon-server/dto/issued-receipt-coupon/query/get-issued-receipt-coupon-nums-for-buyer.dto.d.ts +0 -6
- package/coupon-server/dto/issued-receipt-coupon/query/get-issued-receipt-coupon-nums-for-buyer.dto.js +0 -6
- package/order-server/dto/pay-try-log/query/store-item-payment/coupon/get-max-discount-coupons-for-payments.dto.d.ts +0 -10
- package/order-server/dto/pay-try-log/query/store-item-payment/coupon/get-max-discount-coupons-for-payments.dto.js +0 -23
|
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-issued-receipt-coupons-for-buyer.dto"), exports);
|
|
18
18
|
__exportStar(require("./check-can-pay-able-and-get-discount-info.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-issued-receipt-coupons-for-payments.dto"), exports);
|
|
20
|
-
__exportStar(require("./get-issued-receipt-coupon-nums-for-buyer.dto"), exports);
|
package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.d.ts
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose" />
|
|
25
25
|
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/inferschematype" />
|
|
26
26
|
import { Types } from 'mongoose';
|
|
27
|
-
import { ReceiptCouponTemplateDiscountTypeEnum } from '@yolo-croket-dev/entity-v2/receipt-coupon-template/receipt-coupon-template.entity';
|
|
27
|
+
import { ReceiptCouponTemplateConditionAbleDeviceTypeEnum, ReceiptCouponTemplateDiscountTypeEnum } from '@yolo-croket-dev/entity-v2/receipt-coupon-template/receipt-coupon-template.entity';
|
|
28
28
|
export declare class CreateReceiptCouponTemplatePayload {
|
|
29
29
|
isCanUserIssue: boolean;
|
|
30
30
|
discountType: ReceiptCouponTemplateDiscountTypeEnum;
|
|
@@ -44,4 +44,6 @@ export declare class CreateReceiptCouponTemplatePayload {
|
|
|
44
44
|
isLimitStore: boolean;
|
|
45
45
|
ableStoreList: Types.ObjectId[];
|
|
46
46
|
isCartView: boolean;
|
|
47
|
+
memo?: string;
|
|
48
|
+
ableDeviceType: ReceiptCouponTemplateConditionAbleDeviceTypeEnum;
|
|
47
49
|
}
|
package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.js
CHANGED
|
@@ -91,3 +91,12 @@ __decorate([
|
|
|
91
91
|
(0, class_validator_1.IsBoolean)(),
|
|
92
92
|
__metadata("design:type", Boolean)
|
|
93
93
|
], CreateReceiptCouponTemplatePayload.prototype, "isCartView", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsString)(),
|
|
96
|
+
(0, class_validator_1.IsOptional)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], CreateReceiptCouponTemplatePayload.prototype, "memo", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsEnum)(receipt_coupon_template_entity_1.ReceiptCouponTemplateConditionAbleDeviceTypeEnum),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], CreateReceiptCouponTemplatePayload.prototype, "ableDeviceType", void 0);
|
package/coupon-server/dto/receipt-coupon-template/command/update-receipt-coupon-template.dto.d.ts
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose" />
|
|
25
25
|
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/inferschematype" />
|
|
26
26
|
import { Types } from 'mongoose';
|
|
27
|
-
import { ReceiptCouponTemplateDiscountTypeEnum } from '@yolo-croket-dev/entity-v2/receipt-coupon-template/receipt-coupon-template.entity';
|
|
27
|
+
import { ReceiptCouponTemplateConditionAbleDeviceTypeEnum, ReceiptCouponTemplateDiscountTypeEnum } from '@yolo-croket-dev/entity-v2/receipt-coupon-template/receipt-coupon-template.entity';
|
|
28
28
|
export declare class UpdateReceiptCouponTemplatePayload {
|
|
29
29
|
isCanUserIssue: boolean;
|
|
30
30
|
discountType: ReceiptCouponTemplateDiscountTypeEnum;
|
|
@@ -45,4 +45,6 @@ export declare class UpdateReceiptCouponTemplatePayload {
|
|
|
45
45
|
ableStoreList: Types.ObjectId[];
|
|
46
46
|
isCartView: boolean;
|
|
47
47
|
receiptCouponTemplateId: Types.ObjectId | string;
|
|
48
|
+
memo?: string;
|
|
49
|
+
ableDeviceType: ReceiptCouponTemplateConditionAbleDeviceTypeEnum;
|
|
48
50
|
}
|
package/coupon-server/dto/receipt-coupon-template/command/update-receipt-coupon-template.dto.js
CHANGED
|
@@ -95,3 +95,12 @@ __decorate([
|
|
|
95
95
|
(0, class_validator_1.IsMongoId)(),
|
|
96
96
|
__metadata("design:type", Object)
|
|
97
97
|
], UpdateReceiptCouponTemplatePayload.prototype, "receiptCouponTemplateId", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsString)(),
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], UpdateReceiptCouponTemplatePayload.prototype, "memo", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_validator_1.IsEnum)(receipt_coupon_template_entity_1.ReceiptCouponTemplateConditionAbleDeviceTypeEnum),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], UpdateReceiptCouponTemplatePayload.prototype, "ableDeviceType", void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { BindIssuedReceiptCouponForPayment, IssuedReceiptCouponForBuyer, IssuedReceiptCouponForCart } from '@yolo-croket-dev/domain';
|
|
4
|
-
import { CreateIssuedReceiptCouponPayload, GetIssuedReceiptCouponsForBuyerPayload, RecoverIssuedReceiptCouponPayload, CheckCanPayAbleAndGetDiscountInfoPayload, CheckCanPayAbleAndGetDiscountInfoResult, GetIssuedReceiptCouponsForPaymentsPayload
|
|
4
|
+
import { CreateIssuedReceiptCouponPayload, GetIssuedReceiptCouponsForBuyerPayload, RecoverIssuedReceiptCouponPayload, CheckCanPayAbleAndGetDiscountInfoPayload, CheckCanPayAbleAndGetDiscountInfoResult, GetIssuedReceiptCouponsForPaymentsPayload } from '../dto';
|
|
5
5
|
export declare class AmqpIssuedReceiptCouponService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -12,5 +12,4 @@ export declare class AmqpIssuedReceiptCouponService {
|
|
|
12
12
|
getIssuedReceiptCouponsForBuyer(payload: GetIssuedReceiptCouponsForBuyerPayload, param: AbstractParam): Promise<IssuedReceiptCouponForBuyer[]>;
|
|
13
13
|
checkCanPayAbleAndGetDiscountInfo(payload: CheckCanPayAbleAndGetDiscountInfoPayload, param: AbstractParam): Promise<CheckCanPayAbleAndGetDiscountInfoResult>;
|
|
14
14
|
getIssuedReceiptCouponsForPayments(payload: GetIssuedReceiptCouponsForPaymentsPayload, param: AbstractParam): Promise<BindIssuedReceiptCouponForPayment[]>;
|
|
15
|
-
getIssuedReceiptCouponNumsForBuyer(payload: void, param: AbstractParam): Promise<GetIssuedReceiptCouponNumsForBuyerResult>;
|
|
16
15
|
}
|
|
@@ -39,9 +39,6 @@ let AmqpIssuedReceiptCouponService = class AmqpIssuedReceiptCouponService {
|
|
|
39
39
|
async getIssuedReceiptCouponsForPayments(payload, param) {
|
|
40
40
|
return this.amqpManager.call('결제 로그에 발급된 주문서 쿠폰 사용 가능여부 체크', 'issued-receipt-coupon.get.list-for-payments', payload, param, { isErrorThrowing: true });
|
|
41
41
|
}
|
|
42
|
-
async getIssuedReceiptCouponNumsForBuyer(payload, param) {
|
|
43
|
-
return this.amqpManager.call('발급된 주문서 쿠폰 수 조회 - 구매자용', 'issued-receipt-coupon.get.nums-for-buyer', payload, param, { isErrorThrowing: true });
|
|
44
|
-
}
|
|
45
42
|
};
|
|
46
43
|
exports.AmqpIssuedReceiptCouponService = AmqpIssuedReceiptCouponService;
|
|
47
44
|
exports.AmqpIssuedReceiptCouponService = AmqpIssuedReceiptCouponService = __decorate([
|
|
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-applied-issued-coupon.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-issued-coupons-for-payment.dto"), exports);
|
|
19
|
-
__exportStar(require("./get-max-discount-coupons-for-payments.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 { GetPayTryLogsForEsPayload, GetPayTryLogsForEsResult, GetPayTryLogsForEsByIdsPayload, GetPayTryLogsForEsByIdsResult } from '@yolo-croket-dev/dto-v2/order-server/pay-try-log';
|
|
4
|
-
import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetPayTryLogForIssuedReceiptCouponPayload, GetPayTryLogForIssuedReceiptCouponResult
|
|
4
|
+
import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetPayTryLogForIssuedReceiptCouponPayload, GetPayTryLogForIssuedReceiptCouponResult } from '../dto/pay-try-log';
|
|
5
5
|
export declare class AmqpPayTryLogService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -19,5 +19,4 @@ export declare class AmqpPayTryLogService {
|
|
|
19
19
|
getAppliedIssuedCoupon(payload: GetAppliedIssuedCouponPayload, param: AbstractParam): Promise<GetAppliedIssuedCouponResult>;
|
|
20
20
|
getIssuedCouponsForPayment(payload: GetIssuedCouponsForPaymentPayload, param: AbstractParam): Promise<GetIssuedCouponsForPaymentResult>;
|
|
21
21
|
getPayTryLogForIssuedReceiptCoupon(payload: GetPayTryLogForIssuedReceiptCouponPayload, param: AbstractParam): Promise<GetPayTryLogForIssuedReceiptCouponResult>;
|
|
22
|
-
getMaxDiscountCouponsForPayments(payload: GetMaxDiscountCouponsForPaymentsPayload, param: AbstractParam): Promise<GetMaxDiscountCouponsForPaymentsResult>;
|
|
23
22
|
}
|
|
@@ -64,9 +64,6 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
|
|
|
64
64
|
async getPayTryLogForIssuedReceiptCoupon(payload, param) {
|
|
65
65
|
return this.amqpManager.call('결제 시도 로그 정보 조회', 'pay-try-log.get.for-issued-receipt-coupon', payload, param, { isErrorThrowing: true });
|
|
66
66
|
}
|
|
67
|
-
async getMaxDiscountCouponsForPayments(payload, param) {
|
|
68
|
-
return this.amqpManager.call('결제페이지 최대 할인 금액 쿠폰 조회', 'pay-try-log.get.max-discount-coupons-for-payments', payload, param, { isErrorThrowing: true });
|
|
69
|
-
}
|
|
70
67
|
};
|
|
71
68
|
exports.AmqpPayTryLogService = AmqpPayTryLogService;
|
|
72
69
|
exports.AmqpPayTryLogService = AmqpPayTryLogService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.3.20
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nestjs/common": "^10.3.10",
|
|
21
21
|
"@yolo-croket-dev/core": "^1.7.8",
|
|
22
|
-
"@yolo-croket-dev/domain": "0.0.
|
|
22
|
+
"@yolo-croket-dev/domain": "0.0.36",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.0.162",
|
|
24
24
|
"@yolo-croket-dev/entity": "0.1.150",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.0.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "0.0.135",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetIssuedReceiptCouponNumsForBuyerResult = void 0;
|
|
4
|
-
class GetIssuedReceiptCouponNumsForBuyerResult {
|
|
5
|
-
}
|
|
6
|
-
exports.GetIssuedReceiptCouponNumsForBuyerResult = GetIssuedReceiptCouponNumsForBuyerResult;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IssuedReceiptCouponForBuyer, LowestIssuedCoupon } from '@yolo-croket-dev/domain';
|
|
2
|
-
export declare class GetMaxDiscountCouponsForPaymentsPayload {
|
|
3
|
-
payTryLogId: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class GetMaxDiscountCouponsForPaymentsResult {
|
|
6
|
-
/** @description 최저가 주문서 쿠폰 */
|
|
7
|
-
lowestIssuedReceiptCoupon?: IssuedReceiptCouponForBuyer;
|
|
8
|
-
/** @description 최저가 상품 쿠폰 리스트 */
|
|
9
|
-
lowestIssuedCoupons?: LowestIssuedCoupon[];
|
|
10
|
-
}
|
|
@@ -1,23 +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.GetMaxDiscountCouponsForPaymentsResult = exports.GetMaxDiscountCouponsForPaymentsPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GetMaxDiscountCouponsForPaymentsPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.GetMaxDiscountCouponsForPaymentsPayload = GetMaxDiscountCouponsForPaymentsPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsMongoId)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], GetMaxDiscountCouponsForPaymentsPayload.prototype, "payTryLogId", void 0);
|
|
21
|
-
class GetMaxDiscountCouponsForPaymentsResult {
|
|
22
|
-
}
|
|
23
|
-
exports.GetMaxDiscountCouponsForPaymentsResult = GetMaxDiscountCouponsForPaymentsResult;
|