@yolo-croket-dev/entity-v2 0.2.107 → 0.2.109-sj

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.
@@ -12,4 +12,8 @@ export interface AttributionHistoryEntity {
12
12
  pInfos: AttributionHistoryPurchasedInfo[];
13
13
  regDate: Date;
14
14
  histories: AttributionHistoryTouch[];
15
+ firstExternalTouch?: AttributionHistoryTouch;
16
+ lastExternalTouch?: AttributionHistoryTouch;
17
+ firstInternalTouch?: AttributionHistoryTouch;
18
+ lastInternalTouch?: AttributionHistoryTouch;
15
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.107",
3
+ "version": "0.2.109-sj",
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
+ }
package/store/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './store-by-seller-id.entity';
3
3
  export * from './abroad-account.entity';
4
4
  export * from './store-for-toss-payment.entity';
5
5
  export * from './domestic-account-store.entity';
6
+ export * from './store-commission-history.entity';
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,39 @@
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
+ }
11
+ /** @description 셀러 수수료 정보 변경 이력 */
12
+ export default class StoreCommissionHistoryEntity {
13
+ _id: Types.ObjectId | string;
14
+ /** @description 스토어 아이디 */
15
+ storeId: Types.ObjectId | string;
16
+ /** @description 셀러 아이디 */
17
+ sellerId: Types.ObjectId | string;
18
+ /** @description 이전 수수료 비율 */
19
+ previousRate?: number;
20
+ /** @description 새 수수료 비율 */
21
+ newRate?: number;
22
+ /** @description 이전 수수료 정책 유형 */
23
+ previousPolicyType?: CommissionPolicyTypeEnum;
24
+ /** @description 새 수수료 정책 유형 */
25
+ newPolicyType?: CommissionPolicyTypeEnum;
26
+ /** @description 이유 코드 */
27
+ changeReasonCode: CommissionchangeReasonCodeTypeEnum;
28
+ /** @description 이유 상세 */
29
+ changeReasonDetail: string;
30
+ /** @description 관리자 아이디 */
31
+ managerId?: Types.ObjectId | string;
32
+ /** @description 이전 수수료 비율 기간 */
33
+ previousCommissionRatePeriodInfos?: CommissionRatePeriodInfo[];
34
+ /** @description 새 수수료 비율 기간 */
35
+ newCommissionRatePeriodInfos?: CommissionRatePeriodInfo[];
36
+ /** @description 등록 일자 */
37
+ regDate: Date;
38
+ }
39
+ export { StoreCommissionHistoryEntity };
@@ -0,0 +1,17 @@
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
+ })(CommissionchangeReasonCodeTypeEnum || (exports.CommissionchangeReasonCodeTypeEnum = CommissionchangeReasonCodeTypeEnum = {}));
13
+ /** @description 셀러 수수료 정보 변경 이력 */
14
+ class StoreCommissionHistoryEntity {
15
+ }
16
+ exports.default = StoreCommissionHistoryEntity;
17
+ exports.StoreCommissionHistoryEntity = StoreCommissionHistoryEntity;
@@ -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 };
@@ -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
  }