@yolo-croket-dev/amqp-access 0.0.113 → 0.0.114-hj-01
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/order-server/dto/purchasedinfos/query/get-p-infos-for-partial-refund.dto.d.ts +11 -0
- package/order-server/dto/purchasedinfos/query/get-p-infos-for-partial-refund.dto.js +23 -0
- package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/query/index.js +1 -0
- package/order-server/services/amqp.purchased-info.service.d.ts +2 -1
- package/order-server/services/amqp.purchased-info.service.js +3 -0
- package/package.json +2 -2
- package/payment-service/amqp.payment-service.module.js +2 -0
- package/payment-service/dto/index.d.ts +2 -0
- package/payment-service/dto/index.js +2 -0
- package/payment-service/dto/partial-refund/command/create-partial-refund.dto.d.ts +40 -0
- package/payment-service/dto/partial-refund/command/create-partial-refund.dto.js +105 -0
- package/payment-service/dto/partial-refund/command/index.d.ts +1 -0
- package/payment-service/dto/partial-refund/command/index.js +17 -0
- package/payment-service/dto/partial-refund/index.d.ts +2 -0
- package/payment-service/dto/partial-refund/index.js +18 -0
- package/payment-service/dto/partial-refund/query/index.d.ts +1 -0
- package/payment-service/dto/partial-refund/query/index.js +17 -0
- package/payment-service/dto/partial-refund/query/search-partial-refunds-for-admin.dto.d.ts +24 -0
- package/payment-service/dto/partial-refund/query/search-partial-refunds-for-admin.dto.js +78 -0
- package/payment-service/dto/purchased-info/index.d.ts +1 -0
- package/payment-service/dto/purchased-info/index.js +17 -0
- package/payment-service/dto/purchased-info/query/get-purchased-info-for-partial-refund.dto.d.ts +3 -0
- package/payment-service/dto/purchased-info/query/get-purchased-info-for-partial-refund.dto.js +20 -0
- package/payment-service/dto/purchased-info/query/index.d.ts +1 -0
- package/payment-service/dto/purchased-info/query/index.js +17 -0
- package/payment-service/services/amqp.partial-refund.service.d.ts +10 -0
- package/payment-service/services/amqp.partial-refund.service.js +36 -0
- package/payment-service/services/index.d.ts +1 -0
- package/payment-service/services/index.js +1 -0
- package/user-service/dto/store/query/get-store-ids-by-store-title.dto.d.ts +6 -0
- package/user-service/dto/store/query/get-store-ids-by-store-title.dto.js +24 -0
- package/user-service/dto/store/query/get-store-titles-by-store-ids.dto.d.ts +10 -0
- package/user-service/dto/store/query/get-store-titles-by-store-ids.dto.js +26 -0
- package/user-service/dto/store/query/index.d.ts +2 -0
- package/user-service/dto/store/query/index.js +2 -0
- package/user-service/dto/user/query/get-user-ids-by-username.dto.d.ts +6 -0
- package/user-service/dto/user/query/get-user-ids-by-username.dto.js +24 -0
- package/user-service/dto/user/query/get-user-infos-for-partial-refund.dto.d.ts +13 -0
- package/user-service/dto/user/query/get-user-infos-for-partial-refund.dto.js +26 -0
- package/user-service/dto/user/query/index.d.ts +2 -0
- package/user-service/dto/user/query/index.js +2 -0
- package/user-service/services/amqp.store.service.d.ts +3 -1
- package/user-service/services/amqp.store.service.js +6 -0
- package/user-service/services/amqp.user-entity.service.d.ts +3 -0
- package/user-service/services/amqp.user-entity.service.js +6 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
|
|
2
|
+
export declare class GetPInfosForPartialRefundPayload {
|
|
3
|
+
PInfoIds: string[];
|
|
4
|
+
}
|
|
5
|
+
export type PInfoForPartialRefund = Pick<PurchasedInfoEntity, 'deliveryData'> & {
|
|
6
|
+
PInfoId: string;
|
|
7
|
+
process: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class GetPInfosForPartialRefundResult {
|
|
10
|
+
PInfos: PInfoForPartialRefund[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.GetPInfosForPartialRefundResult = exports.GetPInfosForPartialRefundPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetPInfosForPartialRefundPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetPInfosForPartialRefundPayload = GetPInfosForPartialRefundPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], GetPInfosForPartialRefundPayload.prototype, "PInfoIds", void 0);
|
|
21
|
+
class GetPInfosForPartialRefundResult {
|
|
22
|
+
}
|
|
23
|
+
exports.GetPInfosForPartialRefundResult = GetPInfosForPartialRefundResult;
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./search-seller-transaction-history-by-process.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-p-infos-for-manage-buyer.dto"), exports);
|
|
19
19
|
__exportStar(require("./atlas"), exports);
|
|
20
|
+
__exportStar(require("./get-p-infos-for-partial-refund.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult } from '../dto/purchasedinfos';
|
|
3
|
+
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPInfosForPartialRefundPayload, GetPInfosForPartialRefundResult } from '../dto/purchasedinfos';
|
|
4
4
|
export declare class AmqpPurchasedInfoService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -11,4 +11,5 @@ export declare class AmqpPurchasedInfoService {
|
|
|
11
11
|
getPInfoDoneSettleAmountByAtlas(payload: GetPInfoDoneSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoDoneSettleAmountByAtlasResult>;
|
|
12
12
|
getPInfoExpectSettleAmountByAtlas(payload: GetPInfoExpectSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoExpectSettleAmountByAtlasResult>;
|
|
13
13
|
getPInfoAccumulatedSettleAmountByAtlas(payload: GetPInfoAccumulatedSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoAccumulatedSettleAmountByAtlasResult>;
|
|
14
|
+
getPInfosForPartialRefund(payload: GetPInfosForPartialRefundPayload, param: AbstractParam): Promise<GetPInfosForPartialRefundResult>;
|
|
14
15
|
}
|
|
@@ -39,6 +39,9 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
|
39
39
|
async getPInfoAccumulatedSettleAmountByAtlas(payload, param) {
|
|
40
40
|
return this.amqpManager.call('atlas 검색 - 스토어 누적 정산금 조회', 'purchased-info.get.accumulated-settle-amount-by-atlas', payload, param, { isErrorThrowing: true });
|
|
41
41
|
}
|
|
42
|
+
async getPInfosForPartialRefund(payload, param) {
|
|
43
|
+
return this.amqpManager.call('결제 정보 - 부분환불용 결제 정보 리스트 조회', 'purchased-info.get.p-infos-for-partial-refund', payload, param, { isErrorThrowing: true });
|
|
44
|
+
}
|
|
42
45
|
};
|
|
43
46
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
|
|
44
47
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.114-hj-01",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@yolo-croket-dev/core": "^1.4.52",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.0.149",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.1.128",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.0.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.0.43-hj-04",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -20,11 +20,13 @@ exports.AmqpPaymentServiceModule = AmqpPaymentServiceModule = __decorate([
|
|
|
20
20
|
amqp_payment_service_provider_1.PaymentServiceProvider,
|
|
21
21
|
amqp_payment_service_service_1.AmqpPaymentService,
|
|
22
22
|
services_1.AmqpRefundService,
|
|
23
|
+
services_1.AmqpPartialRefundService,
|
|
23
24
|
],
|
|
24
25
|
exports: [
|
|
25
26
|
amqp_payment_service_provider_1.PaymentServiceProvider,
|
|
26
27
|
amqp_payment_service_service_1.AmqpPaymentService,
|
|
27
28
|
services_1.AmqpRefundService,
|
|
29
|
+
services_1.AmqpPartialRefundService,
|
|
28
30
|
],
|
|
29
31
|
})
|
|
30
32
|
], AmqpPaymentServiceModule);
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./command"), exports);
|
|
18
18
|
__exportStar(require("./query"), exports);
|
|
19
|
+
__exportStar(require("./partial-refund"), exports);
|
|
20
|
+
__exportStar(require("./purchased-info"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PartialRefundReasonTypeEnum, PartialRefundTypeEnum, ReturnFeeBearerEnum } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class RefundOption {
|
|
3
|
+
optionName: string;
|
|
4
|
+
refundNums: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class RefundOptionInfo {
|
|
7
|
+
refundOptionList: RefundOption[];
|
|
8
|
+
}
|
|
9
|
+
export declare class CreatePartialRefundPayload {
|
|
10
|
+
PInfoId: string;
|
|
11
|
+
refundType: PartialRefundTypeEnum;
|
|
12
|
+
refundOptionInfo?: RefundOptionInfo;
|
|
13
|
+
refundReasonType: PartialRefundReasonTypeEnum;
|
|
14
|
+
refundReasonEtc?: string;
|
|
15
|
+
returnFeeExists: boolean;
|
|
16
|
+
refundPrice?: number;
|
|
17
|
+
returnFee?: number;
|
|
18
|
+
negotiated: boolean;
|
|
19
|
+
returnFeeBearer?: ReturnFeeBearerEnum;
|
|
20
|
+
}
|
|
21
|
+
export declare enum CreatePartialRefundErrorTypeEnum {
|
|
22
|
+
/** @description 이미 부분환불 진행중 */
|
|
23
|
+
ALREADY_PROGRESS = "ALREADY_PROGRESS",
|
|
24
|
+
/** @description 결제정보 없음 */
|
|
25
|
+
NOT_FOUND_P_INFO = "NOT_FOUND_P_INFO",
|
|
26
|
+
/** @description 권한 없음 (구매자나 판매자가 아님) */
|
|
27
|
+
NO_PERMISSION = "NO_PERMISSION",
|
|
28
|
+
/** @description 부분환불을 할 수 없는 결제 프로세스 상태 */
|
|
29
|
+
INVALID_PAYMENT_PROCESS = "INVALID_PAYMENT_PROCESS",
|
|
30
|
+
/** @description 환불할 옵션 정보가 잘못됨 (옵션명 존재 X or 구매수 보다 환불할 수량이 더 많음) */
|
|
31
|
+
INVALID_REFUND_OPTION = "INVALID_REFUND_OPTION",
|
|
32
|
+
/** @description 환불금액 누락 */
|
|
33
|
+
NOT_EXISTS_REFUND_PRICE = "NOT_EXISTS_REFUND_PRICE",
|
|
34
|
+
/** @description 환불금액이 결제한 금액보다 높음 */
|
|
35
|
+
LIMIT_OVER_REFUND_PRICE = "LIMIT_OVER_REFUND_PRICE",
|
|
36
|
+
/** @description 반품비 누락 */
|
|
37
|
+
NOT_EXISTS_RETURN_PRICE = "NOT_EXISTS_RETURN_PRICE",
|
|
38
|
+
/** @description 환불사유 기타 누락 */
|
|
39
|
+
REFUND_REASON_ETC_EMPTY = "REFUND_REASON_ETC_EMPTY"
|
|
40
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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.CreatePartialRefundErrorTypeEnum = exports.CreatePartialRefundPayload = exports.RefundOptionInfo = exports.RefundOption = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
class RefundOption {
|
|
17
|
+
}
|
|
18
|
+
exports.RefundOption = RefundOption;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RefundOption.prototype, "optionName", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], RefundOption.prototype, "refundNums", void 0);
|
|
28
|
+
class RefundOptionInfo {
|
|
29
|
+
}
|
|
30
|
+
exports.RefundOptionInfo = RefundOptionInfo;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
33
|
+
(0, class_transformer_1.Type)(() => RefundOption),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], RefundOptionInfo.prototype, "refundOptionList", void 0);
|
|
36
|
+
class CreatePartialRefundPayload {
|
|
37
|
+
}
|
|
38
|
+
exports.CreatePartialRefundPayload = CreatePartialRefundPayload;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsMongoId)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreatePartialRefundPayload.prototype, "PInfoId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.PartialRefundTypeEnum),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreatePartialRefundPayload.prototype, "refundType", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_transformer_1.Type)(() => RefundOptionInfo),
|
|
50
|
+
__metadata("design:type", RefundOptionInfo)
|
|
51
|
+
], CreatePartialRefundPayload.prototype, "refundOptionInfo", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.PartialRefundReasonTypeEnum),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CreatePartialRefundPayload.prototype, "refundReasonType", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CreatePartialRefundPayload.prototype, "refundReasonEtc", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], CreatePartialRefundPayload.prototype, "returnFeeExists", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], CreatePartialRefundPayload.prototype, "refundPrice", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsNumber)(),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], CreatePartialRefundPayload.prototype, "returnFee", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsBoolean)(),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], CreatePartialRefundPayload.prototype, "negotiated", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.ReturnFeeBearerEnum),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], CreatePartialRefundPayload.prototype, "returnFeeBearer", void 0);
|
|
85
|
+
var CreatePartialRefundErrorTypeEnum;
|
|
86
|
+
(function (CreatePartialRefundErrorTypeEnum) {
|
|
87
|
+
/** @description 이미 부분환불 진행중 */
|
|
88
|
+
CreatePartialRefundErrorTypeEnum["ALREADY_PROGRESS"] = "ALREADY_PROGRESS";
|
|
89
|
+
/** @description 결제정보 없음 */
|
|
90
|
+
CreatePartialRefundErrorTypeEnum["NOT_FOUND_P_INFO"] = "NOT_FOUND_P_INFO";
|
|
91
|
+
/** @description 권한 없음 (구매자나 판매자가 아님) */
|
|
92
|
+
CreatePartialRefundErrorTypeEnum["NO_PERMISSION"] = "NO_PERMISSION";
|
|
93
|
+
/** @description 부분환불을 할 수 없는 결제 프로세스 상태 */
|
|
94
|
+
CreatePartialRefundErrorTypeEnum["INVALID_PAYMENT_PROCESS"] = "INVALID_PAYMENT_PROCESS";
|
|
95
|
+
/** @description 환불할 옵션 정보가 잘못됨 (옵션명 존재 X or 구매수 보다 환불할 수량이 더 많음) */
|
|
96
|
+
CreatePartialRefundErrorTypeEnum["INVALID_REFUND_OPTION"] = "INVALID_REFUND_OPTION";
|
|
97
|
+
/** @description 환불금액 누락 */
|
|
98
|
+
CreatePartialRefundErrorTypeEnum["NOT_EXISTS_REFUND_PRICE"] = "NOT_EXISTS_REFUND_PRICE";
|
|
99
|
+
/** @description 환불금액이 결제한 금액보다 높음 */
|
|
100
|
+
CreatePartialRefundErrorTypeEnum["LIMIT_OVER_REFUND_PRICE"] = "LIMIT_OVER_REFUND_PRICE";
|
|
101
|
+
/** @description 반품비 누락 */
|
|
102
|
+
CreatePartialRefundErrorTypeEnum["NOT_EXISTS_RETURN_PRICE"] = "NOT_EXISTS_RETURN_PRICE";
|
|
103
|
+
/** @description 환불사유 기타 누락 */
|
|
104
|
+
CreatePartialRefundErrorTypeEnum["REFUND_REASON_ETC_EMPTY"] = "REFUND_REASON_ETC_EMPTY";
|
|
105
|
+
})(CreatePartialRefundErrorTypeEnum || (exports.CreatePartialRefundErrorTypeEnum = CreatePartialRefundErrorTypeEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-partial-refund.dto';
|
|
@@ -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("./create-partial-refund.dto"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./command"), exports);
|
|
18
|
+
__exportStar(require("./query"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './search-partial-refunds-for-admin.dto';
|
|
@@ -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("./search-partial-refunds-for-admin.dto"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PartialRefundForAdminEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class SearchPartialRefundsForAdminPayload {
|
|
3
|
+
startRefundDate: Date;
|
|
4
|
+
endRefundDate: Date;
|
|
5
|
+
lastPurchasedProcess?: string;
|
|
6
|
+
isCSCheck?: boolean;
|
|
7
|
+
PInfoId?: string;
|
|
8
|
+
publicId?: string;
|
|
9
|
+
imp_uid?: string;
|
|
10
|
+
userId?: string;
|
|
11
|
+
username?: string;
|
|
12
|
+
storeTitle?: string;
|
|
13
|
+
page: number;
|
|
14
|
+
limit: number;
|
|
15
|
+
}
|
|
16
|
+
export declare class TotalCountByProcessType {
|
|
17
|
+
SUBMISSION: number;
|
|
18
|
+
COMPLATED: number;
|
|
19
|
+
WITHDRAWAL: number;
|
|
20
|
+
}
|
|
21
|
+
export declare class SearchPartialRefundsForAdminResult {
|
|
22
|
+
partialRefunds: PartialRefundForAdminEntity[];
|
|
23
|
+
totalCountByProcessType: TotalCountByProcessType;
|
|
24
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.SearchPartialRefundsForAdminResult = exports.TotalCountByProcessType = exports.SearchPartialRefundsForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SearchPartialRefundsForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.SearchPartialRefundsForAdminPayload = SearchPartialRefundsForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], SearchPartialRefundsForAdminPayload.prototype, "startRefundDate", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
__metadata("design:type", Date)
|
|
24
|
+
], SearchPartialRefundsForAdminPayload.prototype, "endRefundDate", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SearchPartialRefundsForAdminPayload.prototype, "lastPurchasedProcess", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsBoolean)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], SearchPartialRefundsForAdminPayload.prototype, "isCSCheck", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsMongoId)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], SearchPartialRefundsForAdminPayload.prototype, "PInfoId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SearchPartialRefundsForAdminPayload.prototype, "publicId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], SearchPartialRefundsForAdminPayload.prototype, "imp_uid", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsMongoId)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], SearchPartialRefundsForAdminPayload.prototype, "userId", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], SearchPartialRefundsForAdminPayload.prototype, "username", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], SearchPartialRefundsForAdminPayload.prototype, "storeTitle", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsNumber)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], SearchPartialRefundsForAdminPayload.prototype, "page", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsNumber)(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], SearchPartialRefundsForAdminPayload.prototype, "limit", void 0);
|
|
73
|
+
class TotalCountByProcessType {
|
|
74
|
+
}
|
|
75
|
+
exports.TotalCountByProcessType = TotalCountByProcessType;
|
|
76
|
+
class SearchPartialRefundsForAdminResult {
|
|
77
|
+
}
|
|
78
|
+
exports.SearchPartialRefundsForAdminResult = SearchPartialRefundsForAdminResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './query';
|
|
@@ -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("./query"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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.GetPurchasedInfoForPartialRefundPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetPurchasedInfoForPartialRefundPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetPurchasedInfoForPartialRefundPayload = GetPurchasedInfoForPartialRefundPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetPurchasedInfoForPartialRefundPayload.prototype, "PInfoId", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-purchased-info-for-partial-refund.dto';
|
|
@@ -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("./get-purchased-info-for-partial-refund.dto"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreatePartialRefundPayload, SearchPartialRefundsForAdminPayload, SearchPartialRefundsForAdminResult } from '../dto';
|
|
4
|
+
export declare class AmqpPartialRefundService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
createPartialRefund(payload: CreatePartialRefundPayload, param: AbstractParam): Promise<void>;
|
|
9
|
+
searchPartialRefunds(payload: SearchPartialRefundsForAdminPayload, param: AbstractParam): Promise<SearchPartialRefundsForAdminResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AmqpPartialRefundService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
+
let AmqpPartialRefundService = class AmqpPartialRefundService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async createPartialRefund(payload, param) {
|
|
25
|
+
return this.amqpManager.call('부분환불 - 생성', 'partial-refund.create', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async searchPartialRefunds(payload, param) {
|
|
28
|
+
return this.amqpManager.call('부분환불 - 관리자용 리스트 조회', 'partial-refund.create', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.AmqpPartialRefundService = AmqpPartialRefundService;
|
|
32
|
+
exports.AmqpPartialRefundService = AmqpPartialRefundService = __decorate([
|
|
33
|
+
(0, common_1.Injectable)(),
|
|
34
|
+
__param(0, (0, common_1.Inject)('PAYMENT_SERVICE_PROVIDER')),
|
|
35
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
36
|
+
], AmqpPartialRefundService);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./amqp.refund.service"), exports);
|
|
18
|
+
__exportStar(require("./amqp.partial-refund.service"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
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.GetStoreIdsByStoreTitleResult = exports.GetStoreIdsByStoreTitlePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetStoreIdsByStoreTitlePayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetStoreIdsByStoreTitlePayload = GetStoreIdsByStoreTitlePayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetStoreIdsByStoreTitlePayload.prototype, "storeTitle", void 0);
|
|
22
|
+
class GetStoreIdsByStoreTitleResult {
|
|
23
|
+
}
|
|
24
|
+
exports.GetStoreIdsByStoreTitleResult = GetStoreIdsByStoreTitleResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class GetStoreTitlesByStoreIdsPayload {
|
|
2
|
+
storeIds: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare class StoreTitleByStoreId {
|
|
5
|
+
storeId: string;
|
|
6
|
+
storeTitle: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class GetStoreTitlesByStoreIdsResult {
|
|
9
|
+
storeTitles: StoreTitleByStoreId[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.GetStoreTitlesByStoreIdsResult = exports.StoreTitleByStoreId = exports.GetStoreTitlesByStoreIdsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetStoreTitlesByStoreIdsPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetStoreTitlesByStoreIdsPayload = GetStoreTitlesByStoreIdsPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], GetStoreTitlesByStoreIdsPayload.prototype, "storeIds", void 0);
|
|
21
|
+
class StoreTitleByStoreId {
|
|
22
|
+
}
|
|
23
|
+
exports.StoreTitleByStoreId = StoreTitleByStoreId;
|
|
24
|
+
class GetStoreTitlesByStoreIdsResult {
|
|
25
|
+
}
|
|
26
|
+
exports.GetStoreTitlesByStoreIdsResult = GetStoreTitlesByStoreIdsResult;
|
|
@@ -2,3 +2,5 @@ export * from './get-stores-for-toss-payment.dto';
|
|
|
2
2
|
export * from './get-domestic-account-stores.dto';
|
|
3
3
|
export * from './get-domestic-account-store-info.dto';
|
|
4
4
|
export * from './atlas';
|
|
5
|
+
export * from './get-store-ids-by-store-title.dto';
|
|
6
|
+
export * from './get-store-titles-by-store-ids.dto';
|
|
@@ -18,3 +18,5 @@ __exportStar(require("./get-stores-for-toss-payment.dto"), exports);
|
|
|
18
18
|
__exportStar(require("./get-domestic-account-stores.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-domestic-account-store-info.dto"), exports);
|
|
20
20
|
__exportStar(require("./atlas"), exports);
|
|
21
|
+
__exportStar(require("./get-store-ids-by-store-title.dto"), exports);
|
|
22
|
+
__exportStar(require("./get-store-titles-by-store-ids.dto"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
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.GetUserIdsByUsernameResult = exports.GetUserIdsByUsernamePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetUserIdsByUsernamePayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetUserIdsByUsernamePayload = GetUserIdsByUsernamePayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetUserIdsByUsernamePayload.prototype, "username", void 0);
|
|
22
|
+
class GetUserIdsByUsernameResult {
|
|
23
|
+
}
|
|
24
|
+
exports.GetUserIdsByUsernameResult = GetUserIdsByUsernameResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class GetUserInfosForPartialRefundPayload {
|
|
2
|
+
userIds: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare class UserInfoForPartialRefund {
|
|
5
|
+
userId: string;
|
|
6
|
+
email: string;
|
|
7
|
+
username: string;
|
|
8
|
+
phoneCountry: string;
|
|
9
|
+
phoneNumber: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class GetUserInfosForPartialRefundResult {
|
|
12
|
+
userInfos: UserInfoForPartialRefund[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.GetUserInfosForPartialRefundResult = exports.UserInfoForPartialRefund = exports.GetUserInfosForPartialRefundPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetUserInfosForPartialRefundPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetUserInfosForPartialRefundPayload = GetUserInfosForPartialRefundPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], GetUserInfosForPartialRefundPayload.prototype, "userIds", void 0);
|
|
21
|
+
class UserInfoForPartialRefund {
|
|
22
|
+
}
|
|
23
|
+
exports.UserInfoForPartialRefund = UserInfoForPartialRefund;
|
|
24
|
+
class GetUserInfosForPartialRefundResult {
|
|
25
|
+
}
|
|
26
|
+
exports.GetUserInfosForPartialRefundResult = GetUserInfosForPartialRefundResult;
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-user-info-by-id.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-users-for-admin.dto"), exports);
|
|
19
|
+
__exportStar(require("./get-user-ids-by-username.dto"), exports);
|
|
20
|
+
__exportStar(require("./get-user-infos-for-partial-refund.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 { DomesticAccountStoreEntity, StoreForTossPaymentEntity } from '@yolo-croket-dev/entity-v2';
|
|
4
|
-
import { GetDomesticAccountStoreInfoPayload, GetDomesticAccountStoresPayload, MigrationTossPaymentsSettlementProxySellerIdResult, UpdatePrivateSellerInfoSellerAddressPayload, GetUserIdsByStoreTitlePayload, GetUserIdsByStoreTitleResult } from '../dto/store';
|
|
4
|
+
import { GetDomesticAccountStoreInfoPayload, GetDomesticAccountStoresPayload, MigrationTossPaymentsSettlementProxySellerIdResult, UpdatePrivateSellerInfoSellerAddressPayload, GetUserIdsByStoreTitlePayload, GetUserIdsByStoreTitleResult, GetStoreIdsByStoreTitlePayload, GetStoreIdsByStoreTitleResult, GetStoreTitlesByStoreIdsPayload, GetStoreTitlesByStoreIdsResult } from '../dto/store';
|
|
5
5
|
import { GetStoresForTossPaymentPayload } from '../dto/store/query/get-stores-for-toss-payment.dto';
|
|
6
6
|
export declare class AmqpStoreService {
|
|
7
7
|
private readonly client;
|
|
@@ -13,4 +13,6 @@ export declare class AmqpStoreService {
|
|
|
13
13
|
getDomesticAccountStores(payload: GetDomesticAccountStoresPayload, param: AbstractParam): Promise<DomesticAccountStoreEntity[]>;
|
|
14
14
|
getDomesticAccountStoreInfo(payload: GetDomesticAccountStoreInfoPayload, param: AbstractParam): Promise<DomesticAccountStoreEntity>;
|
|
15
15
|
getUserIdsByStoreTitle(payload: GetUserIdsByStoreTitlePayload, param: AbstractParam): Promise<GetUserIdsByStoreTitleResult>;
|
|
16
|
+
getStoreIdsByStoreTitle(payload: GetStoreIdsByStoreTitlePayload, param: AbstractParam): Promise<GetStoreIdsByStoreTitleResult>;
|
|
17
|
+
getStoreTitlesByStoreIds(payload: GetStoreTitlesByStoreIdsPayload, param: AbstractParam): Promise<GetStoreTitlesByStoreIdsResult>;
|
|
16
18
|
}
|
|
@@ -39,6 +39,12 @@ let AmqpStoreService = class AmqpStoreService {
|
|
|
39
39
|
async getUserIdsByStoreTitle(payload, param) {
|
|
40
40
|
return this.amqpManager.call('[atlas] 스토어 타이틀로 유저 리스트 출력', 'store.get.user-ids-by-store-title', payload, param, { isErrorThrowing: true });
|
|
41
41
|
}
|
|
42
|
+
async getStoreIdsByStoreTitle(payload, param) {
|
|
43
|
+
return this.amqpManager.call('스토어 타이틀로 스토어 아이디 리스트 출력', 'store.get.store-ids-by-store-title', payload, param, { isErrorThrowing: true });
|
|
44
|
+
}
|
|
45
|
+
async getStoreTitlesByStoreIds(payload, param) {
|
|
46
|
+
return this.amqpManager.call('스토어 아이디 리스트로 스토어 타이틀 리스트 출력', 'store.get.store-titles-by-store-ids', payload, param, { isErrorThrowing: true });
|
|
47
|
+
}
|
|
42
48
|
};
|
|
43
49
|
exports.AmqpStoreService = AmqpStoreService;
|
|
44
50
|
exports.AmqpStoreService = AmqpStoreService = __decorate([
|
|
@@ -3,6 +3,7 @@ import { AbstractParam } from '@yolo-croket-dev/core';
|
|
|
3
3
|
/** @dto -v2 */
|
|
4
4
|
import { DecodePhoneNumbersPayload, PhoneDecodedData } from '@yolo-croket-dev/dto-v2/user-service';
|
|
5
5
|
import { SaveShippingAddressPayload } from '../dto/user/command/save-shipping-address.dto';
|
|
6
|
+
import { GetUserIdsByUsernamePayload, GetUserIdsByUsernameResult, GetUserInfosForPartialRefundPayload, GetUserInfosForPartialRefundResult } from '../dto';
|
|
6
7
|
/** 기존 userService 와 이름이 겹쳐 userEntityService로 임시 사용 */
|
|
7
8
|
export declare class AmqpUserEntityService {
|
|
8
9
|
private readonly client;
|
|
@@ -10,4 +11,6 @@ export declare class AmqpUserEntityService {
|
|
|
10
11
|
constructor(client: ClientProxy);
|
|
11
12
|
decodePhoneNumbers(payload: DecodePhoneNumbersPayload, param: AbstractParam): Promise<PhoneDecodedData[]>;
|
|
12
13
|
saveShippingAddress(payload: SaveShippingAddressPayload, param: AbstractParam): Promise<void>;
|
|
14
|
+
getUserIdsByUsername(payload: GetUserIdsByUsernamePayload, param: AbstractParam): Promise<GetUserIdsByUsernameResult>;
|
|
15
|
+
getUserInfosForPartialRefund(payload: GetUserInfosForPartialRefundPayload, param: AbstractParam): Promise<GetUserInfosForPartialRefundResult>;
|
|
13
16
|
}
|
|
@@ -28,6 +28,12 @@ let AmqpUserEntityService = class AmqpUserEntityService {
|
|
|
28
28
|
async saveShippingAddress(payload, param) {
|
|
29
29
|
return this.amqpManager.call('유저 - 배송 주소 정보 저장', 'user.save.shipping-address', payload, param, { isErrorThrowing: true });
|
|
30
30
|
}
|
|
31
|
+
async getUserIdsByUsername(payload, param) {
|
|
32
|
+
return this.amqpManager.call('유저 - 유저이름으로 아이디들 조회', 'user.get.user-ids-by-username', payload, param, { isErrorThrowing: true });
|
|
33
|
+
}
|
|
34
|
+
async getUserInfosForPartialRefund(payload, param) {
|
|
35
|
+
return this.amqpManager.call('유저 - 부분환불용 유저 정보 조회', 'user.get.user-infos-for-partial-refund', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
31
37
|
};
|
|
32
38
|
exports.AmqpUserEntityService = AmqpUserEntityService;
|
|
33
39
|
exports.AmqpUserEntityService = AmqpUserEntityService = __decorate([
|