@yolo-croket-dev/entity-v2 0.2.124-jun.2 → 0.2.124-jun.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.124-jun.2",
3
+ "version": "0.2.124-jun.3",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -1,8 +1,22 @@
1
1
  import { Types } from 'mongoose';
2
2
  import { SelectionFrameDataTypeEnum } from '@yolo-croket-dev/entity/src/selection-frame-data';
3
3
  import { SettleVersionEnum } from '@yolo-croket-dev/entity/src/settle';
4
+ import { PayTryLogPastReservationInfo } from '@yolo-croket-dev/entity/src/pay-try-log/pay-try-log.entity';
4
5
  import { PartialRefundProcessEnum } from '../partial-refund';
5
6
  import { PurchasedInfoTosspaymentsRefund } from './purchased-info.entity/p-info-tosspayments-refund.vo';
7
+ export declare enum ReservationCancelReasonEnum {
8
+ /** 유저 직접 취소 */
9
+ userCancel = "userCancel",
10
+ /** 재고 부족으로 매칭 실패 */
11
+ matchingFailedStock = "matchingFailedStock",
12
+ /** 결제 실패로 매칭 실패 */
13
+ matchingFailedPayment = "matchingFailedPayment"
14
+ }
15
+ export declare enum PInfoTypeEnum {
16
+ normal = "normal",
17
+ card = "card",
18
+ reservation = "reservation"
19
+ }
6
20
  export declare enum POptionTypeEnum {
7
21
  single = "single",
8
22
  group = "group"
@@ -857,6 +871,35 @@ export default interface PurchasedInfoEntity {
857
871
  };
858
872
  /** @description 어트리뷰션 히스토리 아이디 */
859
873
  attributionHistoryId?: Types.ObjectId | string;
874
+ pInfoType?: PInfoTypeEnum;
875
+ reservationInfo?: PurchasedReservationInfo;
876
+ }
877
+ export interface PurchasedReservationInfo {
878
+ /** 예약 순서 */
879
+ reservationOrder: number;
880
+ /** 당시 상품 정보의 예약 정보 */
881
+ pastReservationInfo: PayTryLogPastReservationInfo;
882
+ /** 예약 일시 */
883
+ reservedDate: Date;
884
+ /** 결제 확정 일시 (빌링키 결제 성공 시점) */
885
+ paymentConfirmedDate?: Date;
886
+ /** 예약 취소일시 */
887
+ cancelledDate?: Date;
888
+ /** 예약 취소 사유 (cancelled 상태일 때 상세 구분용) */
889
+ cancelReason?: ReservationCancelReasonEnum;
890
+ /** 결제에 사용된 빌링 데이터 ID */
891
+ userCardBillingId: Types.ObjectId;
892
+ /** 1차 결제 실패 일시 (재시도 기한 계산 기준) */
893
+ firstPaymentFailedDate?: Date;
894
+ /** 재시도 기한 만료일 (firstPaymentFailedDate + 24h) */
895
+ retryDeadline?: Date;
896
+ /** 결제 실패 이력 */
897
+ paymentFailureLogs?: ReservationPaymentFailureLog[];
898
+ }
899
+ export interface ReservationPaymentFailureLog {
900
+ reason: string;
901
+ failedDate: Date;
902
+ userCardBillingId: Types.ObjectId;
860
903
  }
861
904
  export interface PurchasedInfoPastStoreInfo {
862
905
  storeTitle: string;
@@ -1,6 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InsuranceProcessTypeEnum = exports.PastSelectionFrameDataInfo = exports.PurchasedProcessV2Enum = exports.PurchasedProcessEnum = exports.UserTypeEnum = exports.TaxInvoiceIssueProcessEnum = exports.POptionTypeEnum = void 0;
3
+ exports.InsuranceProcessTypeEnum = exports.PastSelectionFrameDataInfo = exports.PurchasedProcessV2Enum = exports.PurchasedProcessEnum = exports.UserTypeEnum = exports.TaxInvoiceIssueProcessEnum = exports.POptionTypeEnum = exports.PInfoTypeEnum = exports.ReservationCancelReasonEnum = void 0;
4
+ var ReservationCancelReasonEnum;
5
+ (function (ReservationCancelReasonEnum) {
6
+ /** 유저 직접 취소 */
7
+ ReservationCancelReasonEnum["userCancel"] = "userCancel";
8
+ /** 재고 부족으로 매칭 실패 */
9
+ ReservationCancelReasonEnum["matchingFailedStock"] = "matchingFailedStock";
10
+ /** 결제 실패로 매칭 실패 */
11
+ ReservationCancelReasonEnum["matchingFailedPayment"] = "matchingFailedPayment";
12
+ })(ReservationCancelReasonEnum || (exports.ReservationCancelReasonEnum = ReservationCancelReasonEnum = {}));
13
+ var PInfoTypeEnum;
14
+ (function (PInfoTypeEnum) {
15
+ PInfoTypeEnum["normal"] = "normal";
16
+ PInfoTypeEnum["card"] = "card";
17
+ PInfoTypeEnum["reservation"] = "reservation";
18
+ })(PInfoTypeEnum || (exports.PInfoTypeEnum = PInfoTypeEnum = {}));
4
19
  var POptionTypeEnum;
5
20
  (function (POptionTypeEnum) {
6
21
  POptionTypeEnum["single"] = "single";