@yolo-croket-dev/amqp-access 0.7.296 → 0.7.297
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/pay-try-log/query/get-settlement-price-calculation-for-admin.dto.d.ts +62 -0
- package/order-server/dto/pay-try-log/query/get-settlement-price-calculation-for-admin.dto.js +20 -0
- package/order-server/dto/pay-try-log/query/index.d.ts +1 -0
- package/order-server/dto/pay-try-log/query/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-refund-waiting-purchased-info-detail-for-admin.dto.d.ts +0 -7
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-refund-waiting-purchased-infos-for-admin.dto.d.ts +0 -7
- package/order-server/services/amqp.pay-try-log.service.d.ts +2 -1
- package/order-server/services/amqp.pay-try-log.service.js +3 -0
- package/package.json +3 -3
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/store-item-server/dto/store-item/command/edit-store-item.dto.d.ts +1 -1
- package/store-item-server/dto/store-item-connected-coupon/query/get-settlement-calculator-coupons-by-item-id.dto.d.ts +27 -0
- package/store-item-server/dto/store-item-connected-coupon/query/get-settlement-calculator-coupons-by-item-id.dto.js +20 -0
- package/store-item-server/dto/store-item-connected-coupon/query/index.d.ts +1 -0
- package/store-item-server/dto/store-item-connected-coupon/query/index.js +1 -0
- package/store-item-server/services/amqp.store-item-connected-coupon.service.d.ts +2 -1
- package/store-item-server/services/amqp.store-item-connected-coupon.service.js +3 -0
package/order-server/dto/pay-try-log/query/get-settlement-price-calculation-for-admin.dto.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare class GetSettlementPriceCalculationForAdminPayload {
|
|
2
|
+
storeItemId: string;
|
|
3
|
+
}
|
|
4
|
+
export type SettlementCalculatorWarningCode = 'NOT_SELLING' | 'SOLD_OUT' | 'SECRET_ITEM' | 'DELETED_ITEM' | 'NO_CONNECTED_COUPON' | 'NO_POSITIVE_SELLER_BURDEN_COUPON';
|
|
5
|
+
export interface SellerFundedCouponCalculation {
|
|
6
|
+
couponTemplateId: string;
|
|
7
|
+
couponName: string;
|
|
8
|
+
couponCode: string;
|
|
9
|
+
discountType: '할인률' | '할인금액';
|
|
10
|
+
discountRate?: number;
|
|
11
|
+
discountValue?: number;
|
|
12
|
+
maxDiscountValue?: number;
|
|
13
|
+
customerDiscountAmount: number;
|
|
14
|
+
sellerContributionType: 'RATE' | 'VALUE';
|
|
15
|
+
allRate?: number;
|
|
16
|
+
sellerRate?: number;
|
|
17
|
+
croketRate?: number;
|
|
18
|
+
sellerShareRatio?: number;
|
|
19
|
+
allPrice?: number;
|
|
20
|
+
sellerPrice?: number;
|
|
21
|
+
croketPrice?: number;
|
|
22
|
+
sellerBurdenAmount: number;
|
|
23
|
+
settlementAmountAfterCoupon: number;
|
|
24
|
+
isSelected: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface GetSettlementPriceCalculationForAdminResult {
|
|
27
|
+
calculatedAt: Date;
|
|
28
|
+
couponConnectionUpdatedAt: Date | null;
|
|
29
|
+
condition: {
|
|
30
|
+
purchaseQuantity: 1;
|
|
31
|
+
deliveryType: 'shipping';
|
|
32
|
+
proceedsVersion: '4';
|
|
33
|
+
};
|
|
34
|
+
product: {
|
|
35
|
+
storeItemId: string;
|
|
36
|
+
itemName: string;
|
|
37
|
+
storeId: string;
|
|
38
|
+
storeTitle: string;
|
|
39
|
+
isSelling: boolean;
|
|
40
|
+
isDelete: boolean;
|
|
41
|
+
isSecret: boolean;
|
|
42
|
+
remainCount: number;
|
|
43
|
+
};
|
|
44
|
+
settlement: {
|
|
45
|
+
sellerItemPrice: number;
|
|
46
|
+
buyerItemPrice: number;
|
|
47
|
+
shippingFee: number;
|
|
48
|
+
baseAmount: number;
|
|
49
|
+
appliedCommissionRate: number;
|
|
50
|
+
commissionPolicyType: string;
|
|
51
|
+
commissionDecisionReason: string;
|
|
52
|
+
serviceFee: number;
|
|
53
|
+
vatRate: number;
|
|
54
|
+
vatAmount: number;
|
|
55
|
+
totalCommissionAmount: number;
|
|
56
|
+
settlementBeforeCoupon: number;
|
|
57
|
+
};
|
|
58
|
+
selectedCoupon: SellerFundedCouponCalculation | null;
|
|
59
|
+
couponCalculations: SellerFundedCouponCalculation[];
|
|
60
|
+
finalSettlementAmount: number;
|
|
61
|
+
warnings: SettlementCalculatorWarningCode[];
|
|
62
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.GetSettlementPriceCalculationForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetSettlementPriceCalculationForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetSettlementPriceCalculationForAdminPayload = GetSettlementPriceCalculationForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetSettlementPriceCalculationForAdminPayload.prototype, "storeItemId", void 0);
|
|
@@ -3,3 +3,4 @@ export * from './store-item-payment';
|
|
|
3
3
|
export * from './get-pay-try-log-for-issued-receipt-coupon.dto';
|
|
4
4
|
export * from './get-pay-try-log-store-item-ids-for-event-banner.dto';
|
|
5
5
|
export * from './get-calculate-price-infos.dto';
|
|
6
|
+
export * from './get-settlement-price-calculation-for-admin.dto';
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./store-item-payment"), exports);
|
|
|
19
19
|
__exportStar(require("./get-pay-try-log-for-issued-receipt-coupon.dto"), exports);
|
|
20
20
|
__exportStar(require("./get-pay-try-log-store-item-ids-for-event-banner.dto"), exports);
|
|
21
21
|
__exportStar(require("./get-calculate-price-infos.dto"), exports);
|
|
22
|
+
__exportStar(require("./get-settlement-price-calculation-for-admin.dto"), exports);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PInfoPOptionInfo, RefundWaitingInfo } from '@yolo-croket-dev/entity-v2/purchased-info';
|
|
2
2
|
import { Types } from 'mongoose';
|
|
3
|
-
import { PInfoDetailStandAdCenterCouponInfo } from '@yolo-croket-dev/domain/purchased-info/interface/purchased-info-detail-for-admin.domain';
|
|
4
3
|
import { AdditionalPaymentOperationStatusEnum } from './get-refund-waiting-purchased-infos-for-admin.dto';
|
|
5
4
|
/** @author sj */
|
|
6
5
|
export declare class GetRefundWaitingPurchasedInfoDetailForAdminPayload {
|
|
@@ -85,12 +84,6 @@ export declare class RefundWaitingPurchasedInfoDetailForAdmin {
|
|
|
85
84
|
paidPrice?: number;
|
|
86
85
|
/** 결제 당시 확정된 배송비 */
|
|
87
86
|
shippingFee?: number;
|
|
88
|
-
/** 기존 관리자 결제 상세와 동일한 셀러·크로켓 쿠폰 부담액 정보 */
|
|
89
|
-
standAdCenterCouponInfo?: PInfoDetailStandAdCenterCouponInfo;
|
|
90
|
-
/** 결제에 사용된 크레딧 금액. 미사용 결제건은 0으로 반환한다. */
|
|
91
|
-
usedCredit: number;
|
|
92
|
-
/** 결제 당시 계산된 예상 정산 금액 */
|
|
93
|
-
expectedProceeds: number;
|
|
94
87
|
process: string;
|
|
95
88
|
processV2?: string;
|
|
96
89
|
refundWaitingInfo: RefundWaitingInfo;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PurchasedProcessV2Enum, RefundWaitingStatusEnum } from '@yolo-croket-dev/entity-v2/purchased-info';
|
|
2
|
-
import { PInfoDetailStandAdCenterCouponInfo } from '@yolo-croket-dev/domain/purchased-info/interface/purchased-info-detail-for-admin.domain';
|
|
3
2
|
/** @description 관리자 환불 대기 운영 화면에서 사용하는 상태 그룹 */
|
|
4
3
|
export declare enum RefundWaitingAdminStatusEnum {
|
|
5
4
|
/** 구매자의 상품 기다리기/환불 받기 응답을 기다리는 상태 */
|
|
@@ -108,12 +107,6 @@ export declare class RefundWaitingPurchasedInfoForAdmin {
|
|
|
108
107
|
latestTransferDate?: Date;
|
|
109
108
|
/** 관리자가 이관 불가를 확정한 일시. UNAVAILABLE 상태가 아니면 없다. */
|
|
110
109
|
unavailableDate?: Date;
|
|
111
|
-
/** 기존 관리자 결제 상세와 동일한 셀러·크로켓 쿠폰 부담액 정보 */
|
|
112
|
-
standAdCenterCouponInfo?: PInfoDetailStandAdCenterCouponInfo;
|
|
113
|
-
/** 결제에 사용된 크레딧 금액. 미사용 결제건은 0으로 반환한다. */
|
|
114
|
-
usedCredit: number;
|
|
115
|
-
/** 결제 당시 계산된 예상 정산 금액 */
|
|
116
|
-
expectedProceeds: number;
|
|
117
110
|
/** 추가금 요청이 있는 거래에만 서버가 계산하여 반환하는 운영 상태다. */
|
|
118
111
|
additionalPaymentOperationStatus?: AdditionalPaymentOperationStatusEnum;
|
|
119
112
|
}
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { BindIssuedReceiptCouponForPayment } from '@yolo-croket-dev/domain';
|
|
5
|
-
import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, CreateAdditionalPaymentPayTryLogInitPayload, CreateAdditionalPaymentPayTryLogInitResult, ValidateAdditionalPaymentAcceptancePayload, ValidateAdditionalPaymentAcceptanceResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult, GetPayTryLogStoreItemIdsForEventBannerPayload, UpdateGuestUserAuthorPayload, GetCalculatePriceInfosPayload, CalculatePriceInfo } from '../dto/pay-try-log';
|
|
5
|
+
import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, CreateAdditionalPaymentPayTryLogInitPayload, CreateAdditionalPaymentPayTryLogInitResult, ValidateAdditionalPaymentAcceptancePayload, ValidateAdditionalPaymentAcceptanceResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult, GetPayTryLogStoreItemIdsForEventBannerPayload, UpdateGuestUserAuthorPayload, GetCalculatePriceInfosPayload, CalculatePriceInfo, GetSettlementPriceCalculationForAdminPayload, GetSettlementPriceCalculationForAdminResult } from '../dto/pay-try-log';
|
|
6
6
|
export declare class AmqpPayTryLogService {
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly amqpManager;
|
|
@@ -33,4 +33,5 @@ export declare class AmqpPayTryLogService {
|
|
|
33
33
|
getPayTryLogStoreItemIdsByEventBanner(payload: GetPayTryLogStoreItemIdsForEventBannerPayload, param: AbstractParam): Promise<string[]>;
|
|
34
34
|
updateGuestUserAuthor(payload: UpdateGuestUserAuthorPayload, param: AbstractParam): Promise<void>;
|
|
35
35
|
getCalculatePriceInfos(payload: GetCalculatePriceInfosPayload, param: AbstractParam): Promise<CalculatePriceInfo[]>;
|
|
36
|
+
getSettlementPriceCalculationForAdmin(payload: GetSettlementPriceCalculationForAdminPayload, param: AbstractParam): Promise<GetSettlementPriceCalculationForAdminResult>;
|
|
36
37
|
}
|
|
@@ -93,6 +93,9 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
|
|
|
93
93
|
async getCalculatePriceInfos(payload, param) {
|
|
94
94
|
return this.amqpManager.call('결제 시도 로그의 계산 가격 정보 조회', 'pay-try-log.get.calculate-price-infos', payload, param, { isErrorThrowing: true });
|
|
95
95
|
}
|
|
96
|
+
async getSettlementPriceCalculationForAdmin(payload, param) {
|
|
97
|
+
return this.amqpManager.call('관리자 정산가 계산', 'pay-try-log.get.settlement-price-calculation-for-admin', payload, param, { isErrorThrowing: true });
|
|
98
|
+
}
|
|
96
99
|
};
|
|
97
100
|
exports.AmqpPayTryLogService = AmqpPayTryLogService;
|
|
98
101
|
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.7.
|
|
3
|
+
"version": "0.7.297",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@yolo-croket-dev/domain": "0.2.45",
|
|
24
24
|
"@yolo-croket-dev/dto-v2": "0.2.23",
|
|
25
25
|
"@yolo-croket-dev/entity": "0.2.105",
|
|
26
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
26
|
+
"@yolo-croket-dev/entity-v2": "0.3.35",
|
|
27
27
|
"class-transformer": "^0.5.1",
|
|
28
28
|
"class-validator": "^0.13.2",
|
|
29
29
|
"dotenv": "^16.3.1"
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
}
|
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -21,7 +21,7 @@ export declare class EditStoreItemUsedInfo {
|
|
|
21
21
|
conditionGrade?: StoreItemUsedConditionGradeEnum | null;
|
|
22
22
|
releasePriceInfo?: EditStoreItemUsedReleasePriceInfo | null;
|
|
23
23
|
}
|
|
24
|
-
declare const EditStoreItemBasePayload_base: import("@nestjs/mapped-types").MappedType<Omit<RegStoreItemPayload, "itemType" | "
|
|
24
|
+
declare const EditStoreItemBasePayload_base: import("@nestjs/mapped-types").MappedType<Omit<RegStoreItemPayload, "itemType" | "mainSku" | "usedItemInfo">>;
|
|
25
25
|
declare class EditStoreItemBasePayload extends EditStoreItemBasePayload_base {
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class GetSettlementCalculatorCouponsByItemIdPayload {
|
|
2
|
+
storeItemId: string;
|
|
3
|
+
}
|
|
4
|
+
export interface SettlementCalculatorCouponTemplate {
|
|
5
|
+
couponTemplateId: string;
|
|
6
|
+
couponName: string;
|
|
7
|
+
couponCode: string;
|
|
8
|
+
discountType: '할인률' | '할인금액';
|
|
9
|
+
discountRate?: number;
|
|
10
|
+
discountValue?: number;
|
|
11
|
+
maxDiscountValue?: number;
|
|
12
|
+
adCenterCouponType: '할인률' | '할인금액';
|
|
13
|
+
adCenterCouponRateInfo?: {
|
|
14
|
+
allRate: number;
|
|
15
|
+
sellerRate: number;
|
|
16
|
+
croketRate: number;
|
|
17
|
+
};
|
|
18
|
+
adCenterCouponPriceInfo?: {
|
|
19
|
+
allPrice: number;
|
|
20
|
+
sellerPrice: number;
|
|
21
|
+
croketPrice: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface GetSettlementCalculatorCouponsByItemIdResult {
|
|
25
|
+
connectionUpdatedAt: Date | null;
|
|
26
|
+
couponTemplates: SettlementCalculatorCouponTemplate[];
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.GetSettlementCalculatorCouponsByItemIdPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetSettlementCalculatorCouponsByItemIdPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetSettlementCalculatorCouponsByItemIdPayload = GetSettlementCalculatorCouponsByItemIdPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetSettlementCalculatorCouponsByItemIdPayload.prototype, "storeItemId", void 0);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-max-discount-amount-by-store-item-id-with-bulk.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-coupon-templates-for-useable-by-item-id.dto"), exports);
|
|
19
|
+
__exportStar(require("./get-settlement-calculator-coupons-by-item-id.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { UpdateStoreItemConnectedCouponByItemIdsPayload, UpdateRegedStoreItemConnectedCouponByCouponTemplatesIdsPayload, GetMaxDiscountAmountByStoreItemIdWithBulkPayload, GetMaxDiscountAmountByStoreItemIdWithBulkResult, GetCouponTemplatesForUseableByItemIdPayload, GetCouponTemplatesForUseableStoreItemResult } from '../dto/store-item-connected-coupon';
|
|
3
|
+
import { UpdateStoreItemConnectedCouponByItemIdsPayload, UpdateRegedStoreItemConnectedCouponByCouponTemplatesIdsPayload, GetMaxDiscountAmountByStoreItemIdWithBulkPayload, GetMaxDiscountAmountByStoreItemIdWithBulkResult, GetCouponTemplatesForUseableByItemIdPayload, GetCouponTemplatesForUseableStoreItemResult, GetSettlementCalculatorCouponsByItemIdPayload, GetSettlementCalculatorCouponsByItemIdResult } from '../dto/store-item-connected-coupon';
|
|
4
4
|
export declare enum AmqpStoreItemConnectedCouponMessageEnum {
|
|
5
5
|
'getCouponTemplatesForUseableStoreItem' = "store-item-connected-coupon.get.coupon-templates-for-useable-by-item-id"
|
|
6
6
|
}
|
|
@@ -15,4 +15,5 @@ export declare class AmqpStoreItemConnectedCouponService {
|
|
|
15
15
|
updateRegedStoreItemConnectedCouponByCouponTemplatesIds(payload: UpdateRegedStoreItemConnectedCouponByCouponTemplatesIdsPayload, param: AbstractParam): Promise<void>;
|
|
16
16
|
getMaxDiscountAmountByStoreItemIdWithBulk(payload: GetMaxDiscountAmountByStoreItemIdWithBulkPayload, param: AbstractParam): Promise<GetMaxDiscountAmountByStoreItemIdWithBulkResult>;
|
|
17
17
|
getCouponTemplatesForUseableStoreItem(payload: GetCouponTemplatesForUseableByItemIdPayload, param: AbstractParam): Promise<GetCouponTemplatesForUseableStoreItemResult>;
|
|
18
|
+
getSettlementCalculatorCouponsByItemId(payload: GetSettlementCalculatorCouponsByItemIdPayload, param: AbstractParam): Promise<GetSettlementCalculatorCouponsByItemIdResult>;
|
|
18
19
|
}
|
|
@@ -44,6 +44,9 @@ let AmqpStoreItemConnectedCouponService = class AmqpStoreItemConnectedCouponServ
|
|
|
44
44
|
async getCouponTemplatesForUseableStoreItem(payload, param) {
|
|
45
45
|
return this.amqpManager.call('상품 아이디 기준 발급 가능한 쿠폰 조회', AmqpStoreItemConnectedCouponMessageEnum.getCouponTemplatesForUseableStoreItem, payload, param);
|
|
46
46
|
}
|
|
47
|
+
async getSettlementCalculatorCouponsByItemId(payload, param) {
|
|
48
|
+
return this.amqpManager.call('정산가 계산기용 연결 쿠폰 조회', 'store-item-connected-coupon.get.settlement-calculator-coupons-by-item-id', payload, param, { isErrorThrowing: true });
|
|
49
|
+
}
|
|
47
50
|
};
|
|
48
51
|
exports.AmqpStoreItemConnectedCouponService = AmqpStoreItemConnectedCouponService;
|
|
49
52
|
exports.AmqpStoreItemConnectedCouponService = AmqpStoreItemConnectedCouponService = __decorate([
|