@yolo-croket-dev/amqp-access 0.7.47-jun.44 → 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.
@@ -0,0 +1,8 @@
1
+ /** @description 예약 결제 카드 변경 요청 Payload */
2
+ export declare class ChangeReservationBillingCardPayload {
3
+ pInfoId: string;
4
+ txTid: string;
5
+ authToken: string;
6
+ ediDate: string;
7
+ isSaveCard: boolean;
8
+ }
@@ -0,0 +1,37 @@
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.ChangeReservationBillingCardPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** @description 예약 결제 카드 변경 요청 Payload */
15
+ class ChangeReservationBillingCardPayload {
16
+ }
17
+ exports.ChangeReservationBillingCardPayload = ChangeReservationBillingCardPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], ChangeReservationBillingCardPayload.prototype, "pInfoId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], ChangeReservationBillingCardPayload.prototype, "txTid", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], ChangeReservationBillingCardPayload.prototype, "authToken", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], ChangeReservationBillingCardPayload.prototype, "ediDate", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsBoolean)(),
36
+ __metadata("design:type", Boolean)
37
+ ], ChangeReservationBillingCardPayload.prototype, "isSaveCard", void 0);
@@ -3,3 +3,5 @@ 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
5
  export * from './change-reservation-card-quota.dto';
6
+ export * from './change-reservation-billing-card.dto';
7
+ export * from './retry-reservation-billing-payment.dto';
@@ -19,3 +19,5 @@ __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
21
  __exportStar(require("./change-reservation-card-quota.dto"), exports);
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 } 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;
@@ -13,6 +13,10 @@ 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
+ changeReservationBillingCard(payload: ChangeReservationBillingCardPayload, param: AbstractParam): Promise<void>;
16
18
  /** 예약 상품 할부 변경 */
17
19
  changeReservationCardQuota(payload: ChangeReservationCardQuotaPayload, param: AbstractParam): Promise<void>;
20
+ /** 예약 상품 결제 재시도 */
21
+ retryReservationBillingPayment(payload: RetryReservationBillingPaymentPayload, param: AbstractParam): Promise<RetryReservationBillingPaymentResult>;
18
22
  }
@@ -42,10 +42,18 @@ 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 changeReservationBillingCard(payload, param) {
47
+ return this.amqpManager.call('예약 결제 카드 변경', 'purchased-info-reservation.change.billing-card', payload, param, { isErrorThrowing: true });
48
+ }
45
49
  /** 예약 상품 할부 변경 */
46
50
  async changeReservationCardQuota(payload, param) {
47
51
  return this.amqpManager.call('예약 상품 할부 변경', 'purchased-info-reservation.change.card-quota', payload, param, { isErrorThrowing: true });
48
52
  }
53
+ /** 예약 상품 결제 재시도 */
54
+ async retryReservationBillingPayment(payload, param) {
55
+ return this.amqpManager.call('예약 상품 결제 재시도', 'purchased-info-reservation.retry.billing-payment', payload, param, { isErrorThrowing: true });
56
+ }
49
57
  };
50
58
  exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService;
51
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.44",
3
+ "version": "0.7.47-jun.46",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",