@yolo-croket-dev/entity-v2 0.0.41-hj-03 → 0.0.41-hj-05

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.41-hj-03",
3
+ "version": "0.0.41-hj-05",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -1,3 +1,4 @@
1
+ import { DeliveryData } from '../purchased-info/purchased-info.entity';
1
2
  import { PartialRefundEntity } from './partial-refund.entity';
2
3
  export interface PartialRefundForAdminEntity extends PartialRefundEntity {
3
4
  /** @description 결제아이디 */
@@ -38,7 +39,7 @@ export interface PartialRefundForAdminEntity extends PartialRefundEntity {
38
39
  isInsurance: boolean;
39
40
  /** @description 총 결제 금액 */
40
41
  paidPrice: number;
41
- /** @description 결제 프로세스 (현재) */
42
+ /** @description 결제 프로세스 (현재) - lookup purchasedinfo */
42
43
  paymentProcess: string;
43
44
  /** @description 부분환불 요청 당시 결제 프로세스 */
44
45
  pastPaymentProcess: string;
@@ -47,4 +48,8 @@ export interface PartialRefundForAdminEntity extends PartialRefundEntity {
47
48
  imp_uid: string;
48
49
  /** @description 결제일 */
49
50
  paymentDate: Date;
51
+ /** @description 배송정보 */
52
+ deliveryData: DeliveryData;
53
+ /** @description 사용한 크레딧 */
54
+ usedCredit: number;
50
55
  }
@@ -1,4 +1,4 @@
1
- import PurchasedInfoEntity, { PInfoPOptionInfo } from '../purchased-info/purchased-info.entity';
1
+ import PurchasedInfoEntity from '../purchased-info/purchased-info.entity';
2
2
  import { AuthorTypeEnum } from '../refund';
3
3
  export declare enum PartialRefundTypeEnum {
4
4
  /** @description 특정 옵션/수량 환불 */
@@ -34,6 +34,13 @@ export declare enum ReturnFeeBearerEnum {
34
34
  BUYER = 0,
35
35
  SELLER = 1
36
36
  }
37
+ export interface refundOption {
38
+ optionName: string;
39
+ refundNums: number;
40
+ }
41
+ export interface RefundOptionInfo {
42
+ refundOptionList: refundOption[];
43
+ }
37
44
  export interface PartialRefundEntity {
38
45
  _id: string;
39
46
  /** @description 환불 종류 */
@@ -53,7 +60,7 @@ export interface PartialRefundEntity {
53
60
  /** @description 협의 완료 여부 */
54
61
  negotiated: boolean;
55
62
  /** @description 환불할 옵션/수량 */
56
- refundOptionInfo?: PInfoPOptionInfo;
63
+ refundOptionInfo?: RefundOptionInfo;
57
64
  /** @description 환불할 금액 */
58
65
  refundPrice: number;
59
66
  /** @description 부분 환불 요청주체 */
@@ -1,11 +1,6 @@
1
- import PurchasedInfoEntity from './purchased-info.entity';
2
1
  import { AuthorTypeEnum } from '../refund';
3
- export type PurchasedInfoForPartialRefundEntity = Pick<PurchasedInfoEntity, '_id' | 'option' | 'pOptionInfo'> & {
4
- /** pastStoreItemInfo.itemImg[0] */
5
- itemImg: string;
6
- /** pastStoreItemInfo.itemPrice */
7
- itemPrice: number;
8
- /** pastStoreItemInfo.itemPriceForBuyer */
9
- itemPriceForBuyer: number;
2
+ import PurchasedInfoEntity from './purchased-info.entity';
3
+ export type PurchasedInfoForPartialRefundEntity = Pick<PurchasedInfoEntity, '_id' | 'pastName' | 'pastPrice' | 'pastPriceForBuyer' | 'pOptionInfo' | 'paidPrice'> & {
4
+ process: string;
10
5
  authorType: AuthorTypeEnum;
11
6
  };