@yolo-croket-dev/entity-v2 0.2.129-jun.6 → 0.2.130
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 -0
- package/bundle-purchased-info/bundle-purchased-info.entity.d.ts +0 -2
- package/data-payment-method/data-payment-method.entity.d.ts +1 -2
- package/data-payment-method/data-payment-method.entity.js +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +1 -1
- package/purchased-info/purchased-info-for-seller.entity.d.ts +1 -1
- package/purchased-info/purchased-info.entity/p-info-tosspayments-refund.vo.d.ts +1 -1
- package/purchased-info/purchased-info.entity.d.ts +1 -114
- package/purchased-info/purchased-info.entity.js +1 -38
- package/purchased-info-log/purchased-info-log.entity.d.ts +1 -20
- package/purchased-info-log/purchased-info-log.entity.js +0 -22
- package/user/index.d.ts +0 -1
- package/user/index.js +0 -1
- package/nicepay-billing-log/index.d.ts +0 -1
- package/nicepay-billing-log/index.js +0 -17
- package/nicepay-billing-log/nicepay-billing-log.entity.d.ts +0 -104
- package/nicepay-billing-log/nicepay-billing-log.entity.js +0 -15
- package/user/user-card-billing.entity.d.ts +0 -58
- package/user/user-card-billing.entity.js +0 -9
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
-
import { PInfoTypeEnum } from '../purchased-info/purchased-info.entity';
|
|
3
2
|
export interface PInfoOfBundle {
|
|
4
3
|
PInfoId: Types.ObjectId;
|
|
5
4
|
publicId: string;
|
|
@@ -10,7 +9,6 @@ export interface PInfoOfBundle {
|
|
|
10
9
|
/** 해당 데이터는 계속 변동 될 수 있음 */
|
|
11
10
|
process: string;
|
|
12
11
|
process_v2?: string;
|
|
13
|
-
pInfoType?: PInfoTypeEnum;
|
|
14
12
|
}
|
|
15
13
|
export interface PastIsPrepay {
|
|
16
14
|
PInfoId: Types.ObjectId;
|
|
@@ -4,8 +4,7 @@ export { PayTryLogPayMethodTypeEnum };
|
|
|
4
4
|
export declare enum DataPaymentMethodPayTypeEnum {
|
|
5
5
|
'ask' = "ask",
|
|
6
6
|
'store' = "store",
|
|
7
|
-
'store-cart' = "store-cart"
|
|
8
|
-
'store-reservation' = "store-reservation"
|
|
7
|
+
'store-cart' = "store-cart"
|
|
9
8
|
}
|
|
10
9
|
export interface DataPaymentMethodEntity {
|
|
11
10
|
_id: Types.ObjectId;
|
|
@@ -8,5 +8,4 @@ var DataPaymentMethodPayTypeEnum;
|
|
|
8
8
|
DataPaymentMethodPayTypeEnum["ask"] = "ask";
|
|
9
9
|
DataPaymentMethodPayTypeEnum["store"] = "store";
|
|
10
10
|
DataPaymentMethodPayTypeEnum["store-cart"] = "store-cart";
|
|
11
|
-
DataPaymentMethodPayTypeEnum["store-reservation"] = "store-reservation";
|
|
12
11
|
})(DataPaymentMethodPayTypeEnum || (exports.DataPaymentMethodPayTypeEnum = DataPaymentMethodPayTypeEnum = {}));
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -78,4 +78,3 @@ __exportStar(require("./buyma-item.modules"), exports);
|
|
|
78
78
|
__exportStar(require("./campaign-store-item"), exports);
|
|
79
79
|
__exportStar(require("./campaign-link"), exports);
|
|
80
80
|
__exportStar(require("./campaign-influencer"), exports);
|
|
81
|
-
__exportStar(require("./nicepay-billing-log"), exports);
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export default interface PurchasedInfoForSeller {
|
|
|
10
10
|
}
|
|
11
11
|
export type RefundInfoPickedForSeller = Pick<RefundEntity, '_id' | 'reg_date' | 'acceptInfo' | 'process' | '_authorType' | 'openInfo' | 'refundVersion' | 'returnInfo' | 'rejectInfo' | 'PInfoLastProcess'>;
|
|
12
12
|
export type UserInfoPickedForSeller = Pick<UserEntity, '_id' | 'username' | 'phoneCountry' | 'phoneNumber' | 'photos' | 'subContactList'>;
|
|
13
|
-
export type PInfoPickedForSeller = Pick<PurchasedInfoEntity, '_id' | 'publicId' | 'process' | 'pOptionInfo' | 'proceedsInfo' | 'itemId' | 'pastName' | 'pastImg' | 'pastPrice' | 'deliveryMethod' | 'deliveryData' | 'paymentDate' | 'pastSellingInfo' | 'PCCCInfo' | 'cancelInfo' | 'requirement' | 'originPrice' | 'buyerInfo' | 'lastPartialRefundProcess' | 'lastPartialRefundId' | 'waitingReceiveInfo' | 'cancelledDate' | 'process_v2' | 'isPOptionChanged'
|
|
13
|
+
export type PInfoPickedForSeller = Pick<PurchasedInfoEntity, '_id' | 'publicId' | 'process' | 'pOptionInfo' | 'proceedsInfo' | 'itemId' | 'pastName' | 'pastImg' | 'pastPrice' | 'deliveryMethod' | 'deliveryData' | 'paymentDate' | 'pastSellingInfo' | 'PCCCInfo' | 'cancelInfo' | 'requirement' | 'originPrice' | 'buyerInfo' | 'lastPartialRefundProcess' | 'lastPartialRefundId' | 'waitingReceiveInfo' | 'cancelledDate' | 'process_v2' | 'isPOptionChanged'>;
|
|
14
14
|
export type PurchasedInfoForSellerDetail = {
|
|
15
15
|
pInfo: PInfoPickedForSeller;
|
|
16
16
|
buyerUserInfo: UserInfoPickedForSeller;
|
|
@@ -1,38 +1,8 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
2
|
import { SelectionFrameDataTypeEnum } from '@yolo-croket-dev/entity/src/selection-frame-data';
|
|
3
3
|
import { SettleVersionEnum } from '@yolo-croket-dev/entity/src/settle';
|
|
4
|
-
import { PayTryLogPastReservationInfo } from '@yolo-croket-dev/entity/src/pay-try-log/pay-try-log.entity';
|
|
5
|
-
import { NicepayBillingApproveResponse } from '../nicepay-billing-log/nicepay-billing-log.entity';
|
|
6
4
|
import { PartialRefundProcessEnum } from '../partial-refund';
|
|
7
5
|
import { PurchasedInfoTosspaymentsRefund } from './purchased-info.entity/p-info-tosspayments-refund.vo';
|
|
8
|
-
export declare enum CardQuotaEnum {
|
|
9
|
-
일시불 = "00",
|
|
10
|
-
'1개월' = "01",
|
|
11
|
-
'2개월' = "02",
|
|
12
|
-
'3개월' = "03",
|
|
13
|
-
'4개월' = "04",
|
|
14
|
-
'5개월' = "05",
|
|
15
|
-
'6개월' = "06",
|
|
16
|
-
'7개월' = "07",
|
|
17
|
-
'8개월' = "08",
|
|
18
|
-
'9개월' = "09",
|
|
19
|
-
'10개월' = "10",
|
|
20
|
-
'11개월' = "11",
|
|
21
|
-
'12개월' = "12"
|
|
22
|
-
}
|
|
23
|
-
export declare enum ReservationCancelReasonEnum {
|
|
24
|
-
/** 유저 직접 취소 */
|
|
25
|
-
cancelByUser = "cancelByUser",
|
|
26
|
-
/** 재고 부족으로 매칭 실패 (관리자 선택) */
|
|
27
|
-
matchingFailedStockByAdmin = "matchingFailedStockByAdmin",
|
|
28
|
-
/** 결제 실패로 매칭 실패 (관리자 선택) */
|
|
29
|
-
matchingFailedPaymentByAdmin = "matchingFailedPaymentByAdmin"
|
|
30
|
-
}
|
|
31
|
-
export declare enum PInfoTypeEnum {
|
|
32
|
-
normal = "normal",
|
|
33
|
-
card = "card",
|
|
34
|
-
reservation = "reservation"
|
|
35
|
-
}
|
|
36
6
|
export declare enum POptionTypeEnum {
|
|
37
7
|
single = "single",
|
|
38
8
|
group = "group"
|
|
@@ -50,7 +20,6 @@ export declare enum UserTypeEnum {
|
|
|
50
20
|
cron = "cron"
|
|
51
21
|
}
|
|
52
22
|
export declare enum PurchasedProcessEnum {
|
|
53
|
-
예약중 = "reserving",
|
|
54
23
|
입금전 = "beforeDeposit",
|
|
55
24
|
주문_대기중 = "waitingOrder",
|
|
56
25
|
발송전 = "beforeDelivery",
|
|
@@ -61,7 +30,6 @@ export declare enum PurchasedProcessEnum {
|
|
|
61
30
|
취소됨 = "cancelled"
|
|
62
31
|
}
|
|
63
32
|
export declare enum PurchasedProcessV2Enum {
|
|
64
|
-
예약중 = "reserving",
|
|
65
33
|
입금전 = "beforeDeposit",
|
|
66
34
|
주문_대기중 = "waitingOrder",
|
|
67
35
|
재고_확인중 = "checkingStock",
|
|
@@ -70,11 +38,7 @@ export declare enum PurchasedProcessV2Enum {
|
|
|
70
38
|
수령확인_대기중 = "waitingReceive",
|
|
71
39
|
완료 = "finished",
|
|
72
40
|
환불_처리중 = "refunding",
|
|
73
|
-
취소됨 = "cancelled"
|
|
74
|
-
/** 예약 매칭 실패로 취소됨 */
|
|
75
|
-
cancelledByReserveMatchFailed = "cancelledByReserveMatchFailed",
|
|
76
|
-
/** 예약 취소 요청으로 취소됨 */
|
|
77
|
-
cancelledByReserveCancelAsk = "cancelledByReserveCancelAsk"
|
|
41
|
+
취소됨 = "cancelled"
|
|
78
42
|
}
|
|
79
43
|
export interface PastSellingInfoShippingTermsInfo {
|
|
80
44
|
/** 조건 배송 종류 <shippingFeeBySection, > */
|
|
@@ -759,46 +723,6 @@ export interface PInfoVBankInfo {
|
|
|
759
723
|
reqDate: Date;
|
|
760
724
|
isAutoExpired?: boolean;
|
|
761
725
|
}
|
|
762
|
-
export interface NicepayBillingCancelApiResponse {
|
|
763
|
-
/** 결과 코드 (2001: 성공) */
|
|
764
|
-
ResultCode: string;
|
|
765
|
-
/** 결과 메시지 */
|
|
766
|
-
ResultMsg: string;
|
|
767
|
-
/** 취소 금액 */
|
|
768
|
-
CancelAmt: string;
|
|
769
|
-
/** 가맹점 ID */
|
|
770
|
-
MID: string;
|
|
771
|
-
/** 가맹점 주문번호 */
|
|
772
|
-
Moid: string;
|
|
773
|
-
/** 위변조 검증 데이터 hex(sha256(TID + MID + CancelAmt + MerchantKey)) */
|
|
774
|
-
Signature: string;
|
|
775
|
-
/** 결제수단 (CARD, BANK, VBANK, CELLPHONE) */
|
|
776
|
-
PayMethod?: string;
|
|
777
|
-
/** 거래 ID */
|
|
778
|
-
TID?: string;
|
|
779
|
-
/** 취소 일자 (YYYYMMDD) */
|
|
780
|
-
CancelDate?: string;
|
|
781
|
-
/** 취소 시각 (HHmmss) */
|
|
782
|
-
CancelTime?: string;
|
|
783
|
-
/** 취소번호 */
|
|
784
|
-
CancelNum?: string;
|
|
785
|
-
/** 취소 후 잔액 */
|
|
786
|
-
RemainAmt?: string;
|
|
787
|
-
/** 가맹점 여분필드 */
|
|
788
|
-
MallReserved?: string;
|
|
789
|
-
}
|
|
790
|
-
/** @description 나이스페이 빌링 환불 정보 */
|
|
791
|
-
export interface PurchasedInfoNicepayBillingRefundInfo {
|
|
792
|
-
isRefund: boolean;
|
|
793
|
-
/** 성공 데이터 */
|
|
794
|
-
cancelSuccessResponses: NicepayBillingCancelApiResponse[];
|
|
795
|
-
/** 실패 데이터 */
|
|
796
|
-
cancelFailResponses: NicepayBillingCancelApiResponse[];
|
|
797
|
-
/** 실패 사유 */
|
|
798
|
-
lastFailReason?: string;
|
|
799
|
-
/** 해결 사유 (오류 후 관리자가 승인 처리 시 남기는 데이터) */
|
|
800
|
-
resolveReason?: string;
|
|
801
|
-
}
|
|
802
726
|
/** PInfo schema inteface (아직 선언하다 말았음) */
|
|
803
727
|
export default interface PurchasedInfoEntity {
|
|
804
728
|
_id: Types.ObjectId | string;
|
|
@@ -869,8 +793,6 @@ export default interface PurchasedInfoEntity {
|
|
|
869
793
|
bundlePInfo: BundleInfo;
|
|
870
794
|
IMPRefundInfo?: PInfoIMPRefundInfo;
|
|
871
795
|
tosspaymentsRefund?: PurchasedInfoTosspaymentsRefund;
|
|
872
|
-
/** @description 나이스페이 빌링 환불 정보 */
|
|
873
|
-
nicepayBillingRefundInfo?: PurchasedInfoNicepayBillingRefundInfo;
|
|
874
796
|
pastStoreItemInfo?: PastStoreItemInfo;
|
|
875
797
|
pastSellingInfo?: PastSellingInfo;
|
|
876
798
|
autoReceiveTime?: Date;
|
|
@@ -933,41 +855,6 @@ export default interface PurchasedInfoEntity {
|
|
|
933
855
|
};
|
|
934
856
|
/** @description 어트리뷰션 히스토리 아이디 */
|
|
935
857
|
attributionHistoryId?: Types.ObjectId | string;
|
|
936
|
-
pInfoType?: PInfoTypeEnum;
|
|
937
|
-
reservationInfo?: PurchasedReservationInfo;
|
|
938
|
-
}
|
|
939
|
-
export interface PurchasedReservationInfo {
|
|
940
|
-
/** 결제 여부 */
|
|
941
|
-
isPaid: boolean;
|
|
942
|
-
/** 예약 순서 */
|
|
943
|
-
reservationOrder: number;
|
|
944
|
-
/** 당시 상품 정보의 예약 정보 */
|
|
945
|
-
pastReservationInfo: PayTryLogPastReservationInfo;
|
|
946
|
-
/** 예약 일시 */
|
|
947
|
-
reservedDate: Date;
|
|
948
|
-
/** 결제 확정 일시 (빌링키 결제 성공 시점) */
|
|
949
|
-
paymentConfirmedDate?: Date;
|
|
950
|
-
/** 예약 취소일시 */
|
|
951
|
-
cancelledDate?: Date;
|
|
952
|
-
/** 예약 취소 사유 (cancelled 상태일 때 상세 구분용) */
|
|
953
|
-
cancelReason?: ReservationCancelReasonEnum;
|
|
954
|
-
/** 결제에 사용된 빌링 데이터 ID */
|
|
955
|
-
userCardBillingId: Types.ObjectId;
|
|
956
|
-
/** 1차 결제 실패 일시 (재시도 기한 계산 기준) */
|
|
957
|
-
firstPaymentFailedDate?: Date;
|
|
958
|
-
/** 재시도 기한 만료일 (firstPaymentFailedDate + 24h) */
|
|
959
|
-
retryDeadline?: Date;
|
|
960
|
-
/** 결제 실패 이력 */
|
|
961
|
-
paymentFailureLogs?: ReservationPaymentFailureLog[];
|
|
962
|
-
/** 카드 할부 개월 수 */
|
|
963
|
-
cardQuota: CardQuotaEnum;
|
|
964
|
-
/** 결제 승인 성공 응답 */
|
|
965
|
-
approveSuccessResponse?: NicepayBillingApproveResponse;
|
|
966
|
-
}
|
|
967
|
-
export interface ReservationPaymentFailureLog {
|
|
968
|
-
reason: string;
|
|
969
|
-
failedDate: Date;
|
|
970
|
-
userCardBillingId: Types.ObjectId;
|
|
971
858
|
}
|
|
972
859
|
export interface PurchasedInfoPastStoreInfo {
|
|
973
860
|
storeTitle: string;
|
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InsuranceProcessTypeEnum = exports.PastSelectionFrameDataInfo = exports.PurchasedProcessV2Enum = exports.PurchasedProcessEnum = exports.UserTypeEnum = exports.TaxInvoiceIssueProcessEnum = exports.POptionTypeEnum =
|
|
4
|
-
var CardQuotaEnum;
|
|
5
|
-
(function (CardQuotaEnum) {
|
|
6
|
-
CardQuotaEnum["\uC77C\uC2DC\uBD88"] = "00";
|
|
7
|
-
CardQuotaEnum["1\uAC1C\uC6D4"] = "01";
|
|
8
|
-
CardQuotaEnum["2\uAC1C\uC6D4"] = "02";
|
|
9
|
-
CardQuotaEnum["3\uAC1C\uC6D4"] = "03";
|
|
10
|
-
CardQuotaEnum["4\uAC1C\uC6D4"] = "04";
|
|
11
|
-
CardQuotaEnum["5\uAC1C\uC6D4"] = "05";
|
|
12
|
-
CardQuotaEnum["6\uAC1C\uC6D4"] = "06";
|
|
13
|
-
CardQuotaEnum["7\uAC1C\uC6D4"] = "07";
|
|
14
|
-
CardQuotaEnum["8\uAC1C\uC6D4"] = "08";
|
|
15
|
-
CardQuotaEnum["9\uAC1C\uC6D4"] = "09";
|
|
16
|
-
CardQuotaEnum["10\uAC1C\uC6D4"] = "10";
|
|
17
|
-
CardQuotaEnum["11\uAC1C\uC6D4"] = "11";
|
|
18
|
-
CardQuotaEnum["12\uAC1C\uC6D4"] = "12";
|
|
19
|
-
})(CardQuotaEnum || (exports.CardQuotaEnum = CardQuotaEnum = {}));
|
|
20
|
-
var ReservationCancelReasonEnum;
|
|
21
|
-
(function (ReservationCancelReasonEnum) {
|
|
22
|
-
/** 유저 직접 취소 */
|
|
23
|
-
ReservationCancelReasonEnum["cancelByUser"] = "cancelByUser";
|
|
24
|
-
/** 재고 부족으로 매칭 실패 (관리자 선택) */
|
|
25
|
-
ReservationCancelReasonEnum["matchingFailedStockByAdmin"] = "matchingFailedStockByAdmin";
|
|
26
|
-
/** 결제 실패로 매칭 실패 (관리자 선택) */
|
|
27
|
-
ReservationCancelReasonEnum["matchingFailedPaymentByAdmin"] = "matchingFailedPaymentByAdmin";
|
|
28
|
-
})(ReservationCancelReasonEnum || (exports.ReservationCancelReasonEnum = ReservationCancelReasonEnum = {}));
|
|
29
|
-
var PInfoTypeEnum;
|
|
30
|
-
(function (PInfoTypeEnum) {
|
|
31
|
-
PInfoTypeEnum["normal"] = "normal";
|
|
32
|
-
PInfoTypeEnum["card"] = "card";
|
|
33
|
-
PInfoTypeEnum["reservation"] = "reservation";
|
|
34
|
-
})(PInfoTypeEnum || (exports.PInfoTypeEnum = PInfoTypeEnum = {}));
|
|
3
|
+
exports.InsuranceProcessTypeEnum = exports.PastSelectionFrameDataInfo = exports.PurchasedProcessV2Enum = exports.PurchasedProcessEnum = exports.UserTypeEnum = exports.TaxInvoiceIssueProcessEnum = exports.POptionTypeEnum = void 0;
|
|
35
4
|
var POptionTypeEnum;
|
|
36
5
|
(function (POptionTypeEnum) {
|
|
37
6
|
POptionTypeEnum["single"] = "single";
|
|
@@ -53,7 +22,6 @@ var UserTypeEnum;
|
|
|
53
22
|
})(UserTypeEnum || (exports.UserTypeEnum = UserTypeEnum = {}));
|
|
54
23
|
var PurchasedProcessEnum;
|
|
55
24
|
(function (PurchasedProcessEnum) {
|
|
56
|
-
PurchasedProcessEnum["\uC608\uC57D\uC911"] = "reserving";
|
|
57
25
|
PurchasedProcessEnum["\uC785\uAE08\uC804"] = "beforeDeposit";
|
|
58
26
|
PurchasedProcessEnum["\uC8FC\uBB38_\uB300\uAE30\uC911"] = "waitingOrder";
|
|
59
27
|
PurchasedProcessEnum["\uBC1C\uC1A1\uC804"] = "beforeDelivery";
|
|
@@ -65,7 +33,6 @@ var PurchasedProcessEnum;
|
|
|
65
33
|
})(PurchasedProcessEnum || (exports.PurchasedProcessEnum = PurchasedProcessEnum = {}));
|
|
66
34
|
var PurchasedProcessV2Enum;
|
|
67
35
|
(function (PurchasedProcessV2Enum) {
|
|
68
|
-
PurchasedProcessV2Enum["\uC608\uC57D\uC911"] = "reserving";
|
|
69
36
|
PurchasedProcessV2Enum["\uC785\uAE08\uC804"] = "beforeDeposit";
|
|
70
37
|
PurchasedProcessV2Enum["\uC8FC\uBB38_\uB300\uAE30\uC911"] = "waitingOrder";
|
|
71
38
|
PurchasedProcessV2Enum["\uC7AC\uACE0_\uD655\uC778\uC911"] = "checkingStock";
|
|
@@ -75,10 +42,6 @@ var PurchasedProcessV2Enum;
|
|
|
75
42
|
PurchasedProcessV2Enum["\uC644\uB8CC"] = "finished";
|
|
76
43
|
PurchasedProcessV2Enum["\uD658\uBD88_\uCC98\uB9AC\uC911"] = "refunding";
|
|
77
44
|
PurchasedProcessV2Enum["\uCDE8\uC18C\uB428"] = "cancelled";
|
|
78
|
-
/** 예약 매칭 실패로 취소됨 */
|
|
79
|
-
PurchasedProcessV2Enum["cancelledByReserveMatchFailed"] = "cancelledByReserveMatchFailed";
|
|
80
|
-
/** 예약 취소 요청으로 취소됨 */
|
|
81
|
-
PurchasedProcessV2Enum["cancelledByReserveCancelAsk"] = "cancelledByReserveCancelAsk";
|
|
82
45
|
})(PurchasedProcessV2Enum || (exports.PurchasedProcessV2Enum = PurchasedProcessV2Enum = {}));
|
|
83
46
|
// 당시 셀렉션 프레임 데이터 정보
|
|
84
47
|
class PastSelectionFrameDataInfo {
|
|
@@ -20,8 +20,6 @@ export declare enum PurchasedInfoLogTypeEnum {
|
|
|
20
20
|
/** 해외 계좌 정산 상태 중으로 변경 (multiSettleId) */
|
|
21
21
|
ABROAD_ACCOUNT_SETTLE_STATUS_ING = "ABROAD_ACCOUNT_SETTLE_STATUS_ING",
|
|
22
22
|
CANCEL_WAITING_ORDER = "CANCEL_WAITING_ORDER",
|
|
23
|
-
/** 관리자의 취소 처리 finished to cancelled */
|
|
24
|
-
MANAGER_CANCEL_FINISHED_TO_CANCELLED = "MANAGER_CANCEL_FINISHED_TO_CANCELLED",
|
|
25
23
|
IMP_REFUND_SUCCESS = "IMP_REFUND_SUCCESS",
|
|
26
24
|
RE_PROCESS_IMP_REFUND_SUCCESS = "RE_PROCESS_IMP_REFUND_SUCCESS",
|
|
27
25
|
IMP_REFUND_ERR = "IMP_REFUND_ERR",
|
|
@@ -48,24 +46,7 @@ export declare enum PurchasedInfoLogTypeEnum {
|
|
|
48
46
|
/** 관리자 쿠폰 할인 가격 변경 */
|
|
49
47
|
MANAGE_EDIT_COUPON_DISCOUNT_PRICE = "MANAGE_EDIT_COUPON_DISCOUNT_PRICE",
|
|
50
48
|
/** 관리자 쿠폰 삭제 */
|
|
51
|
-
MANAGE_DELETE_COUPON_INFO = "MANAGE_DELETE_COUPON_INFO"
|
|
52
|
-
/** 구매자의 예약 취소 */
|
|
53
|
-
CANCEL_RESERVATION_BY_BUYER = "CANCEL_RESERVATION_BY_BUYER",
|
|
54
|
-
/** 관리자의 예약 취소 */
|
|
55
|
-
CANCEL_RESERVATION_BY_ADMIN = "CANCEL_RESERVATION_BY_ADMIN",
|
|
56
|
-
/** 예약중 생성 (결제 시도 완료) */
|
|
57
|
-
RESERVATION_CREATED = "RESERVATION_CREATED",
|
|
58
|
-
/** 시스템 빌링 승인 성공 */
|
|
59
|
-
RESERVATION_BILLING_APPROVED_BY_SYSTEM = "RESERVATION_BILLING_APPROVED_BY_SYSTEM",
|
|
60
|
-
/** 구매자 재시도 빌링 승인 성공 */
|
|
61
|
-
RESERVATION_BILLING_APPROVED_BY_BUYER = "RESERVATION_BILLING_APPROVED_BY_BUYER",
|
|
62
|
-
/** 시스템 빌링 승인 실패 */
|
|
63
|
-
RESERVATION_BILLING_FAILED_BY_SYSTEM = "RESERVATION_BILLING_FAILED_BY_SYSTEM",
|
|
64
|
-
/** 구매자 재시도 빌링 승인 실패 */
|
|
65
|
-
RESERVATION_BILLING_FAILED_BY_BUYER = "RESERVATION_BILLING_FAILED_BY_BUYER",
|
|
66
|
-
NICEPAY_BILLING_REFUND_SUCCESS = "NICEPAY_BILLING_REFUND_SUCCESS",
|
|
67
|
-
NICEPAY_BILLING_REFUND_ERR = "NICEPAY_BILLING_REFUND_ERR",
|
|
68
|
-
RESOLVE_NICEPAY_BILLING_REFUND_ERROR = "RESOLVE_NICEPAY_BILLING_REFUND_ERROR"
|
|
49
|
+
MANAGE_DELETE_COUPON_INFO = "MANAGE_DELETE_COUPON_INFO"
|
|
69
50
|
}
|
|
70
51
|
export declare enum PurchasedInfoLogVersionEnum {
|
|
71
52
|
V1 = 1,
|
|
@@ -23,8 +23,6 @@ var PurchasedInfoLogTypeEnum;
|
|
|
23
23
|
PurchasedInfoLogTypeEnum["ABROAD_ACCOUNT_SETTLE_STATUS_ING"] = "ABROAD_ACCOUNT_SETTLE_STATUS_ING";
|
|
24
24
|
// 즉시 환불 로그
|
|
25
25
|
PurchasedInfoLogTypeEnum["CANCEL_WAITING_ORDER"] = "CANCEL_WAITING_ORDER";
|
|
26
|
-
/** 관리자의 취소 처리 finished to cancelled */
|
|
27
|
-
PurchasedInfoLogTypeEnum["MANAGER_CANCEL_FINISHED_TO_CANCELLED"] = "MANAGER_CANCEL_FINISHED_TO_CANCELLED";
|
|
28
26
|
// imp 환불 성공시 로그
|
|
29
27
|
PurchasedInfoLogTypeEnum["IMP_REFUND_SUCCESS"] = "IMP_REFUND_SUCCESS";
|
|
30
28
|
// imp 환불 실패시 프로세스 재시도 성공
|
|
@@ -61,26 +59,6 @@ var PurchasedInfoLogTypeEnum;
|
|
|
61
59
|
PurchasedInfoLogTypeEnum["MANAGE_EDIT_COUPON_DISCOUNT_PRICE"] = "MANAGE_EDIT_COUPON_DISCOUNT_PRICE";
|
|
62
60
|
/** 관리자 쿠폰 삭제 */
|
|
63
61
|
PurchasedInfoLogTypeEnum["MANAGE_DELETE_COUPON_INFO"] = "MANAGE_DELETE_COUPON_INFO";
|
|
64
|
-
/** 구매자의 예약 취소 */
|
|
65
|
-
PurchasedInfoLogTypeEnum["CANCEL_RESERVATION_BY_BUYER"] = "CANCEL_RESERVATION_BY_BUYER";
|
|
66
|
-
/** 관리자의 예약 취소 */
|
|
67
|
-
PurchasedInfoLogTypeEnum["CANCEL_RESERVATION_BY_ADMIN"] = "CANCEL_RESERVATION_BY_ADMIN";
|
|
68
|
-
/** 예약중 생성 (결제 시도 완료) */
|
|
69
|
-
PurchasedInfoLogTypeEnum["RESERVATION_CREATED"] = "RESERVATION_CREATED";
|
|
70
|
-
/** 시스템 빌링 승인 성공 */
|
|
71
|
-
PurchasedInfoLogTypeEnum["RESERVATION_BILLING_APPROVED_BY_SYSTEM"] = "RESERVATION_BILLING_APPROVED_BY_SYSTEM";
|
|
72
|
-
/** 구매자 재시도 빌링 승인 성공 */
|
|
73
|
-
PurchasedInfoLogTypeEnum["RESERVATION_BILLING_APPROVED_BY_BUYER"] = "RESERVATION_BILLING_APPROVED_BY_BUYER";
|
|
74
|
-
/** 시스템 빌링 승인 실패 */
|
|
75
|
-
PurchasedInfoLogTypeEnum["RESERVATION_BILLING_FAILED_BY_SYSTEM"] = "RESERVATION_BILLING_FAILED_BY_SYSTEM";
|
|
76
|
-
/** 구매자 재시도 빌링 승인 실패 */
|
|
77
|
-
PurchasedInfoLogTypeEnum["RESERVATION_BILLING_FAILED_BY_BUYER"] = "RESERVATION_BILLING_FAILED_BY_BUYER";
|
|
78
|
-
// 나이스페이 빌링 환불 성공시 로그
|
|
79
|
-
PurchasedInfoLogTypeEnum["NICEPAY_BILLING_REFUND_SUCCESS"] = "NICEPAY_BILLING_REFUND_SUCCESS";
|
|
80
|
-
// 나이스페이 빌링 환불 실패시 로그
|
|
81
|
-
PurchasedInfoLogTypeEnum["NICEPAY_BILLING_REFUND_ERR"] = "NICEPAY_BILLING_REFUND_ERR";
|
|
82
|
-
// 나이스페이 빌링 환불 실패 후 해당 결제건 해결완료 처리
|
|
83
|
-
PurchasedInfoLogTypeEnum["RESOLVE_NICEPAY_BILLING_REFUND_ERROR"] = "RESOLVE_NICEPAY_BILLING_REFUND_ERROR";
|
|
84
62
|
})(PurchasedInfoLogTypeEnum || (exports.PurchasedInfoLogTypeEnum = PurchasedInfoLogTypeEnum = {}));
|
|
85
63
|
var PurchasedInfoLogVersionEnum;
|
|
86
64
|
(function (PurchasedInfoLogVersionEnum) {
|
package/user/index.d.ts
CHANGED
package/user/index.js
CHANGED
|
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./user.entity"), exports);
|
|
18
18
|
__exportStar(require("./user-for-admin.entity"), exports);
|
|
19
19
|
__exportStar(require("./user-shipping-addresses.entity"), exports);
|
|
20
|
-
__exportStar(require("./user-card-billing.entity"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './nicepay-billing-log.entity';
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./nicepay-billing-log.entity"), exports);
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { Types } from 'mongoose';
|
|
2
|
-
/**
|
|
3
|
-
* @description 나이스페이 빌링 로그 종류
|
|
4
|
-
* @readonly
|
|
5
|
-
* @enum {string}
|
|
6
|
-
*/
|
|
7
|
-
export declare enum NicepayBillingLogTypeEnum {
|
|
8
|
-
/** 결제 승인 */
|
|
9
|
-
approve = "approve",
|
|
10
|
-
/** 결제 취소 */
|
|
11
|
-
cancel = "cancel"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* NicePay 빌링 결제(승인) 응답 인터페이스
|
|
15
|
-
* @see https://developers.nicepay.co.kr/manual-card-billing.php
|
|
16
|
-
*/
|
|
17
|
-
export interface NicepayBillingApproveResponse {
|
|
18
|
-
/** 결과코드 (3001: 성공 / 그외 실패) */
|
|
19
|
-
ResultCode: string;
|
|
20
|
-
/** 결과 메시지 */
|
|
21
|
-
ResultMsg: string;
|
|
22
|
-
/** 거래 ID */
|
|
23
|
-
TID: string;
|
|
24
|
-
/** 주문번호 */
|
|
25
|
-
Moid: string;
|
|
26
|
-
/** 금액 (예: 1000원인 경우 -> 000000001000) */
|
|
27
|
-
Amt: string;
|
|
28
|
-
/** 승인번호 */
|
|
29
|
-
AuthCode?: string;
|
|
30
|
-
/** 승인일시 (YYMMDDHHMISS) */
|
|
31
|
-
AuthDate?: string;
|
|
32
|
-
/** 매입 카드사 코드 */
|
|
33
|
-
AcquCardCode?: string;
|
|
34
|
-
/** 매입 카드사명 */
|
|
35
|
-
AcquCardName?: string;
|
|
36
|
-
/** 카드번호 (일부 마스킹 처리, 예: 12345678****1234) */
|
|
37
|
-
CardNo?: string;
|
|
38
|
-
/** 카드사 코드 */
|
|
39
|
-
CardCode?: string;
|
|
40
|
-
/** 카드사명 */
|
|
41
|
-
CardName?: string;
|
|
42
|
-
/** 할부개월 */
|
|
43
|
-
CardQuota?: string;
|
|
44
|
-
/** 카드타입 (0: 신용카드, 1: 체크카드) */
|
|
45
|
-
CardCl?: string;
|
|
46
|
-
/** 부분취소 가능 여부 (0: 불가능, 1: 가능) */
|
|
47
|
-
CcPartCl?: string;
|
|
48
|
-
/** 무이자 여부 (0: 이자, 1: 무이자) */
|
|
49
|
-
CardInterest?: string;
|
|
50
|
-
/** 가맹점 여분필드 (요청 시 Data 그대로 전달) */
|
|
51
|
-
MallReserved?: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* NicePay 빌링 승인 취소 응답 인터페이스
|
|
55
|
-
* @see https://developers.nicepay.co.kr/manual-card-billing.php
|
|
56
|
-
*/
|
|
57
|
-
export interface NicepayBillingCancelResponse {
|
|
58
|
-
/** 결과코드 (2001: 성공) */
|
|
59
|
-
ResultCode: string;
|
|
60
|
-
/** 결과 메시지 */
|
|
61
|
-
ResultMsg: string;
|
|
62
|
-
/** 취소 금액 (예: 1000원인 경우 -> 000000001000) */
|
|
63
|
-
CancelAmt: string;
|
|
64
|
-
/** 가맹점 ID */
|
|
65
|
-
MID: string;
|
|
66
|
-
/** 주문번호 */
|
|
67
|
-
Moid: string;
|
|
68
|
-
/** 위변조 검증 데이터 hex(sha256(TID+MID+CancelAmt+MerchantKey)) */
|
|
69
|
-
Signature: string;
|
|
70
|
-
/** 결제수단 (CARD, BANK, VBANK, CELLPHONE) */
|
|
71
|
-
PayMethod?: string;
|
|
72
|
-
/** 거래 ID */
|
|
73
|
-
TID?: string;
|
|
74
|
-
/** 취소일자 (YYYYMMDD) */
|
|
75
|
-
CancelDate?: string;
|
|
76
|
-
/** 취소시간 (HHmmss) */
|
|
77
|
-
CancelTime?: string;
|
|
78
|
-
/** 취소번호 */
|
|
79
|
-
CancelNum?: string;
|
|
80
|
-
/** 취소 후 잔액 */
|
|
81
|
-
RemainAmt?: string;
|
|
82
|
-
/** 가맹점 여분필드 */
|
|
83
|
-
MallReserved?: string;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @author jun
|
|
87
|
-
* @description 나이스페이 빌링 결제 로그 엔티티
|
|
88
|
-
* @process 빌링 결제 승인/취소 시 응답 데이터를 로그로 저장
|
|
89
|
-
*/
|
|
90
|
-
export interface NicepayBillingLogEntity {
|
|
91
|
-
_id: Types.ObjectId;
|
|
92
|
-
/** 유저빌링 아이디 */
|
|
93
|
-
userCardBillingId: Types.ObjectId;
|
|
94
|
-
/** 종류 */
|
|
95
|
-
type: NicepayBillingLogTypeEnum;
|
|
96
|
-
/** 구매 정보 아이디 */
|
|
97
|
-
pInfoId: Types.ObjectId;
|
|
98
|
-
/** 결제 승인 처리 시 응답 값 */
|
|
99
|
-
approveResponse?: NicepayBillingApproveResponse;
|
|
100
|
-
/** 결제 취소 처리 시 응답 값 */
|
|
101
|
-
cancelResponse?: NicepayBillingCancelResponse;
|
|
102
|
-
/** 등록일시 */
|
|
103
|
-
regDate: Date;
|
|
104
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NicepayBillingLogTypeEnum = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @description 나이스페이 빌링 로그 종류
|
|
6
|
-
* @readonly
|
|
7
|
-
* @enum {string}
|
|
8
|
-
*/
|
|
9
|
-
var NicepayBillingLogTypeEnum;
|
|
10
|
-
(function (NicepayBillingLogTypeEnum) {
|
|
11
|
-
/** 결제 승인 */
|
|
12
|
-
NicepayBillingLogTypeEnum["approve"] = "approve";
|
|
13
|
-
/** 결제 취소 */
|
|
14
|
-
NicepayBillingLogTypeEnum["cancel"] = "cancel";
|
|
15
|
-
})(NicepayBillingLogTypeEnum || (exports.NicepayBillingLogTypeEnum = NicepayBillingLogTypeEnum = {}));
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Types } from 'mongoose';
|
|
2
|
-
/** 유저 카드 빌링 타입 */
|
|
3
|
-
export declare enum UserCardBillingEnum {
|
|
4
|
-
/** 나이스 페이 빌링 키 */
|
|
5
|
-
nicepay_billing = "nicepay_billing"
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* NicePay 빌키 발급 API 원본 응답 인터페이스
|
|
9
|
-
* @see https://developers.nicepay.co.kr/manual-card-billkey-auth-create.php
|
|
10
|
-
*/
|
|
11
|
-
export interface NicepayBillingKeyApiResponse {
|
|
12
|
-
/** 결과 코드 (F100: 성공) */
|
|
13
|
-
ResultCode: string;
|
|
14
|
-
/** 결과 메시지 */
|
|
15
|
-
ResultMsg: string;
|
|
16
|
-
/** 거래 ID */
|
|
17
|
-
TID: string;
|
|
18
|
-
/** 빌키 */
|
|
19
|
-
BID: string;
|
|
20
|
-
/** 빌키 발급일자 (YYYYMMDD) */
|
|
21
|
-
AuthDate: string;
|
|
22
|
-
/** 카드사 코드 */
|
|
23
|
-
CardCode: string;
|
|
24
|
-
/** 카드사명 */
|
|
25
|
-
CardName: string;
|
|
26
|
-
/** 카드 타입 (0: 신용, 1: 체크) */
|
|
27
|
-
CardCl: string;
|
|
28
|
-
/** 매입 카드사 코드 */
|
|
29
|
-
AcquCardCode: string;
|
|
30
|
-
/** 매입 카드사명 */
|
|
31
|
-
AcquCardName: string;
|
|
32
|
-
/** 마스킹된 카드번호 */
|
|
33
|
-
CardNo: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @author jun
|
|
37
|
-
* @description 유저 카드 빌링 정보 엔티티
|
|
38
|
-
* @process 유저의 카드 빌링키 및 카드 정보를 저장
|
|
39
|
-
*/
|
|
40
|
-
export interface UserCardBillingEntity {
|
|
41
|
-
_id: Types.ObjectId;
|
|
42
|
-
/** 카드 빌링 타입 */
|
|
43
|
-
type: UserCardBillingEnum;
|
|
44
|
-
/** 유저 아이디 */
|
|
45
|
-
userId: Types.ObjectId;
|
|
46
|
-
/** 빌링키 */
|
|
47
|
-
billingKey: string;
|
|
48
|
-
/** 카드사명 (ex: 신한카드) */
|
|
49
|
-
cardCompany: string;
|
|
50
|
-
/** 마스킹된 카드번호 뒷 4자리 (ex: 1234) */
|
|
51
|
-
cardNumberLast4: string;
|
|
52
|
-
/** 등록일 */
|
|
53
|
-
regDate: Date;
|
|
54
|
-
/** NicePay 빌링키 발급 API 원본 응답 */
|
|
55
|
-
nicepayResponse?: NicepayBillingKeyApiResponse;
|
|
56
|
-
/** 보여주기 여부 */
|
|
57
|
-
isView: boolean;
|
|
58
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserCardBillingEnum = void 0;
|
|
4
|
-
/** 유저 카드 빌링 타입 */
|
|
5
|
-
var UserCardBillingEnum;
|
|
6
|
-
(function (UserCardBillingEnum) {
|
|
7
|
-
/** 나이스 페이 빌링 키 */
|
|
8
|
-
UserCardBillingEnum["nicepay_billing"] = "nicepay_billing";
|
|
9
|
-
})(UserCardBillingEnum || (exports.UserCardBillingEnum = UserCardBillingEnum = {}));
|