@yolo-croket-dev/amqp-access 0.7.348 → 0.7.350
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 +3 -3
- package/payment-service/dto/settle/command/index.d.ts +1 -0
- package/payment-service/dto/settle/command/index.js +17 -0
- package/payment-service/dto/settle/command/revert-abroad-settles-to-proceeding.dto.d.ts +22 -0
- package/payment-service/dto/settle/command/revert-abroad-settles-to-proceeding.dto.js +60 -0
- package/payment-service/dto/settle/index.d.ts +1 -0
- package/payment-service/dto/settle/index.js +1 -0
- package/payment-service/services/amqp.settle.service.d.ts +20 -2
- package/payment-service/services/amqp.settle.service.js +32 -0
- package/user-service/services/amqp.signup-certification.service.d.ts +14 -0
- package/user-service/services/amqp.signup-certification.service.js +38 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.350",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"@nestjs/mapped-types": "2.0.2",
|
|
22
22
|
"@yolo-croket-dev/core": "^1.9.3",
|
|
23
23
|
"@yolo-croket-dev/domain": "0.2.47",
|
|
24
|
-
"@yolo-croket-dev/dto-v2": "0.2.
|
|
24
|
+
"@yolo-croket-dev/dto-v2": "0.2.31",
|
|
25
25
|
"@yolo-croket-dev/entity": "0.2.109",
|
|
26
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
26
|
+
"@yolo-croket-dev/entity-v2": "0.3.51",
|
|
27
27
|
"class-transformer": "^0.5.1",
|
|
28
28
|
"class-validator": "^0.13.2",
|
|
29
29
|
"dotenv": "^16.3.1"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './revert-abroad-settles-to-proceeding.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("./revert-abroad-settles-to-proceeding.dto"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ManageUserInfo } from '../../command/delete-settles.dto';
|
|
2
|
+
/**
|
|
3
|
+
* @author 홍준
|
|
4
|
+
* @description 정산 생성 묶음의 해외 정산 완료를 해외송금중으로 되돌리는 요청
|
|
5
|
+
* @process regTraceId로 생성 묶음을 지정하고 완료 traceId와 셀러로 대상을 좁힌다.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RevertAbroadSettlesToProceedingPayload {
|
|
8
|
+
regTraceId: string;
|
|
9
|
+
abroadDoneTraceId?: string;
|
|
10
|
+
sellerId?: string;
|
|
11
|
+
reason: string;
|
|
12
|
+
manageUserInfo: ManageUserInfo;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @author 홍준
|
|
16
|
+
* @description 해외송금중으로 변경한 정산 및 송금 내역 수
|
|
17
|
+
* @process 트랜잭션이 완료된 변경 수를 반환한다.
|
|
18
|
+
*/
|
|
19
|
+
export declare class RevertAbroadSettlesToProceedingResult {
|
|
20
|
+
settleCount: number;
|
|
21
|
+
remittanceCount: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.RevertAbroadSettlesToProceedingResult = exports.RevertAbroadSettlesToProceedingPayload = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const delete_settles_dto_1 = require("../../command/delete-settles.dto");
|
|
16
|
+
/**
|
|
17
|
+
* @author 홍준
|
|
18
|
+
* @description 정산 생성 묶음의 해외 정산 완료를 해외송금중으로 되돌리는 요청
|
|
19
|
+
* @process regTraceId로 생성 묶음을 지정하고 완료 traceId와 셀러로 대상을 좁힌다.
|
|
20
|
+
*/
|
|
21
|
+
class RevertAbroadSettlesToProceedingPayload {
|
|
22
|
+
}
|
|
23
|
+
exports.RevertAbroadSettlesToProceedingPayload = RevertAbroadSettlesToProceedingPayload;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.Matches)(/\S/),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RevertAbroadSettlesToProceedingPayload.prototype, "regTraceId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.ValidateIf)((_object, value) => value !== undefined),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.Matches)(/\S/),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], RevertAbroadSettlesToProceedingPayload.prototype, "abroadDoneTraceId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsMongoId)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], RevertAbroadSettlesToProceedingPayload.prototype, "sellerId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.Matches)(/\S/),
|
|
44
|
+
(0, class_validator_1.MaxLength)(500),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], RevertAbroadSettlesToProceedingPayload.prototype, "reason", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsDefined)(),
|
|
49
|
+
(0, class_validator_1.ValidateNested)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => delete_settles_dto_1.ManageUserInfo),
|
|
51
|
+
__metadata("design:type", delete_settles_dto_1.ManageUserInfo)
|
|
52
|
+
], RevertAbroadSettlesToProceedingPayload.prototype, "manageUserInfo", void 0);
|
|
53
|
+
/**
|
|
54
|
+
* @author 홍준
|
|
55
|
+
* @description 해외송금중으로 변경한 정산 및 송금 내역 수
|
|
56
|
+
* @process 트랜잭션이 완료된 변경 수를 반환한다.
|
|
57
|
+
*/
|
|
58
|
+
class RevertAbroadSettlesToProceedingResult {
|
|
59
|
+
}
|
|
60
|
+
exports.RevertAbroadSettlesToProceedingResult = RevertAbroadSettlesToProceedingResult;
|
|
@@ -1,13 +1,31 @@
|
|
|
1
|
-
import { GetPendingSettlesPayload, GetPendingSettlesResult } from '@yolo-croket-dev/dto-v2/payment-service';
|
|
1
|
+
import { CreateAdjustmentPlanPayload, UpdateAdjustmentPlanPayload, DeleteAdjustmentPlansPayload, GetAdjustmentPlansPayload, GetAdjustmentPlanPaymentPayload, GetAdjustmentPlansForExportPayload, GetAdjustmentPlansResult, GetAdjustmentPlansForExportResult, AdjustmentPlanRow, AdjustmentPlanPayment, GetPendingSettlesPayload, GetPendingSettlesResult } from '@yolo-croket-dev/dto-v2/payment-service';
|
|
2
2
|
import { ClientProxy } from '@nestjs/microservices';
|
|
3
3
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
4
|
-
import { GetAbroadSettleRemittancePdfDataForUserPayload, GetAbroadSettleRemittancePdfDataForUserResult, GetAbroadSettleRemittancesForUserPayload, GetAbroadSettleRemittancesForUserResult } from '../dto';
|
|
4
|
+
import { RevertAbroadSettlesToProceedingPayload, RevertAbroadSettlesToProceedingResult, GetAbroadSettleRemittancePdfDataForUserPayload, GetAbroadSettleRemittancePdfDataForUserResult, GetAbroadSettleRemittancesForUserPayload, GetAbroadSettleRemittancesForUserResult } from '../dto';
|
|
5
5
|
export declare class AmqpSettleService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
8
8
|
constructor(client: ClientProxy);
|
|
9
|
+
/**
|
|
10
|
+
* @author 홍준
|
|
11
|
+
* @description 완료된 해외 정산을 해외송금중으로 변경한다.
|
|
12
|
+
* @process 관리자 정보와 변경 사유를 payment-service에 전달한다.
|
|
13
|
+
*/
|
|
14
|
+
revertAbroadSettlesToProceeding(payload: RevertAbroadSettlesToProceedingPayload, param: AbstractParam): Promise<RevertAbroadSettlesToProceedingResult>;
|
|
9
15
|
/** @description 관리자용 정산 보류 자료를 조회한다. */
|
|
10
16
|
getPendingSettles(payload: GetPendingSettlesPayload, param: AbstractParam): Promise<GetPendingSettlesResult>;
|
|
11
17
|
getAbroadSettleRemittancesForUser(payload: GetAbroadSettleRemittancesForUserPayload, param: AbstractParam): Promise<GetAbroadSettleRemittancesForUserResult>;
|
|
12
18
|
getAbroadSettleRemittancePdfDataForUser(payload: GetAbroadSettleRemittancePdfDataForUserPayload, param: AbstractParam): Promise<GetAbroadSettleRemittancePdfDataForUserResult>;
|
|
19
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
20
|
+
getAdjustmentPlans(payload: GetAdjustmentPlansPayload, param: AbstractParam): Promise<GetAdjustmentPlansResult>;
|
|
21
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
22
|
+
getAdjustmentPlanPayment(payload: GetAdjustmentPlanPaymentPayload, param: AbstractParam): Promise<AdjustmentPlanPayment>;
|
|
23
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
24
|
+
getAdjustmentPlansForExport(payload: GetAdjustmentPlansForExportPayload, param: AbstractParam): Promise<GetAdjustmentPlansForExportResult>;
|
|
25
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
26
|
+
createAdjustmentPlan(payload: CreateAdjustmentPlanPayload, param: AbstractParam): Promise<AdjustmentPlanRow>;
|
|
27
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
28
|
+
updateAdjustmentPlan(payload: UpdateAdjustmentPlanPayload, param: AbstractParam): Promise<AdjustmentPlanRow>;
|
|
29
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
30
|
+
deleteAdjustmentPlans(payload: DeleteAdjustmentPlansPayload, param: AbstractParam): Promise<void>;
|
|
13
31
|
}
|
|
@@ -21,6 +21,14 @@ let AmqpSettleService = class AmqpSettleService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* @author 홍준
|
|
26
|
+
* @description 완료된 해외 정산을 해외송금중으로 변경한다.
|
|
27
|
+
* @process 관리자 정보와 변경 사유를 payment-service에 전달한다.
|
|
28
|
+
*/
|
|
29
|
+
async revertAbroadSettlesToProceeding(payload, param) {
|
|
30
|
+
return this.amqpManager.call('해외 정산 해외송금중 변경', 'settle.update.abroad-settles-to-proceeding', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
24
32
|
/** @description 관리자용 정산 보류 자료를 조회한다. */
|
|
25
33
|
async getPendingSettles(payload, param) {
|
|
26
34
|
return this.amqpManager.call('정산 보류 자료', 'settle.get.pending-settles', payload, param, { isErrorThrowing: true });
|
|
@@ -31,6 +39,30 @@ let AmqpSettleService = class AmqpSettleService {
|
|
|
31
39
|
async getAbroadSettleRemittancePdfDataForUser(payload, param) {
|
|
32
40
|
return this.amqpManager.call('외화 기준 정산 인보이스 PDF 데이터 조회', 'settle.get.abroad-settle-remittance-pdf-data.for-user', payload, param, { isErrorThrowing: true });
|
|
33
41
|
}
|
|
42
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
43
|
+
async getAdjustmentPlans(payload, param) {
|
|
44
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.get.list', payload, param, { isErrorThrowing: true });
|
|
45
|
+
}
|
|
46
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
47
|
+
async getAdjustmentPlanPayment(payload, param) {
|
|
48
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.get.payment', payload, param, { isErrorThrowing: true });
|
|
49
|
+
}
|
|
50
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
51
|
+
async getAdjustmentPlansForExport(payload, param) {
|
|
52
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.get.export', payload, param, { isErrorThrowing: true });
|
|
53
|
+
}
|
|
54
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
55
|
+
async createAdjustmentPlan(payload, param) {
|
|
56
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.create.one', payload, param, { isErrorThrowing: true });
|
|
57
|
+
}
|
|
58
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
59
|
+
async updateAdjustmentPlan(payload, param) {
|
|
60
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.update.one', payload, param, { isErrorThrowing: true });
|
|
61
|
+
}
|
|
62
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
63
|
+
async deleteAdjustmentPlans(payload, param) {
|
|
64
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.delete.list', payload, param, { isErrorThrowing: true });
|
|
65
|
+
}
|
|
34
66
|
};
|
|
35
67
|
exports.AmqpSettleService = AmqpSettleService;
|
|
36
68
|
exports.AmqpSettleService = AmqpSettleService = __decorate([
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { ClaimSignupCertificationPayload, ClaimSignupCertificationResult } from '../dto/signup-certification';
|
|
4
|
+
/**
|
|
5
|
+
* @author 홍준
|
|
6
|
+
* @description 가입 전 본인인증 귀속 AMQP client
|
|
7
|
+
* @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AmqpSignupCertificationService {
|
|
10
|
+
private readonly client;
|
|
11
|
+
private readonly amqpManager;
|
|
12
|
+
constructor(client: ClientProxy);
|
|
13
|
+
claim(payload: ClaimSignupCertificationPayload, param: AbstractParam): Promise<ClaimSignupCertificationResult>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.AmqpSignupCertificationService = 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
|
+
/**
|
|
20
|
+
* @author 홍준
|
|
21
|
+
* @description 가입 전 본인인증 귀속 AMQP client
|
|
22
|
+
* @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
|
|
23
|
+
*/
|
|
24
|
+
let AmqpSignupCertificationService = class AmqpSignupCertificationService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
async claim(payload, param) {
|
|
30
|
+
return this.amqpManager.call('가입 전 본인인증 사용자 귀속', 'signup-certification.claim', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.AmqpSignupCertificationService = AmqpSignupCertificationService;
|
|
34
|
+
exports.AmqpSignupCertificationService = AmqpSignupCertificationService = __decorate([
|
|
35
|
+
(0, common_1.Injectable)(),
|
|
36
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
37
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
38
|
+
], AmqpSignupCertificationService);
|