@yolo-croket-dev/amqp-access 0.7.54-jun.0 → 0.7.54-jun.10

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.
@@ -14,16 +14,6 @@ export declare class RegisterBillingCardPayload {
14
14
  * @description NicePay 빌링키 발급 + 유저 카드 등록 통합 응답 Result
15
15
  */
16
16
  export declare class RegisterBillingCardResult {
17
- /** 발급된 빌링키 (BID) */
18
- bid: string;
19
- /** 카드사 코드 */
20
- cardCode: string;
21
- /** 카드사명 */
22
- cardName: string;
23
- /** 마스킹된 카드번호 (예: 12345678****1234) */
24
- cardNo: string;
25
- /** 카드 타입 (0: 신용, 1: 체크) */
26
- cardCl: string;
27
- /** 빌키 발급일자 (YYYYMMDD) */
28
- authDate: string;
17
+ /** 등록된 UserCardBilling ID */
18
+ userCardBillingId: string;
29
19
  }
@@ -1,4 +1,4 @@
1
- import { PurchasedProcessV2Enum, ReservationCancelTypeEnum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
1
+ import { PurchasedProcessV2Enum } 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,6 +14,5 @@ export declare class UpdatePurchaseReceiptPayload {
14
14
  process?: PurchasedProcessV2Enum;
15
15
  paymentDate?: Date;
16
16
  receiveInfo?: PurchaseReceiptReceiveInfo;
17
- cancelType?: ReservationCancelTypeEnum;
18
17
  }
19
18
  export {};
@@ -79,8 +79,3 @@ __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, ReservationCancelTypeEnum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
1
+ import { PurchasedProcessV2Enum } 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,7 +7,6 @@ export declare class SearchPurchaseReceiptsPayload {
7
7
  limit: number;
8
8
  searchAfter?: string;
9
9
  searchBefore?: string;
10
- cancelType?: ReservationCancelTypeEnum;
11
10
  }
12
11
  export declare class PurchaseReceiptList implements Pick<PurchaseReceiptDomain, '_id' | 'paymentNumber' | 'paymentMethod' | 'purchasedInfos' | 'paymentDate' | 'searchToken' | 'purchasedInfoTotalCount'> {
13
12
  _id: string;
@@ -47,11 +47,6 @@ __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);
55
50
  // eslint-disable-next-line max-len
56
51
  class PurchaseReceiptList {
57
52
  }
@@ -0,0 +1,19 @@
1
+ import { UserCardBillingEntity } from '@yolo-croket-dev/entity-v2/user';
2
+ /**
3
+ * @description 유저 카드 정보 상세 조회 요청 Payload
4
+ */
5
+ export declare class GetMyUserCardBillingDetailPayload {
6
+ /** 조회할 유저 카드 빌링 ID */
7
+ userCardBillingId: string;
8
+ }
9
+ export type UserCardBillingForBuyer = Pick<UserCardBillingEntity, 'cardCompany' | 'cardNumberLast4' | 'isView' | 'regDate' | 'type'> & {
10
+ _id: string;
11
+ userId: string;
12
+ };
13
+ /**
14
+ * @description 유저 카드 정보 상세 조회 응답 Result
15
+ */
16
+ export declare class GetMyUserCardBillingDetailResult {
17
+ /** 유저 카드 빌링 정보 */
18
+ userCardBilling: UserCardBillingForBuyer;
19
+ }
@@ -0,0 +1,29 @@
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.GetMyUserCardBillingDetailResult = exports.GetMyUserCardBillingDetailPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * @description 유저 카드 정보 상세 조회 요청 Payload
16
+ */
17
+ class GetMyUserCardBillingDetailPayload {
18
+ }
19
+ exports.GetMyUserCardBillingDetailPayload = GetMyUserCardBillingDetailPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsMongoId)(),
22
+ __metadata("design:type", String)
23
+ ], GetMyUserCardBillingDetailPayload.prototype, "userCardBillingId", void 0);
24
+ /**
25
+ * @description 유저 카드 정보 상세 조회 응답 Result
26
+ */
27
+ class GetMyUserCardBillingDetailResult {
28
+ }
29
+ exports.GetMyUserCardBillingDetailResult = GetMyUserCardBillingDetailResult;
@@ -13,7 +13,7 @@ export declare class GetUserCardBillingListPayload {
13
13
  */
14
14
  export declare class GetUserCardBillingListResult {
15
15
  /** 유저 카드 빌링 정보 목록 */
16
- userCardBilling: UserCardBillingEntity[];
16
+ userCardBillings: UserCardBillingEntity[];
17
17
  /** 전체 개수 */
18
18
  allCount: number;
19
19
  }
@@ -1 +1,2 @@
1
1
  export * from './get-user-card-billing-list.dto';
2
+ export * from './get-my-user-card-billing-detail.dto';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-user-card-billing-list.dto"), exports);
18
+ __exportStar(require("./get-my-user-card-billing-detail.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { RegisterUserCardBillingPayload, DeleteUserCardBillingPayload, GetUserCardBillingListPayload, GetUserCardBillingListResult } from '../dto/user-card-billing';
3
+ import { RegisterUserCardBillingPayload, DeleteUserCardBillingPayload, GetUserCardBillingListPayload, GetUserCardBillingListResult, GetMyUserCardBillingDetailPayload, GetMyUserCardBillingDetailResult } from '../dto/user-card-billing';
4
4
  /**
5
5
  * @author jun
6
6
  * @description 유저 카드 빌링 정보 AMQP 서비스
@@ -16,4 +16,6 @@ export declare class AmqpUserCardBillingService {
16
16
  deleteUserCardBilling(payload: DeleteUserCardBillingPayload, param: AbstractParam): Promise<void>;
17
17
  /** 유저 카드 정보 목록 조회 */
18
18
  getUserCardBillingList(payload: GetUserCardBillingListPayload, param: AbstractParam): Promise<GetUserCardBillingListResult>;
19
+ /** 유저 카드 정보 상세 조회 */
20
+ getMyUserCardBillingDetail(payload: GetMyUserCardBillingDetailPayload, param: AbstractParam): Promise<GetMyUserCardBillingDetailResult>;
19
21
  }
@@ -38,6 +38,10 @@ let AmqpUserCardBillingService = class AmqpUserCardBillingService {
38
38
  async getUserCardBillingList(payload, param) {
39
39
  return this.amqpManager.call('유저 카드 정보 목록 조회', 'user-card-billing.get.list', payload, param, { isErrorThrowing: true });
40
40
  }
41
+ /** 유저 카드 정보 상세 조회 */
42
+ async getMyUserCardBillingDetail(payload, param) {
43
+ return this.amqpManager.call('유저 카드 정보 상세 조회', 'user-card-billing.get.my-detail', payload, param, { isErrorThrowing: true });
44
+ }
41
45
  };
42
46
  exports.AmqpUserCardBillingService = AmqpUserCardBillingService;
43
47
  exports.AmqpUserCardBillingService = AmqpUserCardBillingService = __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.0",
3
+ "version": "0.7.54-jun.10",
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.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.0",
25
+ "@yolo-croket-dev/entity-v2": "0.2.129-jun.1",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -42,7 +42,7 @@ export interface StoreItemReservationForAdminDetail {
42
42
  shippingPeriod: ReservationPeriod;
43
43
  stockModeInfo: ReservationStockModeInfo;
44
44
  reservationStatus: ReservationStatusEnum;
45
- reservationStatsInfo: StoreItemReservationStatsInfo;
45
+ reservationStatsInfo?: StoreItemReservationStatsInfo;
46
46
  }
47
47
  /** @description 관리자용 예약 상품 상세 조회 Result */
48
48
  export declare class GetReservationItemDetailForAdminResult {
@@ -30,7 +30,7 @@ export interface GetReservationItemsForAdminListItem {
30
30
  stockSecuringPeriod: ReservationPeriod;
31
31
  shippingPeriod: ReservationPeriod;
32
32
  stockModeInfo: ReservationStockModeInfo;
33
- reservationStatsInfo: StoreItemReservationStatsInfo;
33
+ reservationStatsInfo?: StoreItemReservationStatsInfo;
34
34
  }
35
35
  export declare class GetReservationItemsForAdminResult {
36
36
  list: GetReservationItemsForAdminListItem[];