@yolo-croket-dev/entity-v2 0.2.110 → 0.2.112
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/app-push-device-token/app-push-device-token.entity.d.ts +4 -2
- package/package.json +1 -1
- package/store/index.d.ts +1 -0
- package/store/index.js +1 -0
- package/store/store-commission-history.entity.d.ts +43 -0
- package/store/store-commission-history.entity.js +19 -0
- package/store/store.entity.d.ts +37 -0
- package/store/store.entity.js +8 -1
|
@@ -2,7 +2,7 @@ import { Types } from 'mongoose';
|
|
|
2
2
|
/** 디바이스 타입 ios, android, etc */
|
|
3
3
|
export type AppPushDeviceType = 'ios' | 'android' | 'etc';
|
|
4
4
|
/** 앱 푸시 토큰 */
|
|
5
|
-
export interface
|
|
5
|
+
export interface AppPushDeviceTokenEntity {
|
|
6
6
|
/** 앱 푸시 토큰 아이디 */
|
|
7
7
|
_id: Types.ObjectId | string;
|
|
8
8
|
/** 사용자 아이디 */
|
|
@@ -11,8 +11,10 @@ export interface AppPushDeviceToken {
|
|
|
11
11
|
deviceToken: string;
|
|
12
12
|
/** 디바이스 타입 */
|
|
13
13
|
deviceType: AppPushDeviceType;
|
|
14
|
+
/** 앱 버전 */
|
|
15
|
+
appVersion?: string;
|
|
14
16
|
/** 마지막 수정일 */
|
|
15
|
-
lastModifiedDate
|
|
17
|
+
lastModifiedDate: Date;
|
|
16
18
|
/** 저장일 */
|
|
17
19
|
regDate: Date;
|
|
18
20
|
}
|
package/package.json
CHANGED
package/store/index.d.ts
CHANGED
package/store/index.js
CHANGED
|
@@ -19,3 +19,4 @@ __exportStar(require("./store-by-seller-id.entity"), exports);
|
|
|
19
19
|
__exportStar(require("./abroad-account.entity"), exports);
|
|
20
20
|
__exportStar(require("./store-for-toss-payment.entity"), exports);
|
|
21
21
|
__exportStar(require("./domestic-account-store.entity"), exports);
|
|
22
|
+
__exportStar(require("./store-commission-history.entity"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { CommissionPolicyTypeEnum, CommissionRatePeriodInfo } from './store.entity';
|
|
3
|
+
export declare enum CommissionchangeReasonCodeTypeEnum {
|
|
4
|
+
/** @description 기본 수수료 정책 적용 (Default) */
|
|
5
|
+
SET_DEFAULT_POLICY = "SET_DEFAULT_POLICY",
|
|
6
|
+
/** @description 개별 협의 수수료 적용 (Custom) */
|
|
7
|
+
SET_CUSTOM_POLICY = "SET_CUSTOM_POLICY",
|
|
8
|
+
/** @description 초기 설정 */
|
|
9
|
+
INITIAL_SETUP = "INITIAL_SETUP",
|
|
10
|
+
/** @description 기간 수수료 등록/수정 */
|
|
11
|
+
UPSERT_PERIOD_COMMISSION = "UPSERT_PERIOD_COMMISSION"
|
|
12
|
+
}
|
|
13
|
+
/** @description 셀러 수수료 정보 변경 이력 */
|
|
14
|
+
export default class StoreCommissionHistoryEntity {
|
|
15
|
+
_id: Types.ObjectId | string;
|
|
16
|
+
/** @description 스토어 아이디 */
|
|
17
|
+
storeId: Types.ObjectId | string;
|
|
18
|
+
/** @description 셀러 아이디 */
|
|
19
|
+
sellerId: Types.ObjectId | string;
|
|
20
|
+
/** @description 이전 수수료 비율 */
|
|
21
|
+
previousRate?: number;
|
|
22
|
+
/** @description 새 수수료 비율 */
|
|
23
|
+
newRate?: number;
|
|
24
|
+
/** @description 이전 수수료 정책 유형 */
|
|
25
|
+
previousPolicyType?: CommissionPolicyTypeEnum;
|
|
26
|
+
/** @description 새 수수료 정책 유형 */
|
|
27
|
+
newPolicyType?: CommissionPolicyTypeEnum;
|
|
28
|
+
/** @description 이유 코드 */
|
|
29
|
+
changeReasonCode: CommissionchangeReasonCodeTypeEnum;
|
|
30
|
+
/** @description 이유 상세 */
|
|
31
|
+
changeReasonDetail: string;
|
|
32
|
+
/** @description 관리자 아이디 */
|
|
33
|
+
managerId?: Types.ObjectId | string;
|
|
34
|
+
/** @description 관리자 이름 */
|
|
35
|
+
managerName?: string;
|
|
36
|
+
/** @description 이전 수수료 비율 기간 */
|
|
37
|
+
previousCommissionRatePeriodInfos?: CommissionRatePeriodInfo[];
|
|
38
|
+
/** @description 새 수수료 비율 기간 */
|
|
39
|
+
newCommissionRatePeriodInfos?: CommissionRatePeriodInfo[];
|
|
40
|
+
/** @description 등록 일자 */
|
|
41
|
+
regDate: Date;
|
|
42
|
+
}
|
|
43
|
+
export { StoreCommissionHistoryEntity };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreCommissionHistoryEntity = exports.CommissionchangeReasonCodeTypeEnum = void 0;
|
|
4
|
+
var CommissionchangeReasonCodeTypeEnum;
|
|
5
|
+
(function (CommissionchangeReasonCodeTypeEnum) {
|
|
6
|
+
/** @description 기본 수수료 정책 적용 (Default) */
|
|
7
|
+
CommissionchangeReasonCodeTypeEnum["SET_DEFAULT_POLICY"] = "SET_DEFAULT_POLICY";
|
|
8
|
+
/** @description 개별 협의 수수료 적용 (Custom) */
|
|
9
|
+
CommissionchangeReasonCodeTypeEnum["SET_CUSTOM_POLICY"] = "SET_CUSTOM_POLICY";
|
|
10
|
+
/** @description 초기 설정 */
|
|
11
|
+
CommissionchangeReasonCodeTypeEnum["INITIAL_SETUP"] = "INITIAL_SETUP";
|
|
12
|
+
/** @description 기간 수수료 등록/수정 */
|
|
13
|
+
CommissionchangeReasonCodeTypeEnum["UPSERT_PERIOD_COMMISSION"] = "UPSERT_PERIOD_COMMISSION";
|
|
14
|
+
})(CommissionchangeReasonCodeTypeEnum || (exports.CommissionchangeReasonCodeTypeEnum = CommissionchangeReasonCodeTypeEnum = {}));
|
|
15
|
+
/** @description 셀러 수수료 정보 변경 이력 */
|
|
16
|
+
class StoreCommissionHistoryEntity {
|
|
17
|
+
}
|
|
18
|
+
exports.default = StoreCommissionHistoryEntity;
|
|
19
|
+
exports.StoreCommissionHistoryEntity = StoreCommissionHistoryEntity;
|
package/store/store.entity.d.ts
CHANGED
|
@@ -204,6 +204,41 @@ export interface StorePenaltyPledge {
|
|
|
204
204
|
/** @description 패널티 등록 시간 */
|
|
205
205
|
regDate: Date;
|
|
206
206
|
}
|
|
207
|
+
export declare enum CommissionPolicyTypeEnum {
|
|
208
|
+
/** @description 기본 수수료 비율 */
|
|
209
|
+
DEFAULT = "DEFAULT",
|
|
210
|
+
/** @description 커스텀 수수료 비율 */
|
|
211
|
+
CUSTOM = "CUSTOM"
|
|
212
|
+
}
|
|
213
|
+
export interface CommissionRatePeriodInfo {
|
|
214
|
+
/** @description 수수료 비율 */
|
|
215
|
+
commissionRate: number;
|
|
216
|
+
/** @description 수수료 비율 적용 시작 일자 */
|
|
217
|
+
startDate: Date;
|
|
218
|
+
/** @description 수수료 비율 적용 종료 일자 */
|
|
219
|
+
endDate: Date;
|
|
220
|
+
}
|
|
221
|
+
/** @description 셀러 수수료 정보 */
|
|
222
|
+
export interface StoreCommissionInfo {
|
|
223
|
+
/** @description 셀러 수수료 비율 */
|
|
224
|
+
commissionRate: number;
|
|
225
|
+
/** @description 이전 수수료 비율 */
|
|
226
|
+
previousRate?: number;
|
|
227
|
+
/** @description 적용 일자 */
|
|
228
|
+
effectiveDate?: Date;
|
|
229
|
+
/** @description 수수료 비율 기간 */
|
|
230
|
+
commissionRatePeriodInfos?: CommissionRatePeriodInfo[];
|
|
231
|
+
/** @description 수수료 정책 유형 */
|
|
232
|
+
commissionPolicyType: CommissionPolicyTypeEnum;
|
|
233
|
+
/** @description 마지막 수정 일자 */
|
|
234
|
+
lastModifiedDate?: Date;
|
|
235
|
+
/** @description 마지막 수정 관리자 아이디 */
|
|
236
|
+
lastModifiedManagerId?: Types.ObjectId | string;
|
|
237
|
+
/** @description 수정 이유 */
|
|
238
|
+
modifyReason?: string;
|
|
239
|
+
/** @description 등록 일자 */
|
|
240
|
+
regDate: Date;
|
|
241
|
+
}
|
|
207
242
|
/** store schema inteface (아직 선언하다 말았음) */
|
|
208
243
|
export default class StoreEntity {
|
|
209
244
|
_id: Types.ObjectId | string;
|
|
@@ -235,5 +270,7 @@ export default class StoreEntity {
|
|
|
235
270
|
lastProceedsGoalSettleDate?: Date;
|
|
236
271
|
/** @description 셀러 패널티 서약 */
|
|
237
272
|
penaltyPledge?: StorePenaltyPledge;
|
|
273
|
+
/** @description 셀러 수수료 정보 */
|
|
274
|
+
commissionInfo?: StoreCommissionInfo;
|
|
238
275
|
}
|
|
239
276
|
export { StoreEntity };
|
package/store/store.entity.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StoreEntity = exports.SupermarketInfo = exports.LastBeforeAccountInfo = exports.ProceedsMethodInfo = exports.BusinessInfo = exports.ZeroRateVatInfo = exports.ForeignBusinessInfo = exports.PrivateSellerInfo = exports.DomesticBusinessInfo = exports.ZeroRateVatProcessEnum = exports.IndividualTaxationTypeEnum = exports.StoreAccount = exports.BUSINESS_INFO_NOT_MATCH_REASONS = exports.BusinessInfoVerifiProcessEnum = exports.BusinessInfoSellerTypeEnum = exports.ProceedsMethodTypeEnum = exports.StoreLastActivityTypeEnum = void 0;
|
|
3
|
+
exports.StoreEntity = exports.CommissionPolicyTypeEnum = exports.SupermarketInfo = exports.LastBeforeAccountInfo = exports.ProceedsMethodInfo = exports.BusinessInfo = exports.ZeroRateVatInfo = exports.ForeignBusinessInfo = exports.PrivateSellerInfo = exports.DomesticBusinessInfo = exports.ZeroRateVatProcessEnum = exports.IndividualTaxationTypeEnum = exports.StoreAccount = exports.BUSINESS_INFO_NOT_MATCH_REASONS = exports.BusinessInfoVerifiProcessEnum = exports.BusinessInfoSellerTypeEnum = exports.ProceedsMethodTypeEnum = exports.StoreLastActivityTypeEnum = void 0;
|
|
4
4
|
var StoreLastActivityTypeEnum;
|
|
5
5
|
(function (StoreLastActivityTypeEnum) {
|
|
6
6
|
// 상품 등록
|
|
@@ -93,6 +93,13 @@ exports.LastBeforeAccountInfo = LastBeforeAccountInfo;
|
|
|
93
93
|
class SupermarketInfo {
|
|
94
94
|
}
|
|
95
95
|
exports.SupermarketInfo = SupermarketInfo;
|
|
96
|
+
var CommissionPolicyTypeEnum;
|
|
97
|
+
(function (CommissionPolicyTypeEnum) {
|
|
98
|
+
/** @description 기본 수수료 비율 */
|
|
99
|
+
CommissionPolicyTypeEnum["DEFAULT"] = "DEFAULT";
|
|
100
|
+
/** @description 커스텀 수수료 비율 */
|
|
101
|
+
CommissionPolicyTypeEnum["CUSTOM"] = "CUSTOM";
|
|
102
|
+
})(CommissionPolicyTypeEnum || (exports.CommissionPolicyTypeEnum = CommissionPolicyTypeEnum = {}));
|
|
96
103
|
/** store schema inteface (아직 선언하다 말았음) */
|
|
97
104
|
class StoreEntity {
|
|
98
105
|
}
|