@yolo-croket-dev/entity-v2 0.3.43 → 0.3.45
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/customs/customs.entity.d.ts +27 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/purchase-receipt/purchase-receipt.entity.d.ts +2 -1
- package/purchased-info/purchased-info.entity.d.ts +2 -1
- package/store-item-pending-settle/index.d.ts +1 -0
- package/store-item-pending-settle/index.js +17 -0
- package/store-item-pending-settle/store-item-pending-settle.entity.d.ts +48 -0
- package/store-item-pending-settle/store-item-pending-settle.entity.js +18 -0
|
@@ -22,6 +22,24 @@ export interface CustomsPcccVerificationEntity {
|
|
|
22
22
|
_id: Types.ObjectId | string;
|
|
23
23
|
reqtNo: string;
|
|
24
24
|
orderNo?: string;
|
|
25
|
+
/** @description 공개 API로 발급한 인증의 로그인 사용자. 기존 내부 발급 문서에는 없을 수 있다. */
|
|
26
|
+
userId?: string;
|
|
27
|
+
/** @description 인증 발급 당시 결제 시도 주문서 ID. */
|
|
28
|
+
payTryLogId?: string;
|
|
29
|
+
/** 결제 후 보완 인증 대상 주문서 ID. PTL ID와 배타적이다. */
|
|
30
|
+
purchaseReceiptId?: string;
|
|
31
|
+
/** 발급 시점 주문 정책 개정 번호. 재발급과 최종 저장의 경합 검증에 사용한다. */
|
|
32
|
+
customsPolicyRevision?: number;
|
|
33
|
+
/** @description 중복 발급 방지용 활성 주문 키. 완료/대기 중 하나의 발급만 유지한다. */
|
|
34
|
+
activeCheckoutKey?: string;
|
|
35
|
+
/** @description 수령정보와 입력 PCCC의 HMAC. 다른 정보의 인증 결과 재사용을 차단한다. */
|
|
36
|
+
receiverFingerprint?: string;
|
|
37
|
+
/** @description 수령정보·PCCC·확보한 OTP를 요청번호에 결속한 AES-GCM 암호문. CI는 저장하지 않는다. */
|
|
38
|
+
encryptedCredentials?: string;
|
|
39
|
+
/** @description 크로켓 인증 입력 세션의 만료 시각. 관세청 OTP 자체의 유효기간이 아니다. */
|
|
40
|
+
expiresAt?: Date;
|
|
41
|
+
/** @description 사용자 OTP 입력 시도 횟수. */
|
|
42
|
+
attemptCount?: number;
|
|
25
43
|
status: CustomsPcccVerificationStatusEnum;
|
|
26
44
|
requestType: '01' | '02';
|
|
27
45
|
phoneLastFour: string;
|
|
@@ -68,3 +86,12 @@ export interface CustomsSequenceEntity {
|
|
|
68
86
|
value: number;
|
|
69
87
|
updatedAt: Date;
|
|
70
88
|
}
|
|
89
|
+
/** @author 홍준 @description 주문별 통관 인증 적용 상태 @process 필드가 없는 과거 주문은 기존 결제·물류 정책을 유지한다. */
|
|
90
|
+
export interface CustomsVerificationLink {
|
|
91
|
+
/** 서버가 새 통관 흐름에 진입한 대상 주문에만 설정한다. */
|
|
92
|
+
customsVerificationRequired?: boolean;
|
|
93
|
+
/** 최종 수령정보로 검증한 인증 기록 ID. */
|
|
94
|
+
customsVerificationId?: string;
|
|
95
|
+
/** 인증 정책 준비와 최종 저장 사이의 경합을 감지하는 서버 내부 개정 번호. */
|
|
96
|
+
customsPolicyRevision?: number;
|
|
97
|
+
}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -95,3 +95,4 @@ __exportStar(require("./crawler-proxy-order-payment-request-slack-event"), expor
|
|
|
95
95
|
__exportStar(require("./chat.modules/message-template.entity"), exports);
|
|
96
96
|
__exportStar(require("./customs"), exports);
|
|
97
97
|
__exportStar(require("./p-info-pending-settle"), exports);
|
|
98
|
+
__exportStar(require("./store-item-pending-settle"), exports);
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { CustomsVerificationLink } from '../customs/customs.entity';
|
|
2
3
|
import { PurchasedProcessV2Enum } from '../purchased-info';
|
|
3
4
|
export interface PurchaseReceiptPurchasedInfo {
|
|
4
5
|
/** @description 결제 아이디 */
|
|
@@ -30,7 +31,7 @@ export interface PurchaseReceiptReceiveInfo {
|
|
|
30
31
|
/** @description 영문명 이름 */
|
|
31
32
|
buyerEngLastName?: string;
|
|
32
33
|
}
|
|
33
|
-
export default interface PurchaseReceiptEntity {
|
|
34
|
+
export default interface PurchaseReceiptEntity extends CustomsVerificationLink {
|
|
34
35
|
_id: Types.ObjectId | string;
|
|
35
36
|
/** @description 해당 결제 정보 구매자 아이디 */
|
|
36
37
|
buyerId: Types.ObjectId | string;
|
|
@@ -3,6 +3,7 @@ import { SelectionFrameDataTypeEnum } from '@yolo-croket-dev/entity/src/selectio
|
|
|
3
3
|
import { SettleVersionEnum } from '@yolo-croket-dev/entity/src/settle';
|
|
4
4
|
import { PayTryLogPastReservationInfo } from '@yolo-croket-dev/entity/src/pay-try-log/pay-try-log.entity';
|
|
5
5
|
import { StoreItemKeyword } from '@yolo-croket-dev/entity/src/store-item';
|
|
6
|
+
import { CustomsVerificationLink } from '../customs/customs.entity';
|
|
6
7
|
import { NicepayBillingApproveResponse } from '../nicepay-billing-log/nicepay-billing-log.entity';
|
|
7
8
|
import { PartialRefundProcessEnum } from '../partial-refund';
|
|
8
9
|
import { AttributionDeviceTypeEnum } from '../attribution-touch';
|
|
@@ -1283,7 +1284,7 @@ export interface CrawlerProxyOrderInfo {
|
|
|
1283
1284
|
changeLogs?: CrawlerProxyOrderInfoChangeLog[];
|
|
1284
1285
|
}
|
|
1285
1286
|
/** PInfo schema inteface (아직 선언하다 말았음) */
|
|
1286
|
-
export default interface PurchasedInfoEntity {
|
|
1287
|
+
export default interface PurchasedInfoEntity extends CustomsVerificationLink {
|
|
1287
1288
|
_id: Types.ObjectId | string;
|
|
1288
1289
|
/** @description 해당 결제 정보 셀러 아이디 */
|
|
1289
1290
|
sellerId: Types.ObjectId | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-item-pending-settle.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("./store-item-pending-settle.entity"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** @author jun @description 상품별 정산 보류 영속 계약. @process 현재 설정과 감사 이력을 분리한다. */
|
|
2
|
+
import { Types } from 'mongoose';
|
|
3
|
+
export declare enum StoreItemPendingSettleReason {
|
|
4
|
+
COUNTERFEIT_ISSUE = "counterfeit_issue",
|
|
5
|
+
PRODUCT_ISSUE = "product_issue",
|
|
6
|
+
SETTLEMENT_DOCUMENT_REVIEW = "settlement_document_review",
|
|
7
|
+
SELLER_REASON = "seller_reason",
|
|
8
|
+
OTHER = "other"
|
|
9
|
+
}
|
|
10
|
+
export declare enum StoreItemPendingSettleAction {
|
|
11
|
+
REGISTER = "REGISTER",
|
|
12
|
+
UPDATE = "UPDATE",
|
|
13
|
+
RELEASE = "RELEASE",
|
|
14
|
+
REHOLD = "REHOLD"
|
|
15
|
+
}
|
|
16
|
+
export interface StoreItemPendingSettleAdminRef {
|
|
17
|
+
manageUserId: Types.ObjectId;
|
|
18
|
+
username: string;
|
|
19
|
+
pastAuthLevel: string;
|
|
20
|
+
}
|
|
21
|
+
export interface StoreItemPendingSettleSnapshot {
|
|
22
|
+
storeItemId: Types.ObjectId;
|
|
23
|
+
reason: StoreItemPendingSettleReason;
|
|
24
|
+
memo: string;
|
|
25
|
+
startsAt: Date;
|
|
26
|
+
/** Exclusive UTC boundary; null means indefinite. */
|
|
27
|
+
endsAt: Date | null;
|
|
28
|
+
releasedAt: Date | null;
|
|
29
|
+
releaseMemo: string | null;
|
|
30
|
+
createdBy: StoreItemPendingSettleAdminRef;
|
|
31
|
+
updatedBy: StoreItemPendingSettleAdminRef;
|
|
32
|
+
releasedBy: StoreItemPendingSettleAdminRef | null;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
}
|
|
36
|
+
export interface StoreItemPendingSettleEntity extends StoreItemPendingSettleSnapshot {
|
|
37
|
+
_id: Types.ObjectId;
|
|
38
|
+
}
|
|
39
|
+
export interface StoreItemPendingSettleLogEntity {
|
|
40
|
+
_id: Types.ObjectId;
|
|
41
|
+
pendingSettleId: Types.ObjectId;
|
|
42
|
+
action: StoreItemPendingSettleAction;
|
|
43
|
+
actor: StoreItemPendingSettleAdminRef;
|
|
44
|
+
before: StoreItemPendingSettleSnapshot | null;
|
|
45
|
+
after: StoreItemPendingSettleSnapshot;
|
|
46
|
+
traceId: string;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreItemPendingSettleAction = exports.StoreItemPendingSettleReason = void 0;
|
|
4
|
+
var StoreItemPendingSettleReason;
|
|
5
|
+
(function (StoreItemPendingSettleReason) {
|
|
6
|
+
StoreItemPendingSettleReason["COUNTERFEIT_ISSUE"] = "counterfeit_issue";
|
|
7
|
+
StoreItemPendingSettleReason["PRODUCT_ISSUE"] = "product_issue";
|
|
8
|
+
StoreItemPendingSettleReason["SETTLEMENT_DOCUMENT_REVIEW"] = "settlement_document_review";
|
|
9
|
+
StoreItemPendingSettleReason["SELLER_REASON"] = "seller_reason";
|
|
10
|
+
StoreItemPendingSettleReason["OTHER"] = "other";
|
|
11
|
+
})(StoreItemPendingSettleReason || (exports.StoreItemPendingSettleReason = StoreItemPendingSettleReason = {}));
|
|
12
|
+
var StoreItemPendingSettleAction;
|
|
13
|
+
(function (StoreItemPendingSettleAction) {
|
|
14
|
+
StoreItemPendingSettleAction["REGISTER"] = "REGISTER";
|
|
15
|
+
StoreItemPendingSettleAction["UPDATE"] = "UPDATE";
|
|
16
|
+
StoreItemPendingSettleAction["RELEASE"] = "RELEASE";
|
|
17
|
+
StoreItemPendingSettleAction["REHOLD"] = "REHOLD";
|
|
18
|
+
})(StoreItemPendingSettleAction || (exports.StoreItemPendingSettleAction = StoreItemPendingSettleAction = {}));
|