@yolo-croket-dev/amqp-access 0.7.47-jun.43 → 0.7.47-jun.44

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.
@@ -0,0 +1,6 @@
1
+ import { CardQuotaEnum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
2
+ /** @description 예약 상품 할부 변경 요청 Payload */
3
+ export declare class ChangeReservationCardQuotaPayload {
4
+ pInfoId: string;
5
+ cardQuota: CardQuotaEnum;
6
+ }
@@ -0,0 +1,26 @@
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.ChangeReservationCardQuotaPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const purchased_info_entity_1 = require("@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity");
15
+ /** @description 예약 상품 할부 변경 요청 Payload */
16
+ class ChangeReservationCardQuotaPayload {
17
+ }
18
+ exports.ChangeReservationCardQuotaPayload = ChangeReservationCardQuotaPayload;
19
+ __decorate([
20
+ (0, class_validator_1.IsMongoId)(),
21
+ __metadata("design:type", String)
22
+ ], ChangeReservationCardQuotaPayload.prototype, "pInfoId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsEnum)(purchased_info_entity_1.CardQuotaEnum),
25
+ __metadata("design:type", String)
26
+ ], ChangeReservationCardQuotaPayload.prototype, "cardQuota", void 0);
@@ -2,3 +2,4 @@ export * from './approve-reservation-billing-payment-bulk.dto';
2
2
  export * from './cancel-reservation-by-buyer.dto';
3
3
  export * from './cancel-reservation-by-admin.dto';
4
4
  export * from './cancel-reservation-by-admin-bulk.dto';
5
+ export * from './change-reservation-card-quota.dto';
@@ -18,3 +18,4 @@ __exportStar(require("./approve-reservation-billing-payment-bulk.dto"), exports)
18
18
  __exportStar(require("./cancel-reservation-by-buyer.dto"), exports);
19
19
  __exportStar(require("./cancel-reservation-by-admin.dto"), exports);
20
20
  __exportStar(require("./cancel-reservation-by-admin-bulk.dto"), exports);
21
+ __exportStar(require("./change-reservation-card-quota.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult } from '../../dto/purchased-info.modules/purchased-info-reservation';
3
+ import { ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult, ChangeReservationCardQuotaPayload } from '../../dto/purchased-info.modules/purchased-info-reservation';
4
4
  export declare class AmqpPurchasedInfoReservationService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -13,4 +13,6 @@ export declare class AmqpPurchasedInfoReservationService {
13
13
  cancelReservationByAdmin(payload: CancelReservationByAdminPayload, param: AbstractParam): Promise<CancelReservationResult>;
14
14
  /** 관리자의 일괄 예약 취소 */
15
15
  cancelReservationByAdminBulk(payload: CancelReservationByAdminBulkPayload, param: AbstractParam): Promise<CancelReservationByAdminBulkResult>;
16
+ /** 예약 상품 할부 변경 */
17
+ changeReservationCardQuota(payload: ChangeReservationCardQuotaPayload, param: AbstractParam): Promise<void>;
16
18
  }
@@ -42,6 +42,10 @@ let AmqpPurchasedInfoReservationService = class AmqpPurchasedInfoReservationServ
42
42
  async cancelReservationByAdminBulk(payload, param) {
43
43
  return this.amqpManager.call('관리자의 일괄 예약 취소', 'purchased-info-reservation.cancel.reservation.by-admin-bulk', payload, param, { isErrorThrowing: true });
44
44
  }
45
+ /** 예약 상품 할부 변경 */
46
+ async changeReservationCardQuota(payload, param) {
47
+ return this.amqpManager.call('예약 상품 할부 변경', 'purchased-info-reservation.change.card-quota', payload, param, { isErrorThrowing: true });
48
+ }
45
49
  };
46
50
  exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService;
47
51
  exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.47-jun.43",
3
+ "version": "0.7.47-jun.44",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",