@yolo-croket-dev/amqp-access 0.7.54-jun.24 → 0.7.54-jun.4

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.
@@ -1,3 +1,2 @@
1
1
  export * from './issue-billing-key.dto';
2
2
  export * from './register-billing-card.dto';
3
- export * from './cancel-billing-payment.dto';
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./issue-billing-key.dto"), exports);
18
18
  __exportStar(require("./register-billing-card.dto"), exports);
19
- __exportStar(require("./cancel-billing-payment.dto"), exports);
@@ -15,5 +15,5 @@ export declare class RegisterBillingCardPayload {
15
15
  */
16
16
  export declare class RegisterBillingCardResult {
17
17
  /** 등록된 UserCardBilling ID */
18
- userCardBillingId: string;
18
+ userCardBilling: string;
19
19
  }
@@ -1,2 +1 @@
1
1
  export * from './get-nicepay-billing-auth-form.dto';
2
- export * from './get-card-interest-free.dto';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-nicepay-billing-auth-form.dto"), exports);
18
- __exportStar(require("./get-card-interest-free.dto"), exports);
@@ -1,4 +1,4 @@
1
- import { PurchasedProcessV2Enum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
1
+ import { PurchasedProcessV2Enum, ReservationCancelTypeEnum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
2
2
  declare class PurchaseReceiptReceiveInfo {
3
3
  buyerName: string;
4
4
  buyerPhoneNumber: string;
@@ -14,5 +14,6 @@ export declare class UpdatePurchaseReceiptPayload {
14
14
  process?: PurchasedProcessV2Enum;
15
15
  paymentDate?: Date;
16
16
  receiveInfo?: PurchaseReceiptReceiveInfo;
17
+ cancelType?: ReservationCancelTypeEnum;
17
18
  }
18
19
  export {};
@@ -79,3 +79,8 @@ __decorate([
79
79
  (0, class_validator_1.IsOptional)(),
80
80
  __metadata("design:type", PurchaseReceiptReceiveInfo)
81
81
  ], UpdatePurchaseReceiptPayload.prototype, "receiveInfo", void 0);
82
+ __decorate([
83
+ (0, class_validator_1.IsEnum)(purchased_info_entity_1.ReservationCancelTypeEnum),
84
+ (0, class_validator_1.IsOptional)(),
85
+ __metadata("design:type", String)
86
+ ], UpdatePurchaseReceiptPayload.prototype, "cancelType", void 0);
@@ -1,4 +1,4 @@
1
- import { PurchasedProcessV2Enum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
1
+ import { PurchasedProcessV2Enum, ReservationCancelTypeEnum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
2
2
  import { PurchaseReceiptDomain, CustomPurchaseReceiptPurchasedInfo } from '@yolo-croket-dev/domain';
3
3
  export declare class SearchPurchaseReceiptsPayload {
4
4
  sDate?: Date;
@@ -7,6 +7,7 @@ export declare class SearchPurchaseReceiptsPayload {
7
7
  limit: number;
8
8
  searchAfter?: string;
9
9
  searchBefore?: string;
10
+ cancelType?: ReservationCancelTypeEnum;
10
11
  }
11
12
  export declare class PurchaseReceiptList implements Pick<PurchaseReceiptDomain, '_id' | 'paymentNumber' | 'paymentMethod' | 'purchasedInfos' | 'paymentDate' | 'searchToken' | 'purchasedInfoTotalCount'> {
12
13
  _id: string;
@@ -47,6 +47,11 @@ __decorate([
47
47
  (0, class_validator_1.IsOptional)(),
48
48
  __metadata("design:type", String)
49
49
  ], SearchPurchaseReceiptsPayload.prototype, "searchBefore", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsEnum)(purchased_info_entity_1.ReservationCancelTypeEnum),
52
+ (0, class_validator_1.IsOptional)(),
53
+ __metadata("design:type", String)
54
+ ], SearchPurchaseReceiptsPayload.prototype, "cancelType", void 0);
50
55
  // eslint-disable-next-line max-len
51
56
  class PurchaseReceiptList {
52
57
  }
@@ -1,20 +1,3 @@
1
- /** @description 구매자 예약 취소 에러 코드 */
2
- export declare enum CancelReservationByBuyerErrorEnum {
3
- /** 로그인 필요 */
4
- NOT_FOUND_BUYER = "NOT_FOUND_BUYER",
5
- /** 주문 정보 미존재 */
6
- NOT_FOUND_PURCHASED_INFO = "NOT_FOUND_PURCHASED_INFO",
7
- /** 예약 상품 주문이 아님 */
8
- NOT_RESERVATION_ITEM = "NOT_RESERVATION_ITEM",
9
- /** 본인 주문이 아님 */
10
- NOT_BUYER = "NOT_BUYER",
11
- /** 예약중 상태가 아님 */
12
- NOT_RESERVING_STATUS = "NOT_RESERVING_STATUS",
13
- /** 예약 가능 기간 만료 */
14
- RESERVATION_PERIOD_EXPIRED = "RESERVATION_PERIOD_EXPIRED",
15
- /** 이미 취소되었거나 예약중 상태가 아님 (core) */
16
- ALREADY_CANCELLED_OR_NOT_RESERVING = "ALREADY_CANCELLED_OR_NOT_RESERVING"
17
- }
18
1
  /** @description 구매자 예약 취소 요청 Payload */
19
2
  export declare class CancelReservationByBuyerPayload {
20
3
  pInfoId: string;
@@ -9,26 +9,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CancelReservationByBuyerPayload = exports.CancelReservationByBuyerErrorEnum = void 0;
12
+ exports.CancelReservationByBuyerPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- /** @description 구매자 예약 취소 에러 코드 */
15
- var CancelReservationByBuyerErrorEnum;
16
- (function (CancelReservationByBuyerErrorEnum) {
17
- /** 로그인 필요 */
18
- CancelReservationByBuyerErrorEnum["NOT_FOUND_BUYER"] = "NOT_FOUND_BUYER";
19
- /** 주문 정보 미존재 */
20
- CancelReservationByBuyerErrorEnum["NOT_FOUND_PURCHASED_INFO"] = "NOT_FOUND_PURCHASED_INFO";
21
- /** 예약 상품 주문이 아님 */
22
- CancelReservationByBuyerErrorEnum["NOT_RESERVATION_ITEM"] = "NOT_RESERVATION_ITEM";
23
- /** 본인 주문이 아님 */
24
- CancelReservationByBuyerErrorEnum["NOT_BUYER"] = "NOT_BUYER";
25
- /** 예약중 상태가 아님 */
26
- CancelReservationByBuyerErrorEnum["NOT_RESERVING_STATUS"] = "NOT_RESERVING_STATUS";
27
- /** 예약 가능 기간 만료 */
28
- CancelReservationByBuyerErrorEnum["RESERVATION_PERIOD_EXPIRED"] = "RESERVATION_PERIOD_EXPIRED";
29
- /** 이미 취소되었거나 예약중 상태가 아님 (core) */
30
- CancelReservationByBuyerErrorEnum["ALREADY_CANCELLED_OR_NOT_RESERVING"] = "ALREADY_CANCELLED_OR_NOT_RESERVING";
31
- })(CancelReservationByBuyerErrorEnum || (exports.CancelReservationByBuyerErrorEnum = CancelReservationByBuyerErrorEnum = {}));
32
14
  /** @description 구매자 예약 취소 요청 Payload */
33
15
  class CancelReservationByBuyerPayload {
34
16
  }
@@ -6,14 +6,10 @@ export declare class GetMyUserCardBillingDetailPayload {
6
6
  /** 조회할 유저 카드 빌링 ID */
7
7
  userCardBillingId: string;
8
8
  }
9
- export type UserCardBillingForBuyer = Pick<UserCardBillingEntity, 'cardCompany' | 'cardNumberLast4' | 'isView' | 'regDate' | 'type'> & {
10
- _id: string;
11
- userId: string;
12
- };
13
9
  /**
14
10
  * @description 유저 카드 정보 상세 조회 응답 Result
15
11
  */
16
12
  export declare class GetMyUserCardBillingDetailResult {
17
13
  /** 유저 카드 빌링 정보 */
18
- userCardBilling: UserCardBillingForBuyer;
14
+ userCardBilling: UserCardBillingEntity;
19
15
  }
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult, RegisterBillingCardPayload, RegisterBillingCardResult, GetCardInterestFreeResult, CancelBillingPaymentPayload, CancelBillingPaymentResult } from '../dto/nicepay';
3
+ import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult, RegisterBillingCardPayload, RegisterBillingCardResult } from '../dto/nicepay';
4
4
  /**
5
5
  * @author jun
6
6
  * @description NicePay 관련 AMQP 서비스
@@ -16,8 +16,4 @@ export declare class AmqpNicepayService {
16
16
  issueBillingKey(payload: IssueBillingKeyPayload, param: AbstractParam): Promise<IssueBillingKeyResult>;
17
17
  /** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
18
18
  registerBillingCard(payload: RegisterBillingCardPayload, param: AbstractParam): Promise<RegisterBillingCardResult>;
19
- /** NicePay 카드 무이자 할부 정보 조회 */
20
- getCardInterestFree(param: AbstractParam): Promise<GetCardInterestFreeResult>;
21
- /** NicePay 빌링 결제 취소 */
22
- cancelBillingPayment(payload: CancelBillingPaymentPayload, param: AbstractParam): Promise<CancelBillingPaymentResult>;
23
19
  }
@@ -38,14 +38,6 @@ let AmqpNicepayService = class AmqpNicepayService {
38
38
  async registerBillingCard(payload, param) {
39
39
  return this.amqpManager.call('NicePay 빌링키 발급 + 유저 카드 등록', 'nicepay.register.billing-card', payload, param, { isErrorThrowing: true });
40
40
  }
41
- /** NicePay 카드 무이자 할부 정보 조회 */
42
- async getCardInterestFree(param) {
43
- return this.amqpManager.call('NicePay 카드 무이자 할부 정보 조회', 'nicepay.get.card-interest-free', {}, param, { isErrorThrowing: true });
44
- }
45
- /** NicePay 빌링 결제 취소 */
46
- async cancelBillingPayment(payload, param) {
47
- return this.amqpManager.call('NicePay 빌링 결제 취소', 'nicepay.cancel.billing-payment', payload, param, { isErrorThrowing: true });
48
- }
49
41
  };
50
42
  exports.AmqpNicepayService = AmqpNicepayService;
51
43
  exports.AmqpNicepayService = AmqpNicepayService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.54-jun.24",
3
+ "version": "0.7.54-jun.4",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -19,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "@nestjs/common": "^10.3.10",
21
21
  "@yolo-croket-dev/core": "^1.9.3",
22
- "@yolo-croket-dev/domain": "0.2.27-jun.5",
22
+ "@yolo-croket-dev/domain": "0.2.27-jun.2",
23
23
  "@yolo-croket-dev/dto-v2": "0.2.15",
24
24
  "@yolo-croket-dev/entity": "0.2.66-jun.10",
25
- "@yolo-croket-dev/entity-v2": "0.2.129-jun.6",
25
+ "@yolo-croket-dev/entity-v2": "0.2.129-jun.0",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -1,31 +0,0 @@
1
- import { NicepayBillingCancelApiResponse } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
2
- /**
3
- * @author jun
4
- * @description NicePay 빌링 결제 취소 요청 Payload
5
- * @process order-server의 CancelBillingPaymentService에 전달되는 데이터
6
- */
7
- export declare class CancelBillingPaymentPayload {
8
- /** 승인 시 받은 거래 ID */
9
- tid: string;
10
- /** 취소 금액 */
11
- cancelAmt: number;
12
- /** 취소 사유 */
13
- cancelMsg: string;
14
- /** 부분취소 여부 (0: 전체취소, 1: 부분취소) */
15
- partialCancelCode: string;
16
- /** 가맹점 주문번호 */
17
- moid: string;
18
- /** 유저 카드 빌링 ID (로그 저장용) */
19
- userCardBillingId: string;
20
- /** 구매 정보 ID (로그 저장용) */
21
- pInfoId: string;
22
- }
23
- /**
24
- * @description NicePay 빌링 결제 취소 결과
25
- */
26
- export declare class CancelBillingPaymentResult {
27
- /** 취소 성공 여부 */
28
- isCancelSuccess: boolean;
29
- /** 나이스페이 빌링 취소 API 응답 */
30
- nicepayBillingCancelApiResponse: NicepayBillingCancelApiResponse;
31
- }
@@ -1,62 +0,0 @@
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.CancelBillingPaymentResult = exports.CancelBillingPaymentPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- /**
15
- * @author jun
16
- * @description NicePay 빌링 결제 취소 요청 Payload
17
- * @process order-server의 CancelBillingPaymentService에 전달되는 데이터
18
- */
19
- class CancelBillingPaymentPayload {
20
- }
21
- exports.CancelBillingPaymentPayload = CancelBillingPaymentPayload;
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], CancelBillingPaymentPayload.prototype, "tid", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsNumber)(),
29
- (0, class_validator_1.IsNotEmpty)(),
30
- __metadata("design:type", Number)
31
- ], CancelBillingPaymentPayload.prototype, "cancelAmt", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsString)(),
34
- (0, class_validator_1.IsNotEmpty)(),
35
- __metadata("design:type", String)
36
- ], CancelBillingPaymentPayload.prototype, "cancelMsg", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsString)(),
39
- (0, class_validator_1.IsNotEmpty)(),
40
- __metadata("design:type", String)
41
- ], CancelBillingPaymentPayload.prototype, "partialCancelCode", void 0);
42
- __decorate([
43
- (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.IsNotEmpty)(),
45
- __metadata("design:type", String)
46
- ], CancelBillingPaymentPayload.prototype, "moid", void 0);
47
- __decorate([
48
- (0, class_validator_1.IsString)(),
49
- (0, class_validator_1.IsNotEmpty)(),
50
- __metadata("design:type", String)
51
- ], CancelBillingPaymentPayload.prototype, "userCardBillingId", void 0);
52
- __decorate([
53
- (0, class_validator_1.IsString)(),
54
- (0, class_validator_1.IsNotEmpty)(),
55
- __metadata("design:type", String)
56
- ], CancelBillingPaymentPayload.prototype, "pInfoId", void 0);
57
- /**
58
- * @description NicePay 빌링 결제 취소 결과
59
- */
60
- class CancelBillingPaymentResult {
61
- }
62
- exports.CancelBillingPaymentResult = CancelBillingPaymentResult;
@@ -1,31 +0,0 @@
1
- /**
2
- * @author jun
3
- * @description NicePay 카드 무이자 할부 정보 조회 DTO
4
- * @process NicePay 무이자 정보 조회 API 응답 body를 정의
5
- */
6
- /**
7
- * @description NicePay 카드 무이자 할부 정보 조회 응답 data 상세 항목
8
- */
9
- export declare class GetCardInterestFreeDataItem {
10
- /** 카드사코드 */
11
- FnCd: string;
12
- /** 카드사명 */
13
- FnNm: string;
14
- /** 개월 수 */
15
- instmntMon: string;
16
- /** 할부 유형 */
17
- instmntType: string;
18
- /** 최소 금액 */
19
- minAmt: string;
20
- }
21
- /**
22
- * @description NicePay 카드 무이자 할부 정보 조회 Result
23
- */
24
- export declare class GetCardInterestFreeResult {
25
- /** 대상일자 (yyyymmdd) */
26
- targetDt: string;
27
- /** 데이터 Count */
28
- dataCnt: string;
29
- /** 무이자 할부 데이터 */
30
- data: GetCardInterestFreeDataItem[];
31
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /**
3
- * @author jun
4
- * @description NicePay 카드 무이자 할부 정보 조회 DTO
5
- * @process NicePay 무이자 정보 조회 API 응답 body를 정의
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.GetCardInterestFreeResult = exports.GetCardInterestFreeDataItem = void 0;
9
- /**
10
- * @description NicePay 카드 무이자 할부 정보 조회 응답 data 상세 항목
11
- */
12
- class GetCardInterestFreeDataItem {
13
- }
14
- exports.GetCardInterestFreeDataItem = GetCardInterestFreeDataItem;
15
- /**
16
- * @description NicePay 카드 무이자 할부 정보 조회 Result
17
- */
18
- class GetCardInterestFreeResult {
19
- }
20
- exports.GetCardInterestFreeResult = GetCardInterestFreeResult;