@yolo-croket-dev/entity-v2 0.0.133-receipt-coupon-10 → 0.0.133

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.
@@ -10,16 +10,14 @@ export interface ReceiptCouponCanUsePeriodInfo {
10
10
  /** @description 발급된 주문서 쿠폰 entity */
11
11
  export default interface IssuedReceiptCouponEntity {
12
12
  _id: string | Types.ObjectId;
13
- /** @description 고유 아이디 ${receiptCouponTemplateId}-${userId} */
14
- uniqId: string;
13
+ /** @description 고유 아이디 */
14
+ uniqueId: string | Types.ObjectId;
15
15
  /** @description 사용자 아이디 */
16
16
  userId: string | Types.ObjectId;
17
17
  /** @description 쿠폰 템플릿 아이디 */
18
18
  receiptCouponTemplateId: string | Types.ObjectId;
19
19
  /** @description 사용 여부 */
20
20
  isUsed: boolean;
21
- /** @description 사용 일자 - 무제한 아닌 쿠폰일 때만 사용시 저장 */
22
- usedDate?: Date;
23
21
  /** @description 할인 타입 */
24
22
  discountType: ReceiptCouponTemplateDiscountTypeEnum;
25
23
  /** @description 할인율 정보 */
@@ -4,9 +4,7 @@ export declare enum IssuedReceiptCouponLogTypeEnum {
4
4
  /** @description 쿠폰 발급 */
5
5
  REG = "reg",
6
6
  /** @description 쿠폰 사용 */
7
- USE = "use",
8
- /** @description 쿠폰 복구 */
9
- RECOVER = "recover"
7
+ USE = "use"
10
8
  }
11
9
  /** @description 발급된 주문서 쿠폰 로그 entity */
12
10
  export default interface IssuedReceiptCouponLogEntity {
@@ -18,7 +16,5 @@ export default interface IssuedReceiptCouponLogEntity {
18
16
  issuedReceiptCouponId: string | Types.ObjectId;
19
17
  /** @description 저장일 */
20
18
  regDate: Date;
21
- /** @description 사용자 아이디 */
22
- userId: string | Types.ObjectId;
23
19
  }
24
20
  export { IssuedReceiptCouponLogEntity };
@@ -8,6 +8,4 @@ var IssuedReceiptCouponLogTypeEnum;
8
8
  IssuedReceiptCouponLogTypeEnum["REG"] = "reg";
9
9
  /** @description 쿠폰 사용 */
10
10
  IssuedReceiptCouponLogTypeEnum["USE"] = "use";
11
- /** @description 쿠폰 복구 */
12
- IssuedReceiptCouponLogTypeEnum["RECOVER"] = "recover";
13
11
  })(IssuedReceiptCouponLogTypeEnum || (exports.IssuedReceiptCouponLogTypeEnum = IssuedReceiptCouponLogTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.133-receipt-coupon-10",
3
+ "version": "0.0.133",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -23,4 +23,4 @@
23
23
  },
24
24
  "license": "UNLICENSED",
25
25
  "dependencies": {}
26
- }
26
+ }
@@ -1,7 +1,6 @@
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 { PayTryLogReceiptCouponDiscountTargetInfo } from '@yolo-croket-dev/entity/src/pay-try-log';
5
4
  import { PartialRefundProcessEnum } from '../partial-refund';
6
5
  import { PurchasedInfoTosspaymentsRefund } from './purchased-info.entity/p-info-tosspayments-refund.vo';
7
6
  export declare enum POptionTypeEnum {
@@ -477,16 +476,8 @@ export interface DiscountInfo {
477
476
  discountResult: number;
478
477
  }
479
478
  export interface CouponInfo {
480
- /** 주문서, 상품 쿠폰 총 합 */
479
+ ICId: string;
481
480
  discountInfo: DiscountInfo;
482
- /** 사용되어진 발급된 상품 쿠폰 ID - itemDiscountInfo 존재해야 함 */
483
- ICId?: string;
484
- /** 상품 쿠폰 할인 정보 */
485
- itemDiscountInfo?: DiscountInfo;
486
- /** 사용되어진 발급된 주문서 쿠폰 ID - receiptCouponDiscountTargetInfo 존재해야 함 */
487
- issuedReceiptCouponId?: string;
488
- /** 주문서 쿠폰 할인 정보 */
489
- receiptCouponDiscountTargetInfo?: PayTryLogReceiptCouponDiscountTargetInfo;
490
481
  }
491
482
  export interface RelateBundlePInfo {
492
483
  /** @description 결제 아이디 */
@@ -1,3 +1 @@
1
1
  export * from './receipt-coupon-template.entity';
2
- export * from './un-satisfied-receipt-coupon-info-for-cart.vo';
3
- export * from './satisfied-receipt-coupon-info-for-cart.vo';
@@ -15,5 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./receipt-coupon-template.entity"), exports);
18
- __exportStar(require("./un-satisfied-receipt-coupon-info-for-cart.vo"), exports);
19
- __exportStar(require("./satisfied-receipt-coupon-info-for-cart.vo"), exports);
@@ -3,7 +3,7 @@ export interface ReceiptCouponTemplateDiscountRateInfo {
3
3
  /** @description 할인율 */
4
4
  rate: number;
5
5
  /** @description 최대 할인 금액 */
6
- maxDiscountPrice: number;
6
+ maxDiscountPrice?: number;
7
7
  }
8
8
  export interface ReceiptCouponTemplateDiscountPriceInfo {
9
9
  /** @description 할인 금액 */
@@ -14,10 +14,10 @@ export declare enum ReceiptCouponTemplateDiscountTypeEnum {
14
14
  price = "price"
15
15
  }
16
16
  export interface ReceiptCouponTemplateUseConditionInfo {
17
- /** @description 최소 할인 금액 & 장바구니 노출 여부 판단 금액 */
17
+ /** @description 최소 할인 금액 */
18
18
  minPrice: number;
19
19
  /** @description 최대 할인 금액 */
20
- maxPrice?: number;
20
+ maxPrice: number;
21
21
  /** @description 상품 제한 여부 */
22
22
  isLimitStoreItem: boolean;
23
23
  /** @description 상품 제한 상품 아이디 리스트 */
@@ -41,9 +41,9 @@ export default interface ReceiptCouponTemplateEntity {
41
41
  _id: Types.ObjectId | string;
42
42
  /** @description 사용자가 쿠폰을 발급할 수 있는지 여부 */
43
43
  isCanUserIssue: boolean;
44
- /** @description 쿠폰 템플릿 수정 여부 */
44
+ /** @description 쿠폰 정보를 수정 중인지 여부 */
45
45
  isEdit: boolean;
46
- /** @description 쿠폰 템플릿 정지 상태 여부 */
46
+ /** @description 쿠폰이 일시 정지 상태인지 여부 */
47
47
  isPause: boolean;
48
48
  /** @description 쿠폰 할인 방식 (율 할인 or 금액 할인) */
49
49
  discountType: ReceiptCouponTemplateDiscountTypeEnum;
@@ -55,9 +55,9 @@ export default interface ReceiptCouponTemplateEntity {
55
55
  couponName: string;
56
56
  /** @description 쿠폰 코드 */
57
57
  couponCode: string;
58
- /** @description 쿠폰 사용 조건 정보 */
58
+ /** @description 쿠폰 사용 조건 정보 (최소 결제 금액 등) */
59
59
  useConditionInfo: ReceiptCouponTemplateUseConditionInfo;
60
- /** @description 쿠폰 발급 무제한 여부 */
60
+ /** @description 쿠폰 발급 수량이 무제한인지 여부 */
61
61
  isInfinity: boolean;
62
62
  /** @description 쿠폰 발급 가능 기간 정보 */
63
63
  canIssuePeriodInfo: ReceiptCouponTemplateCanIssuePeriodInfo;
@@ -1,4 +0,0 @@
1
- import { IssuedReceiptCouponEntity } from '../issued-receipt-coupon';
2
- export default interface SatisfiedReceiptCouponInfoForCart extends Pick<IssuedReceiptCouponEntity, 'couponName' | 'couponCode' | 'discountType' | 'discountRateInfo' | 'discountPriceInfo' | 'useConditionInfo' | 'canUsePeriodInfo'> {
3
- }
4
- export { SatisfiedReceiptCouponInfoForCart };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import ReceiptCouponTemplateEntity from './receipt-coupon-template.entity';
2
- export default interface UnSatisfiedReceiptCouponInfoForCart extends Pick<ReceiptCouponTemplateEntity, 'couponName' | 'couponCode' | 'discountType' | 'discountRateInfo' | 'discountPriceInfo' | 'useConditionInfo'> {
3
- }
4
- export { UnSatisfiedReceiptCouponInfoForCart };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });