@yolo-croket-dev/entity-v2 0.0.94 → 0.0.96
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/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/partial-refund/partial-refund.entity.d.ts +3 -0
- package/purchase-receipt/index.d.ts +1 -0
- package/purchase-receipt/index.js +17 -0
- package/purchase-receipt/purchase-receipt.entity.d.ts +46 -0
- package/purchase-receipt/purchase-receipt.entity.js +2 -0
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -37,3 +37,4 @@ __exportStar(require("./related-store-item"), exports);
|
|
|
37
37
|
__exportStar(require("./partial-refund"), exports);
|
|
38
38
|
__exportStar(require("./purchased-info"), exports);
|
|
39
39
|
__exportStar(require("./time-deal"), exports);
|
|
40
|
+
__exportStar(require("./purchase-receipt"), exports);
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StoreItemOptionTypeEnum } from '@yolo-croket-dev/entity/src/store-item';
|
|
1
2
|
import PurchasedInfoEntity from '../purchased-info/purchased-info.entity';
|
|
2
3
|
export declare enum PartialRefundAuthorTypeEnum {
|
|
3
4
|
/** 구매자 */
|
|
@@ -40,8 +41,10 @@ export declare enum PartialRefundProcessEnum {
|
|
|
40
41
|
export interface RefundOption {
|
|
41
42
|
optionName: string;
|
|
42
43
|
refundNums: number;
|
|
44
|
+
optionNameList?: string[];
|
|
43
45
|
}
|
|
44
46
|
export interface RefundOptionInfo {
|
|
47
|
+
pOptionType?: StoreItemOptionTypeEnum;
|
|
45
48
|
refundOptionList: RefundOption[];
|
|
46
49
|
}
|
|
47
50
|
export interface PartialRefundProcessingInfo {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './purchase-receipt.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("./purchase-receipt.entity"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { PurchasedProcessV2Enum } from '../purchased-info';
|
|
3
|
+
export interface PurchaseReceiptPurchasedInfo {
|
|
4
|
+
/** @description 결제 아이디 */
|
|
5
|
+
PInfoId: Types.ObjectId | string;
|
|
6
|
+
/** @description 셀러 아이디 */
|
|
7
|
+
sellerId: Types.ObjectId | string;
|
|
8
|
+
/** @description 프로세스 */
|
|
9
|
+
process: PurchasedProcessV2Enum;
|
|
10
|
+
}
|
|
11
|
+
export interface PurchaseReceiptReceiveInfo {
|
|
12
|
+
/** @description 수령인 이름 */
|
|
13
|
+
buyerName: string;
|
|
14
|
+
/** @description 수령인 핸드폰 번호 */
|
|
15
|
+
buyerPhoneNumber: string;
|
|
16
|
+
/** @description tnfuddls 우편번호 */
|
|
17
|
+
buyerPostCode?: string;
|
|
18
|
+
/** @description 수령인 주소 */
|
|
19
|
+
buyerAddress1?: string;
|
|
20
|
+
/** @description 수매자 주소 2 */
|
|
21
|
+
buyerAddress2?: string;
|
|
22
|
+
/** @description 수령인 직거래 주소 */
|
|
23
|
+
buyerDirectAddress?: string;
|
|
24
|
+
/** @description 개인통관고유부호번호 */
|
|
25
|
+
PCCC: string;
|
|
26
|
+
/** @description 요청사항 */
|
|
27
|
+
requirement?: string;
|
|
28
|
+
}
|
|
29
|
+
export default interface PurchaseReceiptEntity {
|
|
30
|
+
_id: Types.ObjectId | string;
|
|
31
|
+
/** @description 해당 결제 정보 구매자 아이디 */
|
|
32
|
+
buyerId: Types.ObjectId | string;
|
|
33
|
+
/** @description 결제 정보 */
|
|
34
|
+
purchasedInfos: PurchaseReceiptPurchasedInfo[];
|
|
35
|
+
/** @description 결제번호 */
|
|
36
|
+
paymentNumber: string;
|
|
37
|
+
/** @description 결제수단 */
|
|
38
|
+
paymentMethod: string;
|
|
39
|
+
/** @description 저장일 */
|
|
40
|
+
regDate: Date;
|
|
41
|
+
/** @description 결제일 */
|
|
42
|
+
paymentDate: Date;
|
|
43
|
+
/** @description 정산 정보 */
|
|
44
|
+
receiveInfo: PurchaseReceiptReceiveInfo;
|
|
45
|
+
}
|
|
46
|
+
export { PurchaseReceiptEntity };
|