@yolo-croket-dev/amqp-access 0.7.145 → 0.7.147
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 +1 -1
- package/payment-service/dto/refund/query/get-refund-errors-for-admin.dto.d.ts +53 -0
- package/payment-service/dto/refund/query/get-refund-errors-for-admin.dto.js +150 -0
- package/payment-service/dto/refund/query/get-refunds-for-admin.dto.d.ts +60 -0
- package/payment-service/dto/refund/query/get-refunds-for-admin.dto.js +173 -0
- package/payment-service/dto/refund/query/get-refunds-for-admin.enum.d.ts +69 -0
- package/payment-service/dto/refund/query/get-refunds-for-admin.enum.js +81 -0
- package/payment-service/dto/refund/query/index.d.ts +2 -0
- package/payment-service/dto/refund/query/index.js +2 -0
- package/payment-service/services/amqp.refund.service.d.ts +3 -1
- package/payment-service/services/amqp.refund.service.js +6 -0
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { AuthorTypeEnum, BlockRefundWithdrawTypeEnum, CartTypeEnum, PaymentMethodEnum, RefundPendingTypeEnum, RefundReturnTypeEnum, SellerRefundApprovalTypeEnum, SortTypeEnum } from './get-refunds-for-admin.enum';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 관리자 환불 오류 리스트 조회 payload
|
|
5
|
+
* @process 1. 관리자 검색 조건 수신 -> 2. payment-service 환불 오류 전용 AMQP 조회로 전달
|
|
6
|
+
*/
|
|
7
|
+
export declare class GetRefundErrorsForAdminPayload {
|
|
8
|
+
page: number;
|
|
9
|
+
limit: number;
|
|
10
|
+
sortType: SortTypeEnum;
|
|
11
|
+
/** (결제) 결제일 기준 */
|
|
12
|
+
paymentStartDate?: Date;
|
|
13
|
+
/** (결제) 결제일 기준 */
|
|
14
|
+
paymentEndDate?: Date;
|
|
15
|
+
/** (환불) 환불 신청일 기준 */
|
|
16
|
+
refundRequestStartDate?: Date;
|
|
17
|
+
/** (환불) 환불 신청일 기준 */
|
|
18
|
+
refundRequestEndDate?: Date;
|
|
19
|
+
/** (환불) 환불 상태 */
|
|
20
|
+
refundProcess?: string;
|
|
21
|
+
/** (환불) 마지막 거래 상태 */
|
|
22
|
+
PInfoLastProcess?: string;
|
|
23
|
+
/** (환불) 셀러 승인 여부 */
|
|
24
|
+
sellerRefundApprovalType?: SellerRefundApprovalTypeEnum;
|
|
25
|
+
/** (환불) 환불 보류 */
|
|
26
|
+
refundPendingType?: RefundPendingTypeEnum;
|
|
27
|
+
/** (환불) 신청자 */
|
|
28
|
+
_authorType?: AuthorTypeEnum;
|
|
29
|
+
/** (환불) 반품 정보 */
|
|
30
|
+
refundReturnType?: RefundReturnTypeEnum;
|
|
31
|
+
/** (결제) 장바구니 결제 */
|
|
32
|
+
cartType?: CartTypeEnum;
|
|
33
|
+
/** (결제) 결제 방법 */
|
|
34
|
+
paymentMethod?: PaymentMethodEnum;
|
|
35
|
+
/** (환불) 구매자의 유저 아이디 */
|
|
36
|
+
buyerId?: string;
|
|
37
|
+
/** (환불) 셀러의 유저 아이디 */
|
|
38
|
+
sellerId?: string;
|
|
39
|
+
/** (유저) 구매자 이름 */
|
|
40
|
+
buyerName?: string;
|
|
41
|
+
/** (스토어) 스토어 타이틀 */
|
|
42
|
+
storeTitle?: string;
|
|
43
|
+
/** (결제) imp_uid */
|
|
44
|
+
imp_uid?: string;
|
|
45
|
+
/** (결제) publicId */
|
|
46
|
+
publicId?: string;
|
|
47
|
+
/** (환불) pending메모 */
|
|
48
|
+
pendingMemo?: string;
|
|
49
|
+
/** (환불) cs1메모 */
|
|
50
|
+
cs1Memo?: string;
|
|
51
|
+
blockRefundWithdrawType?: BlockRefundWithdrawTypeEnum;
|
|
52
|
+
payTryLogId?: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetRefundErrorsForAdminPayload = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const get_refunds_for_admin_enum_1 = require("./get-refunds-for-admin.enum");
|
|
16
|
+
/**
|
|
17
|
+
* @author jun
|
|
18
|
+
* @description 관리자 환불 오류 리스트 조회 payload
|
|
19
|
+
* @process 1. 관리자 검색 조건 수신 -> 2. payment-service 환불 오류 전용 AMQP 조회로 전달
|
|
20
|
+
*/
|
|
21
|
+
class GetRefundErrorsForAdminPayload {
|
|
22
|
+
}
|
|
23
|
+
exports.GetRefundErrorsForAdminPayload = GetRefundErrorsForAdminPayload;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Transform)((params) => Number(params.value)),
|
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], GetRefundErrorsForAdminPayload.prototype, "page", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Transform)((params) => Number(params.value)),
|
|
32
|
+
(0, class_validator_1.IsNumber)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], GetRefundErrorsForAdminPayload.prototype, "limit", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.SortTypeEnum),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GetRefundErrorsForAdminPayload.prototype, "sortType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsDateString)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], GetRefundErrorsForAdminPayload.prototype, "paymentStartDate", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsDateString)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], GetRefundErrorsForAdminPayload.prototype, "paymentEndDate", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsDateString)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], GetRefundErrorsForAdminPayload.prototype, "refundRequestStartDate", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsDateString)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], GetRefundErrorsForAdminPayload.prototype, "refundRequestEndDate", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], GetRefundErrorsForAdminPayload.prototype, "refundProcess", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], GetRefundErrorsForAdminPayload.prototype, "PInfoLastProcess", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.SellerRefundApprovalTypeEnum),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], GetRefundErrorsForAdminPayload.prototype, "sellerRefundApprovalType", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.RefundPendingTypeEnum),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], GetRefundErrorsForAdminPayload.prototype, "refundPendingType", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.AuthorTypeEnum),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], GetRefundErrorsForAdminPayload.prototype, "_authorType", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.RefundReturnTypeEnum),
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], GetRefundErrorsForAdminPayload.prototype, "refundReturnType", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.CartTypeEnum),
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], GetRefundErrorsForAdminPayload.prototype, "cartType", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.PaymentMethodEnum),
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], GetRefundErrorsForAdminPayload.prototype, "paymentMethod", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsString)(),
|
|
103
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], GetRefundErrorsForAdminPayload.prototype, "buyerId", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_validator_1.IsString)(),
|
|
108
|
+
(0, class_validator_1.IsOptional)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], GetRefundErrorsForAdminPayload.prototype, "sellerId", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_validator_1.IsString)(),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], GetRefundErrorsForAdminPayload.prototype, "buyerName", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, class_validator_1.IsString)(),
|
|
118
|
+
(0, class_validator_1.IsOptional)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], GetRefundErrorsForAdminPayload.prototype, "storeTitle", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, class_validator_1.IsString)(),
|
|
123
|
+
(0, class_validator_1.IsOptional)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], GetRefundErrorsForAdminPayload.prototype, "imp_uid", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, class_validator_1.IsString)(),
|
|
128
|
+
(0, class_validator_1.IsOptional)(),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], GetRefundErrorsForAdminPayload.prototype, "publicId", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_validator_1.IsString)(),
|
|
133
|
+
(0, class_validator_1.IsOptional)(),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], GetRefundErrorsForAdminPayload.prototype, "pendingMemo", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_validator_1.IsString)(),
|
|
138
|
+
(0, class_validator_1.IsOptional)(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], GetRefundErrorsForAdminPayload.prototype, "cs1Memo", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.BlockRefundWithdrawTypeEnum),
|
|
143
|
+
(0, class_validator_1.IsOptional)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], GetRefundErrorsForAdminPayload.prototype, "blockRefundWithdrawType", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, class_validator_1.IsMongoId)(),
|
|
148
|
+
(0, class_validator_1.IsOptional)(),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], GetRefundErrorsForAdminPayload.prototype, "payTryLogId", void 0);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AuthorTypeEnum, BlockRefundWithdrawTypeEnum, CartTypeEnum, PaymentMethodEnum, RefundPendingTypeEnum, RefundReturnTypeEnum, SellerRefundApprovalTypeEnum, SortTypeEnum } from './get-refunds-for-admin.enum';
|
|
2
|
+
export * from './get-refunds-for-admin.enum';
|
|
3
|
+
/**
|
|
4
|
+
* @author jun
|
|
5
|
+
* @description 관리자 환불 리스트 조회 payload
|
|
6
|
+
* @process 1. 관리자 검색 조건 수신 -> 2. payment-service AMQP 조회로 전달
|
|
7
|
+
*/
|
|
8
|
+
export declare class GetRefundsForAdminPayload {
|
|
9
|
+
page: number;
|
|
10
|
+
limit: number;
|
|
11
|
+
sortType: SortTypeEnum;
|
|
12
|
+
/** (결제) 결제일 기준 */
|
|
13
|
+
paymentStartDate?: Date;
|
|
14
|
+
/** (결제) 결제일 기준 */
|
|
15
|
+
paymentEndDate?: Date;
|
|
16
|
+
/** (환불) 환불 신청일 기준 */
|
|
17
|
+
refundRequestStartDate?: Date;
|
|
18
|
+
/** (환불) 환불 신청일 기준 */
|
|
19
|
+
refundRequestEndDate?: Date;
|
|
20
|
+
/** (환불) 환불 상태 */
|
|
21
|
+
refundProcess?: string;
|
|
22
|
+
/** (환불) 마지막 거래 상태 */
|
|
23
|
+
PInfoLastProcess?: string;
|
|
24
|
+
/** (환불) 셀러 승인 여부 */
|
|
25
|
+
sellerRefundApprovalType?: SellerRefundApprovalTypeEnum;
|
|
26
|
+
/** (환불) 환불 보류 */
|
|
27
|
+
refundPendingType?: RefundPendingTypeEnum;
|
|
28
|
+
/** (환불) 신청자 */
|
|
29
|
+
_authorType?: AuthorTypeEnum;
|
|
30
|
+
/** (환불) 반품 정보 */
|
|
31
|
+
refundReturnType?: RefundReturnTypeEnum;
|
|
32
|
+
/** (결제) 장바구니 결제 */
|
|
33
|
+
cartType?: CartTypeEnum;
|
|
34
|
+
/** (결제) 결제 방법 */
|
|
35
|
+
paymentMethod?: PaymentMethodEnum;
|
|
36
|
+
/** (환불) 구매자의 유저 아이디 */
|
|
37
|
+
buyerId?: string;
|
|
38
|
+
/** (환불) 셀러의 유저 아이디 */
|
|
39
|
+
sellerId?: string;
|
|
40
|
+
/** (유저) 구매자 이름 */
|
|
41
|
+
buyerName?: string;
|
|
42
|
+
/** (스토어) 스토어 타이틀 */
|
|
43
|
+
storeTitle?: string;
|
|
44
|
+
/** (결제) imp_uid */
|
|
45
|
+
imp_uid?: string;
|
|
46
|
+
/** (결제) publicId */
|
|
47
|
+
publicId?: string;
|
|
48
|
+
/** (환불) pending메모 */
|
|
49
|
+
pendingMemo?: string;
|
|
50
|
+
/** (환불) cs1메모 */
|
|
51
|
+
cs1Memo?: string;
|
|
52
|
+
/** @deprecated 환불 오류 조회는 getRefundErrorsForAdmin 전용 route를 사용합니다. */
|
|
53
|
+
isRefundError?: boolean;
|
|
54
|
+
blockRefundWithdrawType?: BlockRefundWithdrawTypeEnum;
|
|
55
|
+
payTryLogId?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare class GetRefundsForAdminResult {
|
|
58
|
+
allRefundCount: number;
|
|
59
|
+
refunds: unknown[];
|
|
60
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
14
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
|
+
};
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.GetRefundsForAdminResult = exports.GetRefundsForAdminPayload = void 0;
|
|
27
|
+
const class_transformer_1 = require("class-transformer");
|
|
28
|
+
const class_validator_1 = require("class-validator");
|
|
29
|
+
const get_refunds_for_admin_enum_1 = require("./get-refunds-for-admin.enum");
|
|
30
|
+
__exportStar(require("./get-refunds-for-admin.enum"), exports);
|
|
31
|
+
/**
|
|
32
|
+
* @author jun
|
|
33
|
+
* @description 관리자 환불 리스트 조회 payload
|
|
34
|
+
* @process 1. 관리자 검색 조건 수신 -> 2. payment-service AMQP 조회로 전달
|
|
35
|
+
*/
|
|
36
|
+
class GetRefundsForAdminPayload {
|
|
37
|
+
}
|
|
38
|
+
exports.GetRefundsForAdminPayload = GetRefundsForAdminPayload;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Transform)((params) => Number(params.value)),
|
|
41
|
+
(0, class_validator_1.IsNumber)(),
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], GetRefundsForAdminPayload.prototype, "page", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Transform)((params) => Number(params.value)),
|
|
47
|
+
(0, class_validator_1.IsNumber)(),
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], GetRefundsForAdminPayload.prototype, "limit", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
53
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.SortTypeEnum),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], GetRefundsForAdminPayload.prototype, "sortType", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsDateString)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], GetRefundsForAdminPayload.prototype, "paymentStartDate", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsDateString)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", Date)
|
|
65
|
+
], GetRefundsForAdminPayload.prototype, "paymentEndDate", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsDateString)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", Date)
|
|
70
|
+
], GetRefundsForAdminPayload.prototype, "refundRequestStartDate", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsDateString)(),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", Date)
|
|
75
|
+
], GetRefundsForAdminPayload.prototype, "refundRequestEndDate", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], GetRefundsForAdminPayload.prototype, "refundProcess", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsString)(),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], GetRefundsForAdminPayload.prototype, "PInfoLastProcess", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.SellerRefundApprovalTypeEnum),
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], GetRefundsForAdminPayload.prototype, "sellerRefundApprovalType", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.RefundPendingTypeEnum),
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], GetRefundsForAdminPayload.prototype, "refundPendingType", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.AuthorTypeEnum),
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], GetRefundsForAdminPayload.prototype, "_authorType", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.RefundReturnTypeEnum),
|
|
103
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], GetRefundsForAdminPayload.prototype, "refundReturnType", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.CartTypeEnum),
|
|
108
|
+
(0, class_validator_1.IsOptional)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], GetRefundsForAdminPayload.prototype, "cartType", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.PaymentMethodEnum),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], GetRefundsForAdminPayload.prototype, "paymentMethod", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, class_validator_1.IsString)(),
|
|
118
|
+
(0, class_validator_1.IsOptional)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], GetRefundsForAdminPayload.prototype, "buyerId", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, class_validator_1.IsString)(),
|
|
123
|
+
(0, class_validator_1.IsOptional)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], GetRefundsForAdminPayload.prototype, "sellerId", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, class_validator_1.IsString)(),
|
|
128
|
+
(0, class_validator_1.IsOptional)(),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], GetRefundsForAdminPayload.prototype, "buyerName", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_validator_1.IsString)(),
|
|
133
|
+
(0, class_validator_1.IsOptional)(),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], GetRefundsForAdminPayload.prototype, "storeTitle", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_validator_1.IsString)(),
|
|
138
|
+
(0, class_validator_1.IsOptional)(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], GetRefundsForAdminPayload.prototype, "imp_uid", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_validator_1.IsString)(),
|
|
143
|
+
(0, class_validator_1.IsOptional)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], GetRefundsForAdminPayload.prototype, "publicId", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, class_validator_1.IsString)(),
|
|
148
|
+
(0, class_validator_1.IsOptional)(),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], GetRefundsForAdminPayload.prototype, "pendingMemo", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_validator_1.IsString)(),
|
|
153
|
+
(0, class_validator_1.IsOptional)(),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], GetRefundsForAdminPayload.prototype, "cs1Memo", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, class_validator_1.IsBoolean)(),
|
|
158
|
+
(0, class_validator_1.IsOptional)(),
|
|
159
|
+
__metadata("design:type", Boolean)
|
|
160
|
+
], GetRefundsForAdminPayload.prototype, "isRefundError", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, class_validator_1.IsEnum)(get_refunds_for_admin_enum_1.BlockRefundWithdrawTypeEnum),
|
|
163
|
+
(0, class_validator_1.IsOptional)(),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], GetRefundsForAdminPayload.prototype, "blockRefundWithdrawType", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, class_validator_1.IsMongoId)(),
|
|
168
|
+
(0, class_validator_1.IsOptional)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], GetRefundsForAdminPayload.prototype, "payTryLogId", void 0);
|
|
171
|
+
class GetRefundsForAdminResult {
|
|
172
|
+
}
|
|
173
|
+
exports.GetRefundsForAdminResult = GetRefundsForAdminResult;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare enum SortTypeEnum {
|
|
2
|
+
환불신청_오래된순 = "\uD658\uBD88\uC2E0\uCCAD_\uC624\uB798\uB41C\uC21C",
|
|
3
|
+
환불신청_최신순 = "\uD658\uBD88\uC2E0\uCCAD_\uCD5C\uC2E0\uC21C",
|
|
4
|
+
결제일_오래된순 = "\uACB0\uC81C\uC77C_\uC624\uB798\uB41C\uC21C",
|
|
5
|
+
결제일_최신순 = "\uACB0\uC81C\uC77C_\uCD5C\uC2E0\uC21C"
|
|
6
|
+
}
|
|
7
|
+
export declare enum SellerRefundApprovalTypeEnum {
|
|
8
|
+
셀러_승인_완료_및_필요없음 = "sellerApprovedAndNotRequired",
|
|
9
|
+
셀러_승인_완료 = "sellerApproved",
|
|
10
|
+
셀러_승인_대기중 = "sellerPending",
|
|
11
|
+
셀러_승인_필요없음 = "sellerApproveNotRequired",
|
|
12
|
+
관리자_승인_완료 = "adminApproved"
|
|
13
|
+
}
|
|
14
|
+
export declare enum RefundPendingTypeEnum {
|
|
15
|
+
환불_보류중 = "pending",
|
|
16
|
+
환불_보류_안함 = "notPending"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AuthorTypeEnum {
|
|
19
|
+
셀러 = "seller",
|
|
20
|
+
구매자 = "buyer"
|
|
21
|
+
}
|
|
22
|
+
export declare enum RefundReturnTypeEnum {
|
|
23
|
+
반품_필요_반품_수령_확인_전 = "returnNeedConfirmation",
|
|
24
|
+
반품_필요_반품_수령_확인_완료 = "returnConfirmed",
|
|
25
|
+
반품_필요_없음 = "notNeed"
|
|
26
|
+
}
|
|
27
|
+
export declare enum CartTypeEnum {
|
|
28
|
+
장바구니 = "cart",
|
|
29
|
+
일반 = "normal"
|
|
30
|
+
}
|
|
31
|
+
export declare enum PaymentMethodEnum {
|
|
32
|
+
/** @description 무통장 입금 */
|
|
33
|
+
무통장 = "yoloVBank",
|
|
34
|
+
/** @description 카드결제 */
|
|
35
|
+
'(구)카드' = "card",
|
|
36
|
+
/** @description CHAI 결제 */
|
|
37
|
+
차이 = "chai",
|
|
38
|
+
/** @description 무통장 입금 */
|
|
39
|
+
아임포트_토스페이먼츠_무통장 = "imp_tossPayVBank",
|
|
40
|
+
/** @description 카드결제 */
|
|
41
|
+
아임포트_토스페이먼츠_카드 = "imp_tossPayCard",
|
|
42
|
+
/** @description 네이버페이 결제 */
|
|
43
|
+
아임포트_네이버 = "imp_naverPay",
|
|
44
|
+
/** @description 카카오페이 결제 */
|
|
45
|
+
아임포트_카카오 = "imp_kakaoPay",
|
|
46
|
+
/** @description 페이코 결제 */
|
|
47
|
+
아임포트_페이코 = "imp_payco",
|
|
48
|
+
/** @description 토스페이 */
|
|
49
|
+
아임포트_토스_즉시 = "imp_tossEasyPay",
|
|
50
|
+
/** @description 토스 장바구니 */
|
|
51
|
+
토스_장바구니 = "toss_cartPay",
|
|
52
|
+
/** @description KB 페이 */
|
|
53
|
+
아임포트_토스페이먼츠_카드_국민 = "imp_tossPayCard_kb",
|
|
54
|
+
/** @description 해외카드 결제 */
|
|
55
|
+
아임포트_엑심베이 = "imp_eximbay",
|
|
56
|
+
직연동_퀵계좌 = "direct_tosspayments_trans",
|
|
57
|
+
직연동_토스페이 = "direct_tosspayments_tosspay",
|
|
58
|
+
직연동_카드 = "direct_tosspayments_card",
|
|
59
|
+
직연동_가상계좌 = "direct_tosspayments_vbank"
|
|
60
|
+
}
|
|
61
|
+
/** @description 관리자 환불 조회 에러 코드 */
|
|
62
|
+
export declare enum GetRefundsForAdminErrorTypeEnum {
|
|
63
|
+
환불요청일_결제일_둘_중_하나라도_있어야함 = "NOT_EXISTS_REFUND_DATE_AND_PAYMENT_DATE",
|
|
64
|
+
환불요청일_결제일_두개다_오면_안됨 = "EXISTS_BOTH_REFUND_DATE_AND_PAYMENT_DATE"
|
|
65
|
+
}
|
|
66
|
+
export declare enum BlockRefundWithdrawTypeEnum {
|
|
67
|
+
환불_철회_막힘 = "blocked",
|
|
68
|
+
환불_철회_가능 = "notBlocked"
|
|
69
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockRefundWithdrawTypeEnum = exports.GetRefundsForAdminErrorTypeEnum = exports.PaymentMethodEnum = exports.CartTypeEnum = exports.RefundReturnTypeEnum = exports.AuthorTypeEnum = exports.RefundPendingTypeEnum = exports.SellerRefundApprovalTypeEnum = exports.SortTypeEnum = void 0;
|
|
4
|
+
var SortTypeEnum;
|
|
5
|
+
(function (SortTypeEnum) {
|
|
6
|
+
SortTypeEnum["\uD658\uBD88\uC2E0\uCCAD_\uC624\uB798\uB41C\uC21C"] = "\uD658\uBD88\uC2E0\uCCAD_\uC624\uB798\uB41C\uC21C";
|
|
7
|
+
SortTypeEnum["\uD658\uBD88\uC2E0\uCCAD_\uCD5C\uC2E0\uC21C"] = "\uD658\uBD88\uC2E0\uCCAD_\uCD5C\uC2E0\uC21C";
|
|
8
|
+
SortTypeEnum["\uACB0\uC81C\uC77C_\uC624\uB798\uB41C\uC21C"] = "\uACB0\uC81C\uC77C_\uC624\uB798\uB41C\uC21C";
|
|
9
|
+
SortTypeEnum["\uACB0\uC81C\uC77C_\uCD5C\uC2E0\uC21C"] = "\uACB0\uC81C\uC77C_\uCD5C\uC2E0\uC21C";
|
|
10
|
+
})(SortTypeEnum || (exports.SortTypeEnum = SortTypeEnum = {}));
|
|
11
|
+
var SellerRefundApprovalTypeEnum;
|
|
12
|
+
(function (SellerRefundApprovalTypeEnum) {
|
|
13
|
+
SellerRefundApprovalTypeEnum["\uC140\uB7EC_\uC2B9\uC778_\uC644\uB8CC_\uBC0F_\uD544\uC694\uC5C6\uC74C"] = "sellerApprovedAndNotRequired";
|
|
14
|
+
SellerRefundApprovalTypeEnum["\uC140\uB7EC_\uC2B9\uC778_\uC644\uB8CC"] = "sellerApproved";
|
|
15
|
+
SellerRefundApprovalTypeEnum["\uC140\uB7EC_\uC2B9\uC778_\uB300\uAE30\uC911"] = "sellerPending";
|
|
16
|
+
SellerRefundApprovalTypeEnum["\uC140\uB7EC_\uC2B9\uC778_\uD544\uC694\uC5C6\uC74C"] = "sellerApproveNotRequired";
|
|
17
|
+
SellerRefundApprovalTypeEnum["\uAD00\uB9AC\uC790_\uC2B9\uC778_\uC644\uB8CC"] = "adminApproved";
|
|
18
|
+
})(SellerRefundApprovalTypeEnum || (exports.SellerRefundApprovalTypeEnum = SellerRefundApprovalTypeEnum = {}));
|
|
19
|
+
var RefundPendingTypeEnum;
|
|
20
|
+
(function (RefundPendingTypeEnum) {
|
|
21
|
+
RefundPendingTypeEnum["\uD658\uBD88_\uBCF4\uB958\uC911"] = "pending";
|
|
22
|
+
RefundPendingTypeEnum["\uD658\uBD88_\uBCF4\uB958_\uC548\uD568"] = "notPending";
|
|
23
|
+
})(RefundPendingTypeEnum || (exports.RefundPendingTypeEnum = RefundPendingTypeEnum = {}));
|
|
24
|
+
var AuthorTypeEnum;
|
|
25
|
+
(function (AuthorTypeEnum) {
|
|
26
|
+
AuthorTypeEnum["\uC140\uB7EC"] = "seller";
|
|
27
|
+
AuthorTypeEnum["\uAD6C\uB9E4\uC790"] = "buyer";
|
|
28
|
+
})(AuthorTypeEnum || (exports.AuthorTypeEnum = AuthorTypeEnum = {}));
|
|
29
|
+
var RefundReturnTypeEnum;
|
|
30
|
+
(function (RefundReturnTypeEnum) {
|
|
31
|
+
RefundReturnTypeEnum["\uBC18\uD488_\uD544\uC694_\uBC18\uD488_\uC218\uB839_\uD655\uC778_\uC804"] = "returnNeedConfirmation";
|
|
32
|
+
RefundReturnTypeEnum["\uBC18\uD488_\uD544\uC694_\uBC18\uD488_\uC218\uB839_\uD655\uC778_\uC644\uB8CC"] = "returnConfirmed";
|
|
33
|
+
RefundReturnTypeEnum["\uBC18\uD488_\uD544\uC694_\uC5C6\uC74C"] = "notNeed";
|
|
34
|
+
})(RefundReturnTypeEnum || (exports.RefundReturnTypeEnum = RefundReturnTypeEnum = {}));
|
|
35
|
+
var CartTypeEnum;
|
|
36
|
+
(function (CartTypeEnum) {
|
|
37
|
+
CartTypeEnum["\uC7A5\uBC14\uAD6C\uB2C8"] = "cart";
|
|
38
|
+
CartTypeEnum["\uC77C\uBC18"] = "normal";
|
|
39
|
+
})(CartTypeEnum || (exports.CartTypeEnum = CartTypeEnum = {}));
|
|
40
|
+
var PaymentMethodEnum;
|
|
41
|
+
(function (PaymentMethodEnum) {
|
|
42
|
+
/** @description 무통장 입금 */
|
|
43
|
+
PaymentMethodEnum["\uBB34\uD1B5\uC7A5"] = "yoloVBank";
|
|
44
|
+
/** @description 카드결제 */
|
|
45
|
+
PaymentMethodEnum["(\uAD6C)\uCE74\uB4DC"] = "card";
|
|
46
|
+
/** @description CHAI 결제 */
|
|
47
|
+
PaymentMethodEnum["\uCC28\uC774"] = "chai";
|
|
48
|
+
/** @description 무통장 입금 */
|
|
49
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uD1A0\uC2A4\uD398\uC774\uBA3C\uCE20_\uBB34\uD1B5\uC7A5"] = "imp_tossPayVBank";
|
|
50
|
+
/** @description 카드결제 */
|
|
51
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uD1A0\uC2A4\uD398\uC774\uBA3C\uCE20_\uCE74\uB4DC"] = "imp_tossPayCard";
|
|
52
|
+
/** @description 네이버페이 결제 */
|
|
53
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uB124\uC774\uBC84"] = "imp_naverPay";
|
|
54
|
+
/** @description 카카오페이 결제 */
|
|
55
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uCE74\uCE74\uC624"] = "imp_kakaoPay";
|
|
56
|
+
/** @description 페이코 결제 */
|
|
57
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uD398\uC774\uCF54"] = "imp_payco";
|
|
58
|
+
/** @description 토스페이 */
|
|
59
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uD1A0\uC2A4_\uC989\uC2DC"] = "imp_tossEasyPay";
|
|
60
|
+
/** @description 토스 장바구니 */
|
|
61
|
+
PaymentMethodEnum["\uD1A0\uC2A4_\uC7A5\uBC14\uAD6C\uB2C8"] = "toss_cartPay";
|
|
62
|
+
/** @description KB 페이 */
|
|
63
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uD1A0\uC2A4\uD398\uC774\uBA3C\uCE20_\uCE74\uB4DC_\uAD6D\uBBFC"] = "imp_tossPayCard_kb";
|
|
64
|
+
/** @description 해외카드 결제 */
|
|
65
|
+
PaymentMethodEnum["\uC544\uC784\uD3EC\uD2B8_\uC5D1\uC2EC\uBCA0\uC774"] = "imp_eximbay";
|
|
66
|
+
PaymentMethodEnum["\uC9C1\uC5F0\uB3D9_\uD035\uACC4\uC88C"] = "direct_tosspayments_trans";
|
|
67
|
+
PaymentMethodEnum["\uC9C1\uC5F0\uB3D9_\uD1A0\uC2A4\uD398\uC774"] = "direct_tosspayments_tosspay";
|
|
68
|
+
PaymentMethodEnum["\uC9C1\uC5F0\uB3D9_\uCE74\uB4DC"] = "direct_tosspayments_card";
|
|
69
|
+
PaymentMethodEnum["\uC9C1\uC5F0\uB3D9_\uAC00\uC0C1\uACC4\uC88C"] = "direct_tosspayments_vbank";
|
|
70
|
+
})(PaymentMethodEnum || (exports.PaymentMethodEnum = PaymentMethodEnum = {}));
|
|
71
|
+
/** @description 관리자 환불 조회 에러 코드 */
|
|
72
|
+
var GetRefundsForAdminErrorTypeEnum;
|
|
73
|
+
(function (GetRefundsForAdminErrorTypeEnum) {
|
|
74
|
+
GetRefundsForAdminErrorTypeEnum["\uD658\uBD88\uC694\uCCAD\uC77C_\uACB0\uC81C\uC77C_\uB458_\uC911_\uD558\uB098\uB77C\uB3C4_\uC788\uC5B4\uC57C\uD568"] = "NOT_EXISTS_REFUND_DATE_AND_PAYMENT_DATE";
|
|
75
|
+
GetRefundsForAdminErrorTypeEnum["\uD658\uBD88\uC694\uCCAD\uC77C_\uACB0\uC81C\uC77C_\uB450\uAC1C\uB2E4_\uC624\uBA74_\uC548\uB428"] = "EXISTS_BOTH_REFUND_DATE_AND_PAYMENT_DATE";
|
|
76
|
+
})(GetRefundsForAdminErrorTypeEnum || (exports.GetRefundsForAdminErrorTypeEnum = GetRefundsForAdminErrorTypeEnum = {}));
|
|
77
|
+
var BlockRefundWithdrawTypeEnum;
|
|
78
|
+
(function (BlockRefundWithdrawTypeEnum) {
|
|
79
|
+
BlockRefundWithdrawTypeEnum["\uD658\uBD88_\uCCA0\uD68C_\uB9C9\uD798"] = "blocked";
|
|
80
|
+
BlockRefundWithdrawTypeEnum["\uD658\uBD88_\uCCA0\uD68C_\uAC00\uB2A5"] = "notBlocked";
|
|
81
|
+
})(BlockRefundWithdrawTypeEnum || (exports.BlockRefundWithdrawTypeEnum = BlockRefundWithdrawTypeEnum = {}));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export * from './get-refunds-analytics-aggregation-refunding-top3.dto';
|
|
2
2
|
export * from './check-for-immediate-refund-availability-v2.dto';
|
|
3
3
|
export * from './get-refund-notice.dto';
|
|
4
|
+
export * from './get-refunds-for-admin.dto';
|
|
5
|
+
export * from './get-refund-errors-for-admin.dto';
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-refunds-analytics-aggregation-refunding-top3.dto"), exports);
|
|
18
18
|
__exportStar(require("./check-for-immediate-refund-availability-v2.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-refund-notice.dto"), exports);
|
|
20
|
+
__exportStar(require("./get-refunds-for-admin.dto"), exports);
|
|
21
|
+
__exportStar(require("./get-refund-errors-for-admin.dto"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { ReProcessNicepayBillingRefundByRefundErrorPayload, ReProcessTosspaymentsRefundByRefundErrorPayload, ResolveNicepayBillingRefundByRefundErrorPayload, ResolveTosspaymentsRefundByRefundErrorPayload } from '../dto';
|
|
4
|
-
import { CheckForImmediateRefundAvailabilityV2Payload, CheckForImmediateRefundAvailabilityV2Result, GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result, GetRefundNoticePayload, GetRefundNoticeResult } from '../dto/refund/query';
|
|
4
|
+
import { CheckForImmediateRefundAvailabilityV2Payload, CheckForImmediateRefundAvailabilityV2Result, GetRefundErrorsForAdminPayload, GetRefundsForAdminPayload, GetRefundsForAdminResult, GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result, GetRefundNoticePayload, GetRefundNoticeResult } from '../dto/refund/query';
|
|
5
5
|
export declare class AmqpRefundService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -12,6 +12,8 @@ export declare class AmqpRefundService {
|
|
|
12
12
|
resolveNicepayBillingRefundByRefundError(payload: ResolveNicepayBillingRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
13
13
|
reProcessNicepayBillingRefundByRefundError(payload: ReProcessNicepayBillingRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
14
14
|
getRefundsAnalyticsAggregationRefundingTop3(payload: GetRefundsAnalyticsAggregationRefundingTop3Payload, param: AbstractParam): Promise<GetRefundsAnalyticsAggregationRefundingTop3Result>;
|
|
15
|
+
getRefundsForAdmin(payload: GetRefundsForAdminPayload, param: AbstractParam): Promise<GetRefundsForAdminResult>;
|
|
16
|
+
getRefundErrorsForAdmin(payload: GetRefundErrorsForAdminPayload, param: AbstractParam): Promise<GetRefundsForAdminResult>;
|
|
15
17
|
checkForImmediateRefundAvailabilityV2(payload: CheckForImmediateRefundAvailabilityV2Payload, param: AbstractParam): Promise<CheckForImmediateRefundAvailabilityV2Result>;
|
|
16
18
|
getRefundNotice(payload: GetRefundNoticePayload, param: AbstractParam): Promise<GetRefundNoticeResult>;
|
|
17
19
|
}
|
|
@@ -40,6 +40,12 @@ let AmqpRefundService = exports.AmqpRefundService = class AmqpRefundService {
|
|
|
40
40
|
async getRefundsAnalyticsAggregationRefundingTop3(payload, param) {
|
|
41
41
|
return this.amqpManager.call('환불 요청이 가장 많은 Top 3 상품 조회', 'refund.get.analytics-aggregation-refunding-top3', payload, param);
|
|
42
42
|
}
|
|
43
|
+
async getRefundsForAdmin(payload, param) {
|
|
44
|
+
return this.amqpManager.call('관리자 환불 리스트 조회', 'refund.get.admin', payload, param, { isErrorThrowing: true });
|
|
45
|
+
}
|
|
46
|
+
async getRefundErrorsForAdmin(payload, param) {
|
|
47
|
+
return this.amqpManager.call('관리자 환불 오류 리스트 조회', 'refund.get.admin-refund-errors', payload, param, { isErrorThrowing: true });
|
|
48
|
+
}
|
|
43
49
|
async checkForImmediateRefundAvailabilityV2(payload, param) {
|
|
44
50
|
return this.amqpManager.call('환불 가능 여부 조회', 'refund.check-for-immediate-refund-availability-v2', payload, param, { isErrorThrowing: true });
|
|
45
51
|
}
|