@yolo-croket-dev/amqp-access 0.7.328 → 0.7.330
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/amqp.order-server.module.js +2 -0
- package/order-server/dto/customs/command/check-checkout-customs-receiver.dto.d.ts +11 -0
- package/order-server/dto/customs/command/check-checkout-customs-receiver.dto.js +33 -0
- package/order-server/dto/customs/command/complete-checkout-customs-verification.dto.d.ts +10 -0
- package/order-server/dto/customs/command/complete-checkout-customs-verification.dto.js +30 -0
- package/order-server/dto/customs/command/create-checkout-customs-verification.dto.d.ts +25 -0
- package/order-server/dto/customs/command/create-checkout-customs-verification.dto.js +68 -0
- package/order-server/dto/customs/command/index.d.ts +3 -0
- package/order-server/dto/customs/command/index.js +3 -0
- package/order-server/dto/customs/query/index.d.ts +1 -0
- package/order-server/dto/customs/query/index.js +1 -0
- package/order-server/dto/customs/query/validate-checkout-customs-verification.dto.d.ts +25 -0
- package/order-server/dto/customs/query/validate-checkout-customs-verification.dto.js +63 -0
- package/order-server/dto/index.d.ts +1 -0
- package/order-server/dto/index.js +1 -0
- package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.d.ts +2 -0
- package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.js +5 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-after.dto.d.ts +3 -1
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-after.dto.js +6 -0
- package/order-server/dto/purchase-receipt/command/update-purchase-receipt-receive-info.dto.d.ts +2 -0
- package/order-server/dto/purchase-receipt/command/update-purchase-receipt-receive-info.dto.js +5 -0
- package/order-server/dto/store-item-pending-settle/index.d.ts +1 -0
- package/order-server/dto/store-item-pending-settle/index.js +17 -0
- package/order-server/services/amqp.customs.service.d.ts +11 -1
- package/order-server/services/amqp.customs.service.js +20 -0
- package/order-server/services/amqp.store-item-pending-settle.service.d.ts +19 -0
- package/order-server/services/amqp.store-item-pending-settle.service.js +54 -0
- package/order-server/services/index.d.ts +1 -0
- package/order-server/services/index.js +1 -0
- package/package.json +3 -3
- package/user-service/dto/portone-certification/command/complete-portone-certification.dto.d.ts +15 -2
- package/user-service/dto/portone-certification/command/complete-portone-certification.dto.js +12 -4
- package/user-service/dto/portone-certification/command/confirm-portone-certification.dto.d.ts +5 -0
- package/user-service/dto/portone-certification/command/confirm-portone-certification.dto.js +28 -0
- package/user-service/dto/portone-certification/command/index.d.ts +1 -0
- package/user-service/dto/portone-certification/command/index.js +1 -0
- package/user-service/dto/portone-certification/index.d.ts +1 -0
- package/user-service/dto/portone-certification/index.js +1 -0
- package/user-service/dto/portone-certification/query/check-ci-receiver.dto.d.ts +16 -0
- package/user-service/dto/portone-certification/query/check-ci-receiver.dto.js +36 -0
- package/user-service/dto/portone-certification/query/get-ci-certification-status.dto.d.ts +5 -0
- package/user-service/dto/portone-certification/query/get-ci-certification-status.dto.js +7 -0
- package/user-service/dto/portone-certification/query/index.d.ts +2 -0
- package/user-service/dto/portone-certification/query/index.js +18 -0
- package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.d.ts +2 -0
- package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.js +5 -0
- package/user-service/dto/user.modules/shipping-address/command/update-user-shipping-address.dto.d.ts +2 -0
- package/user-service/dto/user.modules/shipping-address/command/update-user-shipping-address.dto.js +5 -0
- package/user-service/services/amqp.portone-certification.service.d.ts +9 -1
- package/user-service/services/amqp.portone-certification.service.js +16 -0
- package/user-service/services/amqp.signup-certification.service.d.ts +14 -0
- package/user-service/services/amqp.signup-certification.service.js +38 -0
|
@@ -20,6 +20,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
20
20
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
21
21
|
amqp_order_server_service_1.AmqpOrderServer,
|
|
22
22
|
services_1.AmqpPInfoPendingSettleService,
|
|
23
|
+
services_1.AmqpStoreItemPendingSettleService,
|
|
23
24
|
services_1.AmqpBundlePInfoService,
|
|
24
25
|
services_1.AmqpPayTryLogService,
|
|
25
26
|
services_1.AmqpPortOneService,
|
|
@@ -48,6 +49,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
48
49
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
49
50
|
amqp_order_server_service_1.AmqpOrderServer,
|
|
50
51
|
services_1.AmqpPInfoPendingSettleService,
|
|
52
|
+
services_1.AmqpStoreItemPendingSettleService,
|
|
51
53
|
services_1.AmqpBundlePInfoService,
|
|
52
54
|
services_1.AmqpPayTryLogService,
|
|
53
55
|
services_1.AmqpPortOneService,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CheckCiReceiverPayload, CheckCiReceiverResult } from '../../../../user-service/dto/portone-certification/query/check-ci-receiver.dto';
|
|
2
|
+
/** @author 홍준 @description 일치 확인용 수령정보 @process 이름과 휴대폰만 기존 CI 비교 계약으로 검증한다. */
|
|
3
|
+
export declare class CheckCustomsReceiverPayload extends CheckCiReceiverPayload {
|
|
4
|
+
}
|
|
5
|
+
/** @author 홍준 @description 수령인 일치 확인 입력 @process 주문·발급 정보 없이 인증 프로필과 비교할 이름·휴대폰만 받는다. */
|
|
6
|
+
export declare class CheckCheckoutCustomsReceiverPayload {
|
|
7
|
+
receiver: CheckCustomsReceiverPayload;
|
|
8
|
+
}
|
|
9
|
+
/** @author 홍준 @description 수령인 일치 결과 @process 실제 비교 시 일치 여부만 반환하고 미비교이면 필드를 생략한다. */
|
|
10
|
+
export declare class CheckCheckoutCustomsReceiverResult extends CheckCiReceiverResult {
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.CheckCheckoutCustomsReceiverResult = exports.CheckCheckoutCustomsReceiverPayload = exports.CheckCustomsReceiverPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const check_ci_receiver_dto_1 = require("../../../../user-service/dto/portone-certification/query/check-ci-receiver.dto");
|
|
16
|
+
/** @author 홍준 @description 일치 확인용 수령정보 @process 이름과 휴대폰만 기존 CI 비교 계약으로 검증한다. */
|
|
17
|
+
class CheckCustomsReceiverPayload extends check_ci_receiver_dto_1.CheckCiReceiverPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CheckCustomsReceiverPayload = CheckCustomsReceiverPayload;
|
|
20
|
+
/** @author 홍준 @description 수령인 일치 확인 입력 @process 주문·발급 정보 없이 인증 프로필과 비교할 이름·휴대폰만 받는다. */
|
|
21
|
+
class CheckCheckoutCustomsReceiverPayload {
|
|
22
|
+
}
|
|
23
|
+
exports.CheckCheckoutCustomsReceiverPayload = CheckCheckoutCustomsReceiverPayload;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsDefined)(),
|
|
26
|
+
(0, class_validator_1.ValidateNested)(),
|
|
27
|
+
(0, class_transformer_1.Type)(() => CheckCustomsReceiverPayload),
|
|
28
|
+
__metadata("design:type", CheckCustomsReceiverPayload)
|
|
29
|
+
], CheckCheckoutCustomsReceiverPayload.prototype, "receiver", void 0);
|
|
30
|
+
/** @author 홍준 @description 수령인 일치 결과 @process 실제 비교 시 일치 여부만 반환하고 미비교이면 필드를 생략한다. */
|
|
31
|
+
class CheckCheckoutCustomsReceiverResult extends check_ci_receiver_dto_1.CheckCiReceiverResult {
|
|
32
|
+
}
|
|
33
|
+
exports.CheckCheckoutCustomsReceiverResult = CheckCheckoutCustomsReceiverResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @author 홍준 @description 인증 식별자로 OTP 확인 @process 주문 ID는 저장된 인증 기록에서 조회한다. */
|
|
2
|
+
export declare class CompleteCheckoutCustomsVerificationPayload {
|
|
3
|
+
verificationId: string;
|
|
4
|
+
otp: string;
|
|
5
|
+
}
|
|
6
|
+
/** @author 홍준 @description 로컬 OTP 검증 완료 @process 관세청 최종 통관 승인과 구분한다. */
|
|
7
|
+
export declare class CompleteCheckoutCustomsVerificationResult {
|
|
8
|
+
/** @description 이번 OTP 사전 검증 성공. 실패는 오류 응답이며 false를 반환하지 않는다. 관세청 최종 통관 승인 여부가 아니다. */
|
|
9
|
+
isVerified: true;
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.CompleteCheckoutCustomsVerificationResult = exports.CompleteCheckoutCustomsVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @author 홍준 @description 인증 식별자로 OTP 확인 @process 주문 ID는 저장된 인증 기록에서 조회한다. */
|
|
15
|
+
class CompleteCheckoutCustomsVerificationPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CompleteCheckoutCustomsVerificationPayload = CompleteCheckoutCustomsVerificationPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CompleteCheckoutCustomsVerificationPayload.prototype, "verificationId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CompleteCheckoutCustomsVerificationPayload.prototype, "otp", void 0);
|
|
27
|
+
/** @author 홍준 @description 로컬 OTP 검증 완료 @process 관세청 최종 통관 승인과 구분한다. */
|
|
28
|
+
class CompleteCheckoutCustomsVerificationResult {
|
|
29
|
+
}
|
|
30
|
+
exports.CompleteCheckoutCustomsVerificationResult = CompleteCheckoutCustomsVerificationResult;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @author 홍준 @description 통관 인증 수령정보 @process 인증 시점의 이름·전화·우편번호를 고정한다. */
|
|
2
|
+
export declare class CustomsReceiverPayload {
|
|
3
|
+
name: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
postalCode: string;
|
|
6
|
+
}
|
|
7
|
+
/** @author 홍준 @description 주문에 결속된 관세청 인증 발급 입력 @process 주문자 CI와 외부 요청번호는 서버가 구성한다. */
|
|
8
|
+
export declare class CustomsOrderReceiverPayload {
|
|
9
|
+
/** @description 결제 전 PTL ID. purchaseReceiptId와 정확히 하나를 전달한다. */
|
|
10
|
+
payTryLogId?: string;
|
|
11
|
+
/** @description 결제 후 등록할 본인 주문서 ID. */
|
|
12
|
+
purchaseReceiptId?: string;
|
|
13
|
+
receiver: CustomsReceiverPayload;
|
|
14
|
+
}
|
|
15
|
+
/** @author 홍준 @description 관세청 발급 입력 @process 일반용 부호는 P로 시작하는 13자리 형식으로 제한한다. */
|
|
16
|
+
export declare class CreateCheckoutCustomsVerificationPayload extends CustomsOrderReceiverPayload {
|
|
17
|
+
pccc?: string;
|
|
18
|
+
}
|
|
19
|
+
/** @author 홍준 @description 통관 인증 발급 결과 @process 인증번호와 CI를 제외하고 입력 화면에 필요한 정보만 반환한다. */
|
|
20
|
+
export declare class CreateCheckoutCustomsVerificationResult {
|
|
21
|
+
verificationId: string;
|
|
22
|
+
/** @description 현재 사용자 OTP 입력이 남아 있으면 true. 발급 전용 API의 성공 응답에서 false면 서버 인증 완료 상태다. */
|
|
23
|
+
isOtpVerificationRequired: boolean;
|
|
24
|
+
maskedEmail?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.CreateCheckoutCustomsVerificationResult = exports.CreateCheckoutCustomsVerificationPayload = exports.CustomsOrderReceiverPayload = exports.CustomsReceiverPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/** @author 홍준 @description 통관 인증 수령정보 @process 인증 시점의 이름·전화·우편번호를 고정한다. */
|
|
16
|
+
class CustomsReceiverPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.CustomsReceiverPayload = CustomsReceiverPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.Matches)(/\S/),
|
|
22
|
+
(0, class_validator_1.MaxLength)(100),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CustomsReceiverPayload.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.Matches)(/^(?:0|\+82|0082|82)[\d\s()-]{8,20}$/),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CustomsReceiverPayload.prototype, "phone", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.Matches)(/^\d{5}$/),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CustomsReceiverPayload.prototype, "postalCode", void 0);
|
|
35
|
+
/** @author 홍준 @description 주문에 결속된 관세청 인증 발급 입력 @process 주문자 CI와 외부 요청번호는 서버가 구성한다. */
|
|
36
|
+
class CustomsOrderReceiverPayload {
|
|
37
|
+
}
|
|
38
|
+
exports.CustomsOrderReceiverPayload = CustomsOrderReceiverPayload;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.ValidateIf)(object => object.payTryLogId !== undefined || object.purchaseReceiptId === undefined),
|
|
41
|
+
(0, class_validator_1.IsMongoId)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CustomsOrderReceiverPayload.prototype, "payTryLogId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.ValidateIf)(object => object.purchaseReceiptId !== undefined || object.payTryLogId === undefined),
|
|
46
|
+
(0, class_validator_1.IsMongoId)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CustomsOrderReceiverPayload.prototype, "purchaseReceiptId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsDefined)(),
|
|
51
|
+
(0, class_validator_1.ValidateNested)(),
|
|
52
|
+
(0, class_transformer_1.Type)(() => CustomsReceiverPayload),
|
|
53
|
+
__metadata("design:type", CustomsReceiverPayload)
|
|
54
|
+
], CustomsOrderReceiverPayload.prototype, "receiver", void 0);
|
|
55
|
+
/** @author 홍준 @description 관세청 발급 입력 @process 일반용 부호는 P로 시작하는 13자리 형식으로 제한한다. */
|
|
56
|
+
class CreateCheckoutCustomsVerificationPayload extends CustomsOrderReceiverPayload {
|
|
57
|
+
}
|
|
58
|
+
exports.CreateCheckoutCustomsVerificationPayload = CreateCheckoutCustomsVerificationPayload;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, class_validator_1.Matches)(/^P\d{12}$/i),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], CreateCheckoutCustomsVerificationPayload.prototype, "pccc", void 0);
|
|
65
|
+
/** @author 홍준 @description 통관 인증 발급 결과 @process 인증번호와 CI를 제외하고 입력 화면에 필요한 정보만 반환한다. */
|
|
66
|
+
class CreateCheckoutCustomsVerificationResult {
|
|
67
|
+
}
|
|
68
|
+
exports.CreateCheckoutCustomsVerificationResult = CreateCheckoutCustomsVerificationResult;
|
|
@@ -4,3 +4,6 @@ export * from './submit-customs-trade-information.dto';
|
|
|
4
4
|
export * from './revalidate-customs-pccc.dto';
|
|
5
5
|
export * from './post-process-customs-pccc-validation.dto';
|
|
6
6
|
export * from './revoke-customs-access-token.dto';
|
|
7
|
+
export * from './create-checkout-customs-verification.dto';
|
|
8
|
+
export * from './complete-checkout-customs-verification.dto';
|
|
9
|
+
export * from './check-checkout-customs-receiver.dto';
|
|
@@ -20,3 +20,6 @@ __exportStar(require("./submit-customs-trade-information.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./revalidate-customs-pccc.dto"), exports);
|
|
21
21
|
__exportStar(require("./post-process-customs-pccc-validation.dto"), exports);
|
|
22
22
|
__exportStar(require("./revoke-customs-access-token.dto"), exports);
|
|
23
|
+
__exportStar(require("./create-checkout-customs-verification.dto"), exports);
|
|
24
|
+
__exportStar(require("./complete-checkout-customs-verification.dto"), exports);
|
|
25
|
+
__exportStar(require("./check-checkout-customs-receiver.dto"), exports);
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-customs-trade-submission-result.dto"), exports);
|
|
18
18
|
__exportStar(require("./poll-pending-customs-trade-submissions.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-unread-customs-trade-errors.dto"), exports);
|
|
20
|
+
__exportStar(require("./validate-checkout-customs-verification.dto"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CustomsOrderReceiverPayload, CustomsReceiverPayload } from '../command/create-checkout-customs-verification.dto';
|
|
2
|
+
/** @author 홍준 @description 결제·주문 수정 내부 인증 확인 @process 소유권·수령정보·주문 연결 및 나중 등록 예외를 검증한다. */
|
|
3
|
+
export declare class ValidateCheckoutCustomsVerificationPayload extends CustomsOrderReceiverPayload {
|
|
4
|
+
/** @description 재시도 시 주문에 저장된 일반용 또는 일회용 부호. 최종 값은 서버 인증 기록을 사용한다. */
|
|
5
|
+
pccc?: string;
|
|
6
|
+
verificationId?: string;
|
|
7
|
+
isPcccDeferred?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** @author 홍준 @description 내부 주문 저장용 인증 결과 @process 주문용 부호와 주소록용 일반 부호를 구분한다. */
|
|
10
|
+
export declare class ValidateCheckoutCustomsVerificationResult {
|
|
11
|
+
customsVerificationRequired: boolean;
|
|
12
|
+
customsVerificationId?: string;
|
|
13
|
+
pccc?: string;
|
|
14
|
+
addressPccc?: string;
|
|
15
|
+
}
|
|
16
|
+
/** @author 홍준 @description 주소록 저장 전 인증 검증 @process 인증 기록에 결속된 주문과 수령정보를 대조한다. */
|
|
17
|
+
export declare class ValidateShippingCustomsVerificationPayload {
|
|
18
|
+
verificationId: string;
|
|
19
|
+
receiver: CustomsReceiverPayload;
|
|
20
|
+
pccc?: string;
|
|
21
|
+
}
|
|
22
|
+
/** @author 홍준 @description 재사용 주소록 저장용 일반 부호 @process 일회용 부호는 응답하지 않는다. */
|
|
23
|
+
export declare class ValidateShippingCustomsVerificationResult {
|
|
24
|
+
pccc?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.ValidateShippingCustomsVerificationResult = exports.ValidateShippingCustomsVerificationPayload = exports.ValidateCheckoutCustomsVerificationResult = exports.ValidateCheckoutCustomsVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const create_checkout_customs_verification_dto_1 = require("../command/create-checkout-customs-verification.dto");
|
|
16
|
+
/** @author 홍준 @description 결제·주문 수정 내부 인증 확인 @process 소유권·수령정보·주문 연결 및 나중 등록 예외를 검증한다. */
|
|
17
|
+
class ValidateCheckoutCustomsVerificationPayload extends create_checkout_customs_verification_dto_1.CustomsOrderReceiverPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.ValidateCheckoutCustomsVerificationPayload = ValidateCheckoutCustomsVerificationPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.ValidateIf)(object => object.pccc !== undefined && object.pccc !== ''),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.Matches)(/^\S{13}$/),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ValidateCheckoutCustomsVerificationPayload.prototype, "pccc", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.ValidateIf)(object => object.verificationId !== undefined),
|
|
28
|
+
(0, class_validator_1.IsMongoId)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ValidateCheckoutCustomsVerificationPayload.prototype, "verificationId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.ValidateIf)(object => object.isPcccDeferred !== undefined),
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], ValidateCheckoutCustomsVerificationPayload.prototype, "isPcccDeferred", void 0);
|
|
36
|
+
/** @author 홍준 @description 내부 주문 저장용 인증 결과 @process 주문용 부호와 주소록용 일반 부호를 구분한다. */
|
|
37
|
+
class ValidateCheckoutCustomsVerificationResult {
|
|
38
|
+
}
|
|
39
|
+
exports.ValidateCheckoutCustomsVerificationResult = ValidateCheckoutCustomsVerificationResult;
|
|
40
|
+
/** @author 홍준 @description 주소록 저장 전 인증 검증 @process 인증 기록에 결속된 주문과 수령정보를 대조한다. */
|
|
41
|
+
class ValidateShippingCustomsVerificationPayload {
|
|
42
|
+
}
|
|
43
|
+
exports.ValidateShippingCustomsVerificationPayload = ValidateShippingCustomsVerificationPayload;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsMongoId)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ValidateShippingCustomsVerificationPayload.prototype, "verificationId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsDefined)(),
|
|
50
|
+
(0, class_validator_1.ValidateNested)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => create_checkout_customs_verification_dto_1.CustomsReceiverPayload),
|
|
52
|
+
__metadata("design:type", create_checkout_customs_verification_dto_1.CustomsReceiverPayload)
|
|
53
|
+
], ValidateShippingCustomsVerificationPayload.prototype, "receiver", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.ValidateIf)(object => object.pccc !== undefined && object.pccc !== ''),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.Matches)(/^P\d{12}$/i),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ValidateShippingCustomsVerificationPayload.prototype, "pccc", void 0);
|
|
60
|
+
/** @author 홍준 @description 재사용 주소록 저장용 일반 부호 @process 일회용 부호는 응답하지 않는다. */
|
|
61
|
+
class ValidateShippingCustomsVerificationResult {
|
|
62
|
+
}
|
|
63
|
+
exports.ValidateShippingCustomsVerificationResult = ValidateShippingCustomsVerificationResult;
|
|
@@ -24,3 +24,4 @@ __exportStar(require("./purchase-receipt"), exports);
|
|
|
24
24
|
__exportStar(require("./nicepay"), exports);
|
|
25
25
|
__exportStar(require("./customs"), exports);
|
|
26
26
|
__exportStar(require("./p-info-pending-settle"), exports);
|
|
27
|
+
__exportStar(require("./store-item-pending-settle"), exports);
|
package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export declare enum WriteNormalStoreItemPayTryLogAfterDTypeEnum {
|
|
|
5
5
|
'direct' = "direct"
|
|
6
6
|
}
|
|
7
7
|
export declare class WriteNormalStoreItemPayTryLogAfterPayload {
|
|
8
|
+
/** @description 새 통관 인증 경로의 완료 참조. 생략하면 기존 호출 계약을 유지한다. */
|
|
9
|
+
customsVerificationId?: string;
|
|
8
10
|
payTryLogId: string;
|
|
9
11
|
payMethod: PayTryLogPayMethodTypeEnum;
|
|
10
12
|
paidPrice: number;
|
package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.js
CHANGED
|
@@ -21,6 +21,11 @@ var WriteNormalStoreItemPayTryLogAfterDTypeEnum;
|
|
|
21
21
|
class WriteNormalStoreItemPayTryLogAfterPayload {
|
|
22
22
|
}
|
|
23
23
|
exports.WriteNormalStoreItemPayTryLogAfterPayload = WriteNormalStoreItemPayTryLogAfterPayload;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.ValidateIf)(object => object.customsVerificationId !== undefined),
|
|
26
|
+
(0, class_validator_1.IsMongoId)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "customsVerificationId", void 0);
|
|
24
29
|
__decorate([
|
|
25
30
|
(0, class_validator_1.IsMongoId)(),
|
|
26
31
|
__metadata("design:type", String)
|
|
@@ -52,6 +52,8 @@ export declare enum ReservationPayTryLogAfterErrorEnum {
|
|
|
52
52
|
NOT_FOUND_USER_CARD_BILLING = "NOT_FOUND_USER_CARD_BILLING"
|
|
53
53
|
}
|
|
54
54
|
export declare class WriteStoreItemReservationPayTryLogAfterPayload {
|
|
55
|
+
/** @description 새 통관 인증 경로의 완료 참조. 생략하면 기존 호출 계약을 유지한다. */
|
|
56
|
+
customsVerificationId?: string;
|
|
55
57
|
payTryLogId: string;
|
|
56
58
|
payMethod: string;
|
|
57
59
|
buyerName: string;
|
|
@@ -63,7 +65,7 @@ export declare class WriteStoreItemReservationPayTryLogAfterPayload {
|
|
|
63
65
|
buyerPostCode: string;
|
|
64
66
|
paidPrice: number;
|
|
65
67
|
paidPrice_exceptPaymentFee: number;
|
|
66
|
-
PCCC
|
|
68
|
+
PCCC?: string;
|
|
67
69
|
requirement?: string;
|
|
68
70
|
usedCredit?: number;
|
|
69
71
|
userCardBillingId: string;
|
|
@@ -68,6 +68,11 @@ var ReservationPayTryLogAfterErrorEnum;
|
|
|
68
68
|
class WriteStoreItemReservationPayTryLogAfterPayload {
|
|
69
69
|
}
|
|
70
70
|
exports.WriteStoreItemReservationPayTryLogAfterPayload = WriteStoreItemReservationPayTryLogAfterPayload;
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.ValidateIf)(object => object.customsVerificationId !== undefined),
|
|
73
|
+
(0, class_validator_1.IsMongoId)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], WriteStoreItemReservationPayTryLogAfterPayload.prototype, "customsVerificationId", void 0);
|
|
71
76
|
__decorate([
|
|
72
77
|
(0, class_validator_1.IsMongoId)(),
|
|
73
78
|
__metadata("design:type", String)
|
|
@@ -115,6 +120,7 @@ __decorate([
|
|
|
115
120
|
__metadata("design:type", Number)
|
|
116
121
|
], WriteStoreItemReservationPayTryLogAfterPayload.prototype, "paidPrice_exceptPaymentFee", void 0);
|
|
117
122
|
__decorate([
|
|
123
|
+
(0, class_validator_1.ValidateIf)(object => object.customsVerificationId === undefined || object.PCCC !== undefined),
|
|
118
124
|
(0, class_validator_1.IsString)(),
|
|
119
125
|
__metadata("design:type", String)
|
|
120
126
|
], WriteStoreItemReservationPayTryLogAfterPayload.prototype, "PCCC", void 0);
|
package/order-server/dto/purchase-receipt/command/update-purchase-receipt-receive-info.dto.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ declare class PurchaseReceiptReceiveInfo {
|
|
|
10
10
|
buyerEngLastName?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare class UpdatePurchaseReceiptReceiveInfoPayload {
|
|
13
|
+
/** @description 새 통관 인증 경로의 완료 참조. 생략하면 기존 호출 계약을 유지한다. */
|
|
14
|
+
customsVerificationId?: string;
|
|
13
15
|
purchaseReceiptId: string;
|
|
14
16
|
receiveInfo: PurchaseReceiptReceiveInfo;
|
|
15
17
|
}
|
package/order-server/dto/purchase-receipt/command/update-purchase-receipt-receive-info.dto.js
CHANGED
|
@@ -62,6 +62,11 @@ __decorate([
|
|
|
62
62
|
class UpdatePurchaseReceiptReceiveInfoPayload {
|
|
63
63
|
}
|
|
64
64
|
exports.UpdatePurchaseReceiptReceiveInfoPayload = UpdatePurchaseReceiptReceiveInfoPayload;
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.ValidateIf)(object => object.customsVerificationId !== undefined),
|
|
67
|
+
(0, class_validator_1.IsMongoId)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], UpdatePurchaseReceiptReceiveInfoPayload.prototype, "customsVerificationId", void 0);
|
|
65
70
|
__decorate([
|
|
66
71
|
(0, class_validator_1.IsMongoId)(),
|
|
67
72
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@yolo-croket-dev/dto-v2/order-server/store-item-pending-settle';
|
|
@@ -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("@yolo-croket-dev/dto-v2/order-server/store-item-pending-settle"), exports);
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetUnreadCustomsTradeErrorsResult, GetCustomsTradeSubmissionResult, GetCustomsTradeSubmissionResultPayload, PostProcessCustomsPcccValidationPayload, PostProcessCustomsPcccValidationResult, PollPendingCustomsTradeSubmissionsPayload, PollPendingCustomsTradeSubmissionsResult, RevalidateCustomsPcccPayload, RevalidateCustomsPcccResult, RequestCustomsPcccValidationPayload, RequestCustomsPcccValidationResult, RevokeCustomsAccessTokenResult, SubmitCustomsTradeInformationPayload, SubmitCustomsTradeInformationResult, VerifyCustomsPcccOtpPayload, VerifyCustomsPcccOtpResult } from '../dto/customs';
|
|
3
|
+
import { CheckCheckoutCustomsReceiverPayload, CheckCheckoutCustomsReceiverResult, ValidateCheckoutCustomsVerificationPayload, ValidateCheckoutCustomsVerificationResult, ValidateShippingCustomsVerificationPayload, ValidateShippingCustomsVerificationResult, CreateCheckoutCustomsVerificationPayload, CreateCheckoutCustomsVerificationResult, CompleteCheckoutCustomsVerificationPayload, CompleteCheckoutCustomsVerificationResult, GetUnreadCustomsTradeErrorsResult, GetCustomsTradeSubmissionResult, GetCustomsTradeSubmissionResultPayload, PostProcessCustomsPcccValidationPayload, PostProcessCustomsPcccValidationResult, PollPendingCustomsTradeSubmissionsPayload, PollPendingCustomsTradeSubmissionsResult, RevalidateCustomsPcccPayload, RevalidateCustomsPcccResult, RequestCustomsPcccValidationPayload, RequestCustomsPcccValidationResult, RevokeCustomsAccessTokenResult, SubmitCustomsTradeInformationPayload, SubmitCustomsTradeInformationResult, VerifyCustomsPcccOtpPayload, VerifyCustomsPcccOtpResult } from '../dto/customs';
|
|
4
4
|
export declare class AmqpCustomsService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
|
+
/** @author 홍준 @description 수령인 일치 확인 @process 로그인 문맥을 유지해 읽기 전용 수령인 비교를 호출한다. */
|
|
9
|
+
checkCheckoutReceiver(payload: CheckCheckoutCustomsReceiverPayload, param: AbstractParam): Promise<CheckCheckoutCustomsReceiverResult>;
|
|
10
|
+
/** @author 홍준 @description 주문 저장 인증 확인 @process 로그인 문맥을 유지해 통관 서비스를 호출한다. */
|
|
11
|
+
validateCheckoutCustomsVerification(payload: ValidateCheckoutCustomsVerificationPayload, param: AbstractParam): Promise<ValidateCheckoutCustomsVerificationResult>;
|
|
12
|
+
/** @author 홍준 @description 주소록 인증 확인 @process 로그인 문맥을 유지해 통관 서비스를 호출한다. */
|
|
13
|
+
validateShippingVerification(payload: ValidateShippingCustomsVerificationPayload, param: AbstractParam): Promise<ValidateShippingCustomsVerificationResult>;
|
|
14
|
+
/** @author 홍준 @description 주문 통관 인증 발급 @process 로그인 주문 문맥에 인증 결과를 결속한다. */
|
|
15
|
+
createCheckoutVerification(payload: CreateCheckoutCustomsVerificationPayload, param: AbstractParam): Promise<CreateCheckoutCustomsVerificationResult>;
|
|
16
|
+
/** @author 홍준 @description 주문 통관 OTP 확인 @process 인증 ID와 로그인 문맥으로 저장 기록을 확인한다. */
|
|
17
|
+
completeCheckoutVerification(payload: CompleteCheckoutCustomsVerificationPayload, param: AbstractParam): Promise<CompleteCheckoutCustomsVerificationResult>;
|
|
8
18
|
requestPcccValidation(payload: RequestCustomsPcccValidationPayload, param: AbstractParam): Promise<RequestCustomsPcccValidationResult>;
|
|
9
19
|
verifyPcccOtp(payload: VerifyCustomsPcccOtpPayload, param: AbstractParam): Promise<VerifyCustomsPcccOtpResult>;
|
|
10
20
|
submitTradeInformation(payload: SubmitCustomsTradeInformationPayload, param: AbstractParam): Promise<SubmitCustomsTradeInformationResult>;
|
|
@@ -21,6 +21,26 @@ let AmqpCustomsService = class AmqpCustomsService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new core_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
+
/** @author 홍준 @description 수령인 일치 확인 @process 로그인 문맥을 유지해 읽기 전용 수령인 비교를 호출한다. */
|
|
25
|
+
async checkCheckoutReceiver(payload, param) {
|
|
26
|
+
return this.amqpManager.call('수령인 일치 확인', 'customs.check.checkout-receiver', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
28
|
+
/** @author 홍준 @description 주문 저장 인증 확인 @process 로그인 문맥을 유지해 통관 서비스를 호출한다. */
|
|
29
|
+
async validateCheckoutCustomsVerification(payload, param) {
|
|
30
|
+
return this.amqpManager.call('주문 저장 인증 확인', 'customs.validate.checkout-verification', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
32
|
+
/** @author 홍준 @description 주소록 인증 확인 @process 로그인 문맥을 유지해 통관 서비스를 호출한다. */
|
|
33
|
+
async validateShippingVerification(payload, param) {
|
|
34
|
+
return this.amqpManager.call('주소록 인증 확인', 'customs.validate.shipping-verification', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
36
|
+
/** @author 홍준 @description 주문 통관 인증 발급 @process 로그인 주문 문맥에 인증 결과를 결속한다. */
|
|
37
|
+
async createCheckoutVerification(payload, param) {
|
|
38
|
+
return this.amqpManager.call('주문 통관 인증 발급', 'customs.create.checkout-verification', payload, param, { isErrorThrowing: true });
|
|
39
|
+
}
|
|
40
|
+
/** @author 홍준 @description 주문 통관 OTP 확인 @process 인증 ID와 로그인 문맥으로 저장 기록을 확인한다. */
|
|
41
|
+
async completeCheckoutVerification(payload, param) {
|
|
42
|
+
return this.amqpManager.call('주문 통관 인증 확인', 'customs.complete.checkout-verification', payload, param, { isErrorThrowing: true });
|
|
43
|
+
}
|
|
24
44
|
async requestPcccValidation(payload, param) {
|
|
25
45
|
return this.amqpManager.call('관세청 개인통관고유부호 검증 요청', 'customs.request.pccc-validation', payload, param, { isErrorThrowing: true });
|
|
26
46
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateStoreItemPendingSettlesPayload, CreateStoreItemPendingSettlesResult, UpdateStoreItemPendingSettlePayload, UpdateStoreItemPendingSettleResult, ReleaseStoreItemPendingSettlePayload, ReleaseStoreItemPendingSettleResult, GetStoreItemPendingSettlesPayload, GetStoreItemPendingSettlesResult, GetStoreItemPendingSettlePayload, GetStoreItemPendingSettleResult, GetStoreItemPendingSettleLogsPayload, GetStoreItemPendingSettleLogsResult } from '../dto/store-item-pending-settle';
|
|
4
|
+
export declare class AmqpStoreItemPendingSettleService {
|
|
5
|
+
private readonly manager;
|
|
6
|
+
constructor(client: ClientProxy);
|
|
7
|
+
/** @description createBulk 요청을 전달한다. */
|
|
8
|
+
createBulk(payload: CreateStoreItemPendingSettlesPayload, param: AbstractParam): Promise<CreateStoreItemPendingSettlesResult>;
|
|
9
|
+
/** @description updateInfo 요청을 전달한다. */
|
|
10
|
+
updateInfo(payload: UpdateStoreItemPendingSettlePayload, param: AbstractParam): Promise<UpdateStoreItemPendingSettleResult>;
|
|
11
|
+
/** @description releaseOne 요청을 전달한다. */
|
|
12
|
+
releaseOne(payload: ReleaseStoreItemPendingSettlePayload, param: AbstractParam): Promise<ReleaseStoreItemPendingSettleResult>;
|
|
13
|
+
/** @description getList 요청을 전달한다. */
|
|
14
|
+
getList(payload: GetStoreItemPendingSettlesPayload, param: AbstractParam): Promise<GetStoreItemPendingSettlesResult>;
|
|
15
|
+
/** @description getDetail 요청을 전달한다. */
|
|
16
|
+
getDetail(payload: GetStoreItemPendingSettlePayload, param: AbstractParam): Promise<GetStoreItemPendingSettleResult>;
|
|
17
|
+
/** @description getLogs 요청을 전달한다. */
|
|
18
|
+
getLogs(payload: GetStoreItemPendingSettleLogsPayload, param: AbstractParam): Promise<GetStoreItemPendingSettleLogsResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.AmqpStoreItemPendingSettleService = void 0;
|
|
16
|
+
/** @author jun @description 상품별 보류 RPC client. @process 제한된 관리자 요청을 order-server에 위임한다. */
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
19
|
+
const core_1 = require("@yolo-croket-dev/core");
|
|
20
|
+
let AmqpStoreItemPendingSettleService = class AmqpStoreItemPendingSettleService {
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.manager = new core_1.AmqpManagement(client);
|
|
23
|
+
}
|
|
24
|
+
/** @description createBulk 요청을 전달한다. */
|
|
25
|
+
async createBulk(payload, param) {
|
|
26
|
+
return this.manager.call('상품별 정산 보류', 'store-item-pending-settle.create.bulk', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
28
|
+
/** @description updateInfo 요청을 전달한다. */
|
|
29
|
+
async updateInfo(payload, param) {
|
|
30
|
+
return this.manager.call('상품별 정산 보류', 'store-item-pending-settle.update.info', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
32
|
+
/** @description releaseOne 요청을 전달한다. */
|
|
33
|
+
async releaseOne(payload, param) {
|
|
34
|
+
return this.manager.call('상품별 정산 보류', 'store-item-pending-settle.release.one', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
36
|
+
/** @description getList 요청을 전달한다. */
|
|
37
|
+
async getList(payload, param) {
|
|
38
|
+
return this.manager.call('상품별 정산 보류', 'store-item-pending-settle.get.list', payload, param, { isErrorThrowing: true });
|
|
39
|
+
}
|
|
40
|
+
/** @description getDetail 요청을 전달한다. */
|
|
41
|
+
async getDetail(payload, param) {
|
|
42
|
+
return this.manager.call('상품별 정산 보류', 'store-item-pending-settle.get.detail', payload, param, { isErrorThrowing: true });
|
|
43
|
+
}
|
|
44
|
+
/** @description getLogs 요청을 전달한다. */
|
|
45
|
+
async getLogs(payload, param) {
|
|
46
|
+
return this.manager.call('상품별 정산 보류', 'store-item-pending-settle.get.logs', payload, param, { isErrorThrowing: true });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.AmqpStoreItemPendingSettleService = AmqpStoreItemPendingSettleService;
|
|
50
|
+
exports.AmqpStoreItemPendingSettleService = AmqpStoreItemPendingSettleService = __decorate([
|
|
51
|
+
(0, common_1.Injectable)(),
|
|
52
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
53
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
54
|
+
], AmqpStoreItemPendingSettleService);
|
|
@@ -32,3 +32,4 @@ __exportStar(require("./amqp.nicepay.service"), exports);
|
|
|
32
32
|
__exportStar(require("./amqp.user-card-billing.service"), exports);
|
|
33
33
|
__exportStar(require("./amqp.customs.service"), exports);
|
|
34
34
|
__exportStar(require("./amqp.p-info-pending-settle.service"), exports);
|
|
35
|
+
__exportStar(require("./amqp.store-item-pending-settle.service"), exports);
|
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.330",
|
|
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.27",
|
|
25
25
|
"@yolo-croket-dev/entity": "0.2.106",
|
|
26
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
26
|
+
"@yolo-croket-dev/entity-v2": "0.3.45",
|
|
27
27
|
"class-transformer": "^0.5.1",
|
|
28
28
|
"class-validator": "^0.13.2",
|
|
29
29
|
"dotenv": "^16.3.1"
|
package/user-service/dto/portone-certification/command/complete-portone-certification.dto.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class CompletePortoneCertificationPayload {
|
|
|
12
12
|
* @description 포트원 본인확인 완료 결과
|
|
13
13
|
* @process CI 원문과 HMAC은 외부 응답으로 반환하지 않는다.
|
|
14
14
|
*/
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class StoredPortoneCertificationResult {
|
|
16
16
|
ciReceived: boolean;
|
|
17
17
|
verifiedAt: Date;
|
|
18
18
|
}
|
|
@@ -21,7 +21,20 @@ export declare class CompletePortoneCertificationResult {
|
|
|
21
21
|
* @description 가입 전 포트원 본인인증 완료 결과
|
|
22
22
|
* @process 검증 완료 후 발급한 일회성 식별자를 필수로 반환해 가입 요청과 연결한다.
|
|
23
23
|
*/
|
|
24
|
-
export declare class CompleteSignupPortoneCertificationResult extends
|
|
24
|
+
export declare class CompleteSignupPortoneCertificationResult extends StoredPortoneCertificationResult {
|
|
25
25
|
/** @description 가입 API의 optional signupCertificationId에 전달할 검증 완료 식별자. */
|
|
26
26
|
signupCertificationId: string;
|
|
27
27
|
}
|
|
28
|
+
/** @author 홍준 @description 기존 회원 인증 완료 결과 @process 회원정보와 CI 저장이 모두 완료된 경우만 반환한다. */
|
|
29
|
+
export declare class PortoneCertificationCompletedResult extends StoredPortoneCertificationResult {
|
|
30
|
+
status: 'COMPLETED';
|
|
31
|
+
ciReceived: true;
|
|
32
|
+
}
|
|
33
|
+
/** @author 홍준 @description 회원정보 변경 동의 대기 결과 @process 불일치 상세 없이 회원정보 변경 동의 필요 상태와 기존 세션의 만료 시각만 반환한다. */
|
|
34
|
+
export declare class PortoneCertificationUserInfoUpdateConsentRequiredResult {
|
|
35
|
+
status: 'USER_INFO_UPDATE_CONSENT_REQUIRED';
|
|
36
|
+
ciReceived: false;
|
|
37
|
+
expiresAt: Date;
|
|
38
|
+
}
|
|
39
|
+
/** @author 홍준 @description 기존 회원 인증의 상태별 결과 @process status로 완료와 동의 대기의 필수 필드를 구분한다. */
|
|
40
|
+
export type CompletePortoneCertificationResult = PortoneCertificationCompletedResult | PortoneCertificationUserInfoUpdateConsentRequiredResult;
|
package/user-service/dto/portone-certification/command/complete-portone-certification.dto.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CompleteSignupPortoneCertificationResult = exports.
|
|
12
|
+
exports.PortoneCertificationUserInfoUpdateConsentRequiredResult = exports.PortoneCertificationCompletedResult = exports.CompleteSignupPortoneCertificationResult = exports.StoredPortoneCertificationResult = exports.CompletePortoneCertificationPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
/**
|
|
15
15
|
* @author 홍준
|
|
@@ -36,14 +36,22 @@ __decorate([
|
|
|
36
36
|
* @description 포트원 본인확인 완료 결과
|
|
37
37
|
* @process CI 원문과 HMAC은 외부 응답으로 반환하지 않는다.
|
|
38
38
|
*/
|
|
39
|
-
class
|
|
39
|
+
class StoredPortoneCertificationResult {
|
|
40
40
|
}
|
|
41
|
-
exports.
|
|
41
|
+
exports.StoredPortoneCertificationResult = StoredPortoneCertificationResult;
|
|
42
42
|
/**
|
|
43
43
|
* @author 홍준
|
|
44
44
|
* @description 가입 전 포트원 본인인증 완료 결과
|
|
45
45
|
* @process 검증 완료 후 발급한 일회성 식별자를 필수로 반환해 가입 요청과 연결한다.
|
|
46
46
|
*/
|
|
47
|
-
class CompleteSignupPortoneCertificationResult extends
|
|
47
|
+
class CompleteSignupPortoneCertificationResult extends StoredPortoneCertificationResult {
|
|
48
48
|
}
|
|
49
49
|
exports.CompleteSignupPortoneCertificationResult = CompleteSignupPortoneCertificationResult;
|
|
50
|
+
/** @author 홍준 @description 기존 회원 인증 완료 결과 @process 회원정보와 CI 저장이 모두 완료된 경우만 반환한다. */
|
|
51
|
+
class PortoneCertificationCompletedResult extends StoredPortoneCertificationResult {
|
|
52
|
+
}
|
|
53
|
+
exports.PortoneCertificationCompletedResult = PortoneCertificationCompletedResult;
|
|
54
|
+
/** @author 홍준 @description 회원정보 변경 동의 대기 결과 @process 불일치 상세 없이 회원정보 변경 동의 필요 상태와 기존 세션의 만료 시각만 반환한다. */
|
|
55
|
+
class PortoneCertificationUserInfoUpdateConsentRequiredResult {
|
|
56
|
+
}
|
|
57
|
+
exports.PortoneCertificationUserInfoUpdateConsentRequiredResult = PortoneCertificationUserInfoUpdateConsentRequiredResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.ConfirmPortoneCertificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @author 홍준 @description 기존 회원정보 변경 동의 요청 @process 로그인 회원과 기존 merchantUid에 결속한 인증정보만 확정한다. */
|
|
15
|
+
class ConfirmPortoneCertificationPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.ConfirmPortoneCertificationPayload = ConfirmPortoneCertificationPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_validator_1.Matches)(/\S/),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ConfirmPortoneCertificationPayload.prototype, "merchantUid", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsBoolean)(),
|
|
26
|
+
(0, class_validator_1.Equals)(true),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], ConfirmPortoneCertificationPayload.prototype, "agreeToUpdateProfile", void 0);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./start-portone-certification.dto"), exports);
|
|
18
18
|
__exportStar(require("./complete-portone-certification.dto"), exports);
|
|
19
|
+
__exportStar(require("./confirm-portone-certification.dto"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @author 홍준 @description 인증된 본인과 수령인 비교 입력 @process 주문 ID 없이 현재 입력한 이름과 전화번호를 검증한다. */
|
|
2
|
+
export declare class CheckCiReceiverPayload {
|
|
3
|
+
name: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
}
|
|
6
|
+
/** @author 홍준 @description 수령인 일치 여부 @process CI 및 인증된 개인정보를 공개 응답에 포함하지 않는다. */
|
|
7
|
+
export declare class CheckCiReceiverResult {
|
|
8
|
+
/** @description 유효한 CI 인증 프로필과 실제 비교한 결과. 비교 가능한 인증 프로필이 없으면 생략하며 불일치(false)로 취급하지 않는다. */
|
|
9
|
+
isReceiverMatched?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** @author 홍준 @description 관세청 요청 구성용 내부 정보 @process 내부 호출에서만 주문자 이름과 일치 시 CI를 전달한다. */
|
|
12
|
+
export declare class GetCustomsOrdererResult extends CheckCiReceiverResult {
|
|
13
|
+
name: string;
|
|
14
|
+
phone?: string;
|
|
15
|
+
ci?: string;
|
|
16
|
+
}
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetCustomsOrdererResult = exports.CheckCiReceiverResult = exports.CheckCiReceiverPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @author 홍준 @description 인증된 본인과 수령인 비교 입력 @process 주문 ID 없이 현재 입력한 이름과 전화번호를 검증한다. */
|
|
15
|
+
class CheckCiReceiverPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CheckCiReceiverPayload = CheckCiReceiverPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.Matches)(/\S/),
|
|
21
|
+
(0, class_validator_1.MaxLength)(100),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CheckCiReceiverPayload.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.Matches)(/^(?:0|\+82|0082|82)[\d\s()-]{8,20}$/),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CheckCiReceiverPayload.prototype, "phone", void 0);
|
|
29
|
+
/** @author 홍준 @description 수령인 일치 여부 @process CI 및 인증된 개인정보를 공개 응답에 포함하지 않는다. */
|
|
30
|
+
class CheckCiReceiverResult {
|
|
31
|
+
}
|
|
32
|
+
exports.CheckCiReceiverResult = CheckCiReceiverResult;
|
|
33
|
+
/** @author 홍준 @description 관세청 요청 구성용 내부 정보 @process 내부 호출에서만 주문자 이름과 일치 시 CI를 전달한다. */
|
|
34
|
+
class GetCustomsOrdererResult extends CheckCiReceiverResult {
|
|
35
|
+
}
|
|
36
|
+
exports.GetCustomsOrdererResult = GetCustomsOrdererResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetCiCertificationStatusResult = void 0;
|
|
4
|
+
/** @author 홍준 @description 로그인 회원의 CI 인증 상태 @process 회원에게 귀속된 CI의 저장 완료 여부만 반환한다. */
|
|
5
|
+
class GetCiCertificationStatusResult {
|
|
6
|
+
}
|
|
7
|
+
exports.GetCiCertificationStatusResult = GetCiCertificationStatusResult;
|
|
@@ -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("./get-ci-certification-status.dto"), exports);
|
|
18
|
+
__exportStar(require("./check-ci-receiver.dto"), exports);
|
package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { UserShippingAddressesEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
2
|
export declare class CreateUserShippingAddressPayload implements Omit<UserShippingAddressesEntity, '_id'> {
|
|
3
|
+
/** @description 새 통관 인증 경로의 완료 참조. 생략하면 기존 호출 계약을 유지한다. */
|
|
4
|
+
customsVerificationId?: string;
|
|
3
5
|
/** 수령인 이름 */
|
|
4
6
|
buyerName: string;
|
|
5
7
|
/** 수령인 우편번호 */
|
package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.js
CHANGED
|
@@ -14,6 +14,11 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
class CreateUserShippingAddressPayload {
|
|
15
15
|
}
|
|
16
16
|
exports.CreateUserShippingAddressPayload = CreateUserShippingAddressPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.ValidateIf)(object => object.customsVerificationId !== undefined),
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateUserShippingAddressPayload.prototype, "customsVerificationId", void 0);
|
|
17
22
|
__decorate([
|
|
18
23
|
(0, class_validator_1.IsString)(),
|
|
19
24
|
__metadata("design:type", String)
|
package/user-service/dto/user.modules/shipping-address/command/update-user-shipping-address.dto.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { UserShippingAddressesEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
2
|
export declare class UpdateUserShippingAddressPayload implements Omit<UserShippingAddressesEntity, '_id'> {
|
|
3
|
+
/** @description 새 통관 인증 경로의 완료 참조. 생략하면 기존 호출 계약을 유지한다. */
|
|
4
|
+
customsVerificationId?: string;
|
|
3
5
|
/** 유저 배송지 아이디 */
|
|
4
6
|
_id: string;
|
|
5
7
|
/** 수령인 이름 */
|
package/user-service/dto/user.modules/shipping-address/command/update-user-shipping-address.dto.js
CHANGED
|
@@ -14,6 +14,11 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
class UpdateUserShippingAddressPayload {
|
|
15
15
|
}
|
|
16
16
|
exports.UpdateUserShippingAddressPayload = UpdateUserShippingAddressPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.ValidateIf)(object => object.customsVerificationId !== undefined),
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UpdateUserShippingAddressPayload.prototype, "customsVerificationId", void 0);
|
|
17
22
|
__decorate([
|
|
18
23
|
(0, class_validator_1.IsMongoId)(),
|
|
19
24
|
__metadata("design:type", String)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CompletePortoneCertificationPayload, CompletePortoneCertificationResult, CompleteSignupPortoneCertificationResult, StartPortoneCertificationResult, StartSignupPortoneCertificationResult } from '../dto/portone-certification';
|
|
3
|
+
import { CheckCiReceiverPayload, CheckCiReceiverResult, GetCustomsOrdererResult, GetCiCertificationStatusResult, ConfirmPortoneCertificationPayload, PortoneCertificationCompletedResult, CompletePortoneCertificationPayload, CompletePortoneCertificationResult, CompleteSignupPortoneCertificationResult, StartPortoneCertificationResult, StartSignupPortoneCertificationResult } from '../dto/portone-certification';
|
|
4
4
|
/**
|
|
5
5
|
* @author 홍준
|
|
6
6
|
* @description 포트원 본인확인 user-service AMQP client
|
|
@@ -10,10 +10,18 @@ export declare class AmqpPortoneCertificationService {
|
|
|
10
10
|
private readonly client;
|
|
11
11
|
private readonly amqpManager;
|
|
12
12
|
constructor(client: ClientProxy);
|
|
13
|
+
/** @author 홍준 @description 수령인 일치 여부 조회 @process 개인정보를 제외한 비교 결과만 반환한다. */
|
|
14
|
+
checkReceiver(payload: CheckCiReceiverPayload, param: AbstractParam): Promise<CheckCiReceiverResult>;
|
|
15
|
+
/** @author 홍준 @description 관세청 주문자 내부 조회 @process CI 조회는 내부 주문 서비스에서만 사용한다. */
|
|
16
|
+
getCustomsOrderer(payload: CheckCiReceiverPayload, param: AbstractParam): Promise<GetCustomsOrdererResult>;
|
|
17
|
+
/** @author 홍준 @description 현재 회원 CI 인증 상태 조회 @process 로그인 문맥만 보내고 개인정보 없는 완료 여부를 반환한다. */
|
|
18
|
+
getStatus(param: AbstractParam): Promise<GetCiCertificationStatusResult>;
|
|
13
19
|
/** @author 홍준 @description 가입 전 인증 시작 @process 회원 ID 없이 임시 인증 세션을 생성한다. */
|
|
14
20
|
startSignup(param: AbstractParam): Promise<StartSignupPortoneCertificationResult>;
|
|
15
21
|
/** @author 홍준 @description 가입 전 인증 완료 @process 검증된 인증정보와 연결된 가입 매칭 식별자를 반환한다. */
|
|
16
22
|
completeSignup(payload: CompletePortoneCertificationPayload, param: AbstractParam): Promise<CompleteSignupPortoneCertificationResult>;
|
|
23
|
+
/** @author 홍준 @description 회원정보 변경 동의 확정 @process 서버에 임시 보관한 인증 결과를 회원정보와 함께 반영한다. */
|
|
24
|
+
confirm(payload: ConfirmPortoneCertificationPayload, param: AbstractParam): Promise<PortoneCertificationCompletedResult>;
|
|
17
25
|
/** @author 홍준 @description 인증 요청용 merchant UID 생성 @process 단발성 세션을 만든다. */
|
|
18
26
|
start(param: AbstractParam): Promise<StartPortoneCertificationResult>;
|
|
19
27
|
/** @author 홍준 @description 포트원 인증 결과 검증 @process 포트원 서버 조회 후 CI와 제공된 개인정보를 암호화 저장한다. */
|
|
@@ -26,6 +26,18 @@ let AmqpPortoneCertificationService = class AmqpPortoneCertificationService {
|
|
|
26
26
|
this.client = client;
|
|
27
27
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
28
|
}
|
|
29
|
+
/** @author 홍준 @description 수령인 일치 여부 조회 @process 개인정보를 제외한 비교 결과만 반환한다. */
|
|
30
|
+
async checkReceiver(payload, param) {
|
|
31
|
+
return this.amqpManager.call('CI 수령인 비교', 'portone-certification.check.receiver', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
/** @author 홍준 @description 관세청 주문자 내부 조회 @process CI 조회는 내부 주문 서비스에서만 사용한다. */
|
|
34
|
+
async getCustomsOrderer(payload, param) {
|
|
35
|
+
return this.amqpManager.call('관세청 주문자 내부 조회', 'portone-certification.get.customs-orderer', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
37
|
+
/** @author 홍준 @description 현재 회원 CI 인증 상태 조회 @process 로그인 문맥만 보내고 개인정보 없는 완료 여부를 반환한다. */
|
|
38
|
+
async getStatus(param) {
|
|
39
|
+
return this.amqpManager.call('회원 CI 인증 상태 조회', 'portone-certification.status', undefined, param, { isErrorThrowing: true });
|
|
40
|
+
}
|
|
29
41
|
/** @author 홍준 @description 가입 전 인증 시작 @process 회원 ID 없이 임시 인증 세션을 생성한다. */
|
|
30
42
|
async startSignup(param) {
|
|
31
43
|
return this.amqpManager.call('가입 전 포트원 인증 시작', 'portone-certification.signup.start', undefined, param, { isErrorThrowing: true });
|
|
@@ -34,6 +46,10 @@ let AmqpPortoneCertificationService = class AmqpPortoneCertificationService {
|
|
|
34
46
|
async completeSignup(payload, param) {
|
|
35
47
|
return this.amqpManager.call('가입 전 포트원 인증 완료', 'portone-certification.signup.complete', payload, param, { isErrorThrowing: true });
|
|
36
48
|
}
|
|
49
|
+
/** @author 홍준 @description 회원정보 변경 동의 확정 @process 서버에 임시 보관한 인증 결과를 회원정보와 함께 반영한다. */
|
|
50
|
+
async confirm(payload, param) {
|
|
51
|
+
return this.amqpManager.call('포트원 회원정보 변경 동의', 'portone-certification.confirm', payload, param, { isErrorThrowing: true });
|
|
52
|
+
}
|
|
37
53
|
/** @author 홍준 @description 인증 요청용 merchant UID 생성 @process 단발성 세션을 만든다. */
|
|
38
54
|
async start(param) {
|
|
39
55
|
return this.amqpManager.call('포트원 본인확인 시작', 'portone-certification.start', undefined, 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);
|