@yolo-croket-dev/entity-v2 0.3.48 → 0.3.50-beta.1
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/bundle-purchased-info/bundle-purchased-info.entity.d.ts +5 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/purchased-info/purchased-info-for-seller.entity.d.ts +2 -0
- package/settle-adjustment-plan/index.d.ts +1 -0
- package/settle-adjustment-plan/index.js +17 -0
- package/settle-adjustment-plan/settle-adjustment-plan.entity.d.ts +41 -0
- package/settle-adjustment-plan/settle-adjustment-plan.entity.js +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
2
|
import { StoreItemKeyword } from '@yolo-croket-dev/entity/src/store-item';
|
|
3
|
-
import { PInfoTypeEnum } from '../purchased-info/purchased-info.entity';
|
|
3
|
+
import { PInfoTypeEnum, RefundWaitingStatusEnum } from '../purchased-info/purchased-info.entity';
|
|
4
4
|
import { StoreItemTypeEnum } from '../store-item/store-item.entity';
|
|
5
5
|
export interface PInfoOfBundle {
|
|
6
6
|
PInfoId: Types.ObjectId;
|
|
@@ -14,6 +14,10 @@ export interface PInfoOfBundle {
|
|
|
14
14
|
/** 해당 데이터는 계속 변동 될 수 있음 */
|
|
15
15
|
process: string;
|
|
16
16
|
process_v2?: string;
|
|
17
|
+
/** 셀러 거래내역 Atlas Search의 환불 대기 상태 필터용 최소 스냅샷 */
|
|
18
|
+
refundWaitingInfo?: {
|
|
19
|
+
status?: RefundWaitingStatusEnum;
|
|
20
|
+
};
|
|
17
21
|
pInfoType?: PInfoTypeEnum;
|
|
18
22
|
/** 추가금 결제 Child가 연결된 Parent PInfo ID. 셀러 거래내역 관계 그룹화에 사용한다. */
|
|
19
23
|
additionalPaymentOriginalPInfoId?: Types.ObjectId;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -98,3 +98,4 @@ __exportStar(require("./p-info-pending-settle"), exports);
|
|
|
98
98
|
__exportStar(require("./store-item-pending-settle"), exports);
|
|
99
99
|
__exportStar(require("./store-pending-settle"), exports);
|
|
100
100
|
__exportStar(require("./admin-settlement-limit"), exports);
|
|
101
|
+
__exportStar(require("./settle-adjustment-plan"), exports);
|
package/package.json
CHANGED
|
@@ -17,6 +17,8 @@ export type PInfoPickedForSeller = Pick<PurchasedInfoEntity, '_id' | 'publicId'
|
|
|
17
17
|
'additionalPaymentRequestInfo' | 'additionalPaymentInfo'> & {
|
|
18
18
|
/** 주문 당시 상품 키워드 스냅샷 */
|
|
19
19
|
itemKeywords?: StoreItemKeyword[];
|
|
20
|
+
/** 해당 거래의 완료 인증에 연결된 6자리 OTP. 미인증·이전 주문은 생략한다. */
|
|
21
|
+
customsOtp?: string;
|
|
20
22
|
isPcccDeferred?: boolean;
|
|
21
23
|
isReceiveInfoChangedInBeforeDelivery?: boolean;
|
|
22
24
|
/** 구매 당시 상품 타입 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './settle-adjustment-plan.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./settle-adjustment-plan.entity"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @author jun @description 추가·차감 예정 및 변경 이력 영속 계약. */
|
|
2
|
+
import { Types } from 'mongoose';
|
|
3
|
+
export type AdjustmentPlanType = 'addition' | 'deduction';
|
|
4
|
+
export type AdjustmentPlanStatus = 'pending' | 'completed' | 'cancelled';
|
|
5
|
+
export interface AdjustmentPlanAdmin {
|
|
6
|
+
managerUserId: string;
|
|
7
|
+
username: string;
|
|
8
|
+
pastAuthLevel: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SettleAdjustmentPlanEntity {
|
|
11
|
+
_id: Types.ObjectId;
|
|
12
|
+
PInfoId: Types.ObjectId;
|
|
13
|
+
sellerId: Types.ObjectId;
|
|
14
|
+
storeId: Types.ObjectId;
|
|
15
|
+
type: AdjustmentPlanType;
|
|
16
|
+
amount: number;
|
|
17
|
+
reason: string;
|
|
18
|
+
memo: string;
|
|
19
|
+
status: AdjustmentPlanStatus;
|
|
20
|
+
revision: number;
|
|
21
|
+
createdBy: AdjustmentPlanAdmin;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
deletedAt: Date | null;
|
|
25
|
+
settleId: Types.ObjectId | null;
|
|
26
|
+
completedAt: Date | null;
|
|
27
|
+
cancelledAt: Date | null;
|
|
28
|
+
}
|
|
29
|
+
export interface SettleAdjustmentPlanLogEntity {
|
|
30
|
+
_id: Types.ObjectId;
|
|
31
|
+
planId: Types.ObjectId;
|
|
32
|
+
action: 'create' | 'update' | 'delete' | 'complete' | 'cancel';
|
|
33
|
+
before: SettleAdjustmentPlanEntity | null;
|
|
34
|
+
after: SettleAdjustmentPlanEntity;
|
|
35
|
+
manageUserInfo: AdjustmentPlanAdmin;
|
|
36
|
+
createdAt: Date;
|
|
37
|
+
}
|
|
38
|
+
/** @description 실제 정산에 저장하는 예정 연결 식별자. */
|
|
39
|
+
export interface AdjustmentPlanSettlementLink {
|
|
40
|
+
adjustmentPlanId?: Types.ObjectId | string;
|
|
41
|
+
}
|