@yolo-croket-dev/entity-v2 0.0.94 → 0.0.95

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 CHANGED
@@ -21,3 +21,4 @@ export * from './related-store-item';
21
21
  export * from './partial-refund';
22
22
  export * from './purchased-info';
23
23
  export * from './time-deal';
24
+ export * from './purchase-receipt';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -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 };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });