@yolo-croket-dev/amqp-access 0.7.47-jun.45 → 0.7.47-jun.46

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.
@@ -4,3 +4,4 @@ export * from './cancel-reservation-by-admin.dto';
4
4
  export * from './cancel-reservation-by-admin-bulk.dto';
5
5
  export * from './change-reservation-card-quota.dto';
6
6
  export * from './change-reservation-billing-card.dto';
7
+ export * from './retry-reservation-billing-payment.dto';
@@ -20,3 +20,4 @@ __exportStar(require("./cancel-reservation-by-admin.dto"), exports);
20
20
  __exportStar(require("./cancel-reservation-by-admin-bulk.dto"), exports);
21
21
  __exportStar(require("./change-reservation-card-quota.dto"), exports);
22
22
  __exportStar(require("./change-reservation-billing-card.dto"), exports);
23
+ __exportStar(require("./retry-reservation-billing-payment.dto"), exports);
@@ -0,0 +1,10 @@
1
+ /** @description 예약 상품 결제 재시도 요청 Payload */
2
+ export declare class RetryReservationBillingPaymentPayload {
3
+ pInfoId: string;
4
+ }
5
+ /** @description 예약 상품 결제 재시도 결과 */
6
+ export interface RetryReservationBillingPaymentResult {
7
+ isSuccess: boolean;
8
+ failType?: string;
9
+ failReason?: string;
10
+ }
@@ -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.RetryReservationBillingPaymentPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** @description 예약 상품 결제 재시도 요청 Payload */
15
+ class RetryReservationBillingPaymentPayload {
16
+ }
17
+ exports.RetryReservationBillingPaymentPayload = RetryReservationBillingPaymentPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], RetryReservationBillingPaymentPayload.prototype, "pInfoId", void 0);
@@ -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, ChangeReservationCardQuotaPayload, ChangeReservationBillingCardPayload } from '../../dto/purchased-info.modules/purchased-info-reservation';
3
+ import { ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult, ChangeReservationCardQuotaPayload, ChangeReservationBillingCardPayload, RetryReservationBillingPaymentPayload, RetryReservationBillingPaymentResult } from '../../dto/purchased-info.modules/purchased-info-reservation';
4
4
  export declare class AmqpPurchasedInfoReservationService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -17,4 +17,6 @@ export declare class AmqpPurchasedInfoReservationService {
17
17
  changeReservationBillingCard(payload: ChangeReservationBillingCardPayload, param: AbstractParam): Promise<void>;
18
18
  /** 예약 상품 할부 변경 */
19
19
  changeReservationCardQuota(payload: ChangeReservationCardQuotaPayload, param: AbstractParam): Promise<void>;
20
+ /** 예약 상품 결제 재시도 */
21
+ retryReservationBillingPayment(payload: RetryReservationBillingPaymentPayload, param: AbstractParam): Promise<RetryReservationBillingPaymentResult>;
20
22
  }
@@ -50,6 +50,10 @@ let AmqpPurchasedInfoReservationService = class AmqpPurchasedInfoReservationServ
50
50
  async changeReservationCardQuota(payload, param) {
51
51
  return this.amqpManager.call('예약 상품 할부 변경', 'purchased-info-reservation.change.card-quota', payload, param, { isErrorThrowing: true });
52
52
  }
53
+ /** 예약 상품 결제 재시도 */
54
+ async retryReservationBillingPayment(payload, param) {
55
+ return this.amqpManager.call('예약 상품 결제 재시도', 'purchased-info-reservation.retry.billing-payment', payload, param, { isErrorThrowing: true });
56
+ }
53
57
  };
54
58
  exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService;
55
59
  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.45",
3
+ "version": "0.7.47-jun.46",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",