@yolo-croket-dev/amqp-access 0.7.349 → 0.7.351
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/customs/command/create-checkout-customs-verification.dto.d.ts +3 -2
- package/package.json +1 -1
- 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 +7 -1
- package/payment-service/services/amqp.settle.service.js +8 -0
- package/user-service/services/amqp.signup-certification.service.d.ts +14 -0
- package/user-service/services/amqp.signup-certification.service.js +38 -0
|
@@ -18,8 +18,9 @@ export declare class CreateCheckoutCustomsVerificationPayload extends CustomsOrd
|
|
|
18
18
|
}
|
|
19
19
|
/** @author 홍준 @description 통관 인증 발급 결과 @process 인증번호와 CI를 제외하고 입력 화면에 필요한 정보만 반환한다. */
|
|
20
20
|
export declare class CreateCheckoutCustomsVerificationResult {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
/** @description 저장된 인증 ID. iOS 통관 비대상 주문의 성공 응답에서는 생략한다. */
|
|
22
|
+
verificationId?: string;
|
|
23
|
+
/** @description 사용자 OTP 입력이 남아 있으면 true. false는 인증 완료 또는 iOS 통관 비대상을 의미하며, 비대상은 인증 ID가 없다. */
|
|
23
24
|
isOtpVerificationRequired: boolean;
|
|
24
25
|
maskedEmail?: string;
|
|
25
26
|
}
|
package/package.json
CHANGED
|
@@ -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,11 +1,17 @@
|
|
|
1
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>;
|
|
@@ -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 });
|
|
@@ -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);
|