@yolo-croket-dev/amqp-access 0.6.12-hj-1 → 0.6.12

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.
@@ -2,7 +2,9 @@ import { BannerPlatformInfo } from '@yolo-croket-dev/entity-v2/store-item-banner
2
2
  import { EventBannerEntity, EventBannerType } from '@yolo-croket-dev/entity-v2/event-banner';
3
3
  export declare class GetEventBannerForBuyerPayload {
4
4
  type: EventBannerType;
5
- /** @description 상품 ID - type이 STORE_ITEM_INFO인 경우 필수 */
5
+ /** @description 결제 로그 ID - type이 ORDER_COMPLETE 경우 필요 */
6
+ payTryLogId?: string;
7
+ /** @description 상품 ID - type이 STORE_ITEM_INFO인 경우 필요 */
6
8
  storeItemId?: string;
7
9
  }
8
10
  export declare class GetEventBannerForBuyerResult implements Pick<EventBannerEntity, '_id' | 'type' | 'web' | 'app' | 'description'> {
@@ -19,6 +19,11 @@ __decorate([
19
19
  (0, class_validator_1.IsEnum)(event_banner_1.EventBannerType),
20
20
  __metadata("design:type", String)
21
21
  ], GetEventBannerForBuyerPayload.prototype, "type", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsMongoId)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", String)
26
+ ], GetEventBannerForBuyerPayload.prototype, "payTryLogId", void 0);
22
27
  __decorate([
23
28
  (0, class_validator_1.IsMongoId)(),
24
29
  (0, class_validator_1.IsOptional)(),
@@ -0,0 +1,3 @@
1
+ export declare class GetPayTryLogStoreItemIdsForEventBannerPayload {
2
+ payTryLogId?: string;
3
+ }
@@ -0,0 +1,21 @@
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.GetPayTryLogStoreItemIdsForEventBannerPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetPayTryLogStoreItemIdsForEventBannerPayload {
15
+ }
16
+ exports.GetPayTryLogStoreItemIdsForEventBannerPayload = GetPayTryLogStoreItemIdsForEventBannerPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ __metadata("design:type", String)
21
+ ], GetPayTryLogStoreItemIdsForEventBannerPayload.prototype, "payTryLogId", void 0);
@@ -1,3 +1,4 @@
1
1
  export * from './get-direct-tosspayments-json.dto';
2
2
  export * from './store-item-payment';
3
3
  export * from './get-pay-try-log-for-issued-receipt-coupon.dto';
4
+ export * from './get-pay-try-log-store-item-ids-for-event-banner.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-direct-tosspayments-json.dto"), exports);
18
18
  __exportStar(require("./store-item-payment"), exports);
19
19
  __exportStar(require("./get-pay-try-log-for-issued-receipt-coupon.dto"), exports);
20
+ __exportStar(require("./get-pay-try-log-store-item-ids-for-event-banner.dto"), exports);
@@ -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, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult } from '../dto/pay-try-log';
5
+ import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult, GetPayTryLogStoreItemIdsForEventBannerPayload } from '../dto/pay-try-log';
6
6
  export declare class AmqpPayTryLogService {
7
7
  private readonly client;
8
8
  private readonly amqpManager;
@@ -23,4 +23,5 @@ export declare class AmqpPayTryLogService {
23
23
  getMaxDiscountCouponsForPayments(payload: GetMaxDiscountCouponsForPaymentsPayload, param: AbstractParam): Promise<GetMaxDiscountCouponsForPaymentsResult>;
24
24
  checkAppliedIssuedCoupon(payload: CheckAppliedIssuedCouponPayload, param: AbstractParam): Promise<void>;
25
25
  updateMaxDiscountCoupons(payload: UpdateMaxDiscountCouponsPayload, param: AbstractParam): Promise<UpdateMaxDiscountCouponsResult>;
26
+ getPayTryLogStoreItemIdsByEventBanner(payload: GetPayTryLogStoreItemIdsForEventBannerPayload, param: AbstractParam): Promise<string[]>;
26
27
  }
@@ -73,6 +73,9 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
73
73
  async updateMaxDiscountCoupons(payload, param) {
74
74
  return this.amqpManager.call('결제 시도 로그에 최대 할인 쿠폰 업데이트', 'pay-try-log.update.applied-max-discount-coupons', payload, param, { isErrorThrowing: true });
75
75
  }
76
+ async getPayTryLogStoreItemIdsByEventBanner(payload, param) {
77
+ return this.amqpManager.call('결제 시도 로그의 스토어 상품 아이디 리스트 조회 (이벤트 배너용)', 'pay-try-log.get.store-item-ids-for-event-banner', payload, param, { isErrorThrowing: true });
78
+ }
76
79
  };
77
80
  exports.AmqpPayTryLogService = AmqpPayTryLogService;
78
81
  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.6.12-hj-1",
3
+ "version": "0.6.12",
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.2.12",
23
23
  "@yolo-croket-dev/dto-v2": "^0.1.20",
24
24
  "@yolo-croket-dev/entity": "^0.2.44",
25
- "@yolo-croket-dev/entity-v2": "0.2.58-hj-2",
25
+ "@yolo-croket-dev/entity-v2": "0.2.61",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"