@yolo-croket-dev/amqp-access 0.7.54-jun.2 → 0.7.54-jun.20
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/nicepay/command/cancel-billing-payment.dto.d.ts +31 -0
- package/order-server/dto/nicepay/command/cancel-billing-payment.dto.js +62 -0
- package/order-server/dto/nicepay/command/index.d.ts +1 -0
- package/order-server/dto/nicepay/command/index.js +1 -0
- package/order-server/dto/nicepay/command/register-billing-card.dto.d.ts +1 -1
- package/order-server/dto/nicepay/query/get-card-interest-free.dto.d.ts +31 -0
- package/order-server/dto/nicepay/query/get-card-interest-free.dto.js +20 -0
- package/order-server/dto/nicepay/query/index.d.ts +1 -0
- package/order-server/dto/nicepay/query/index.js +1 -0
- package/order-server/dto/purchase-receipt/command/update-purchase-receipt.dto.d.ts +1 -2
- package/order-server/dto/purchase-receipt/command/update-purchase-receipt.dto.js +0 -5
- package/order-server/dto/purchase-receipt/query/search-purchase-receipts.dto.d.ts +1 -2
- package/order-server/dto/purchase-receipt/query/search-purchase-receipts.dto.js +0 -5
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-buyer.dto.d.ts +17 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-buyer.dto.js +19 -1
- package/order-server/dto/user-card-billing/query/get-my-user-card-billing-detail.dto.d.ts +19 -0
- package/order-server/dto/user-card-billing/query/get-my-user-card-billing-detail.dto.js +29 -0
- package/order-server/dto/user-card-billing/query/get-user-card-billing-list.dto.d.ts +1 -1
- package/order-server/dto/user-card-billing/query/index.d.ts +1 -0
- package/order-server/dto/user-card-billing/query/index.js +1 -0
- package/order-server/services/amqp.nicepay.service.d.ts +5 -1
- package/order-server/services/amqp.nicepay.service.js +8 -0
- package/order-server/services/amqp.user-card-billing.service.d.ts +3 -1
- package/order-server/services/amqp.user-card-billing.service.js +4 -0
- package/package.json +3 -3
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NicepayBillingCancelApiResponse } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description NicePay 빌링 결제 취소 요청 Payload
|
|
5
|
+
* @process order-server의 CancelBillingPaymentService에 전달되는 데이터
|
|
6
|
+
*/
|
|
7
|
+
export declare class CancelBillingPaymentPayload {
|
|
8
|
+
/** 승인 시 받은 거래 ID */
|
|
9
|
+
tid: string;
|
|
10
|
+
/** 취소 금액 */
|
|
11
|
+
cancelAmt: number;
|
|
12
|
+
/** 취소 사유 */
|
|
13
|
+
cancelMsg: string;
|
|
14
|
+
/** 부분취소 여부 (0: 전체취소, 1: 부분취소) */
|
|
15
|
+
partialCancelCode: string;
|
|
16
|
+
/** 유저 ID (로그 저장용) */
|
|
17
|
+
userId: string;
|
|
18
|
+
/** 유저 카드 빌링 ID (로그 저장용) */
|
|
19
|
+
userCardBillingId: string;
|
|
20
|
+
/** 구매 정보 ID (로그 저장용) */
|
|
21
|
+
pInfoId: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @description NicePay 빌링 결제 취소 결과
|
|
25
|
+
*/
|
|
26
|
+
export declare class CancelBillingPaymentResult {
|
|
27
|
+
/** 취소 성공 여부 */
|
|
28
|
+
isCancelSuccess: boolean;
|
|
29
|
+
/** 나이스페이 빌링 취소 API 응답 */
|
|
30
|
+
nicepayBillingCancelApiResponse: NicepayBillingCancelApiResponse;
|
|
31
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.CancelBillingPaymentResult = exports.CancelBillingPaymentPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author jun
|
|
16
|
+
* @description NicePay 빌링 결제 취소 요청 Payload
|
|
17
|
+
* @process order-server의 CancelBillingPaymentService에 전달되는 데이터
|
|
18
|
+
*/
|
|
19
|
+
class CancelBillingPaymentPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.CancelBillingPaymentPayload = CancelBillingPaymentPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CancelBillingPaymentPayload.prototype, "tid", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CancelBillingPaymentPayload.prototype, "cancelAmt", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CancelBillingPaymentPayload.prototype, "cancelMsg", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CancelBillingPaymentPayload.prototype, "partialCancelCode", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CancelBillingPaymentPayload.prototype, "userId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CancelBillingPaymentPayload.prototype, "userCardBillingId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CancelBillingPaymentPayload.prototype, "pInfoId", void 0);
|
|
57
|
+
/**
|
|
58
|
+
* @description NicePay 빌링 결제 취소 결과
|
|
59
|
+
*/
|
|
60
|
+
class CancelBillingPaymentResult {
|
|
61
|
+
}
|
|
62
|
+
exports.CancelBillingPaymentResult = CancelBillingPaymentResult;
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./issue-billing-key.dto"), exports);
|
|
18
18
|
__exportStar(require("./register-billing-card.dto"), exports);
|
|
19
|
+
__exportStar(require("./cancel-billing-payment.dto"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author jun
|
|
3
|
+
* @description NicePay 카드 무이자 할부 정보 조회 DTO
|
|
4
|
+
* @process NicePay 무이자 정보 조회 API 응답 body를 정의
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @description NicePay 카드 무이자 할부 정보 조회 응답 data 상세 항목
|
|
8
|
+
*/
|
|
9
|
+
export declare class GetCardInterestFreeDataItem {
|
|
10
|
+
/** 카드사코드 */
|
|
11
|
+
FnCd: string;
|
|
12
|
+
/** 카드사명 */
|
|
13
|
+
FnNm: string;
|
|
14
|
+
/** 개월 수 */
|
|
15
|
+
instmntMon: string;
|
|
16
|
+
/** 할부 유형 */
|
|
17
|
+
instmntType: string;
|
|
18
|
+
/** 최소 금액 */
|
|
19
|
+
minAmt: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @description NicePay 카드 무이자 할부 정보 조회 Result
|
|
23
|
+
*/
|
|
24
|
+
export declare class GetCardInterestFreeResult {
|
|
25
|
+
/** 대상일자 (yyyymmdd) */
|
|
26
|
+
targetDt: string;
|
|
27
|
+
/** 데이터 Count */
|
|
28
|
+
dataCnt: string;
|
|
29
|
+
/** 무이자 할부 데이터 */
|
|
30
|
+
data: GetCardInterestFreeDataItem[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description NicePay 카드 무이자 할부 정보 조회 DTO
|
|
5
|
+
* @process NicePay 무이자 정보 조회 API 응답 body를 정의
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.GetCardInterestFreeResult = exports.GetCardInterestFreeDataItem = void 0;
|
|
9
|
+
/**
|
|
10
|
+
* @description NicePay 카드 무이자 할부 정보 조회 응답 data 상세 항목
|
|
11
|
+
*/
|
|
12
|
+
class GetCardInterestFreeDataItem {
|
|
13
|
+
}
|
|
14
|
+
exports.GetCardInterestFreeDataItem = GetCardInterestFreeDataItem;
|
|
15
|
+
/**
|
|
16
|
+
* @description NicePay 카드 무이자 할부 정보 조회 Result
|
|
17
|
+
*/
|
|
18
|
+
class GetCardInterestFreeResult {
|
|
19
|
+
}
|
|
20
|
+
exports.GetCardInterestFreeResult = GetCardInterestFreeResult;
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-nicepay-billing-auth-form.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-card-interest-free.dto"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PurchasedProcessV2Enum
|
|
1
|
+
import { PurchasedProcessV2Enum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
|
|
2
2
|
declare class PurchaseReceiptReceiveInfo {
|
|
3
3
|
buyerName: string;
|
|
4
4
|
buyerPhoneNumber: string;
|
|
@@ -14,6 +14,5 @@ export declare class UpdatePurchaseReceiptPayload {
|
|
|
14
14
|
process?: PurchasedProcessV2Enum;
|
|
15
15
|
paymentDate?: Date;
|
|
16
16
|
receiveInfo?: PurchaseReceiptReceiveInfo;
|
|
17
|
-
cancelType?: ReservationCancelTypeEnum;
|
|
18
17
|
}
|
|
19
18
|
export {};
|
|
@@ -79,8 +79,3 @@ __decorate([
|
|
|
79
79
|
(0, class_validator_1.IsOptional)(),
|
|
80
80
|
__metadata("design:type", PurchaseReceiptReceiveInfo)
|
|
81
81
|
], UpdatePurchaseReceiptPayload.prototype, "receiveInfo", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, class_validator_1.IsEnum)(purchased_info_entity_1.ReservationCancelTypeEnum),
|
|
84
|
-
(0, class_validator_1.IsOptional)(),
|
|
85
|
-
__metadata("design:type", String)
|
|
86
|
-
], UpdatePurchaseReceiptPayload.prototype, "cancelType", void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PurchasedProcessV2Enum
|
|
1
|
+
import { PurchasedProcessV2Enum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
|
|
2
2
|
import { PurchaseReceiptDomain, CustomPurchaseReceiptPurchasedInfo } from '@yolo-croket-dev/domain';
|
|
3
3
|
export declare class SearchPurchaseReceiptsPayload {
|
|
4
4
|
sDate?: Date;
|
|
@@ -7,7 +7,6 @@ export declare class SearchPurchaseReceiptsPayload {
|
|
|
7
7
|
limit: number;
|
|
8
8
|
searchAfter?: string;
|
|
9
9
|
searchBefore?: string;
|
|
10
|
-
cancelType?: ReservationCancelTypeEnum;
|
|
11
10
|
}
|
|
12
11
|
export declare class PurchaseReceiptList implements Pick<PurchaseReceiptDomain, '_id' | 'paymentNumber' | 'paymentMethod' | 'purchasedInfos' | 'paymentDate' | 'searchToken' | 'purchasedInfoTotalCount'> {
|
|
13
12
|
_id: string;
|
|
@@ -47,11 +47,6 @@ __decorate([
|
|
|
47
47
|
(0, class_validator_1.IsOptional)(),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], SearchPurchaseReceiptsPayload.prototype, "searchBefore", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsEnum)(purchased_info_entity_1.ReservationCancelTypeEnum),
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], SearchPurchaseReceiptsPayload.prototype, "cancelType", void 0);
|
|
55
50
|
// eslint-disable-next-line max-len
|
|
56
51
|
class PurchaseReceiptList {
|
|
57
52
|
}
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/** @description 구매자 예약 취소 에러 코드 */
|
|
2
|
+
export declare enum CancelReservationByBuyerErrorEnum {
|
|
3
|
+
/** 로그인 필요 */
|
|
4
|
+
NOT_FOUND_BUYER = "NOT_FOUND_BUYER",
|
|
5
|
+
/** 주문 정보 미존재 */
|
|
6
|
+
NOT_FOUND_PURCHASED_INFO = "NOT_FOUND_PURCHASED_INFO",
|
|
7
|
+
/** 예약 상품 주문이 아님 */
|
|
8
|
+
NOT_RESERVATION_ITEM = "NOT_RESERVATION_ITEM",
|
|
9
|
+
/** 본인 주문이 아님 */
|
|
10
|
+
NOT_BUYER = "NOT_BUYER",
|
|
11
|
+
/** 예약중 상태가 아님 */
|
|
12
|
+
NOT_RESERVING_STATUS = "NOT_RESERVING_STATUS",
|
|
13
|
+
/** 예약 가능 기간 만료 */
|
|
14
|
+
RESERVATION_PERIOD_EXPIRED = "RESERVATION_PERIOD_EXPIRED",
|
|
15
|
+
/** 이미 취소되었거나 예약중 상태가 아님 (core) */
|
|
16
|
+
ALREADY_CANCELLED_OR_NOT_RESERVING = "ALREADY_CANCELLED_OR_NOT_RESERVING"
|
|
17
|
+
}
|
|
1
18
|
/** @description 구매자 예약 취소 요청 Payload */
|
|
2
19
|
export declare class CancelReservationByBuyerPayload {
|
|
3
20
|
pInfoId: string;
|
|
@@ -9,8 +9,26 @@ 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.CancelReservationByBuyerPayload = void 0;
|
|
12
|
+
exports.CancelReservationByBuyerPayload = exports.CancelReservationByBuyerErrorEnum = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @description 구매자 예약 취소 에러 코드 */
|
|
15
|
+
var CancelReservationByBuyerErrorEnum;
|
|
16
|
+
(function (CancelReservationByBuyerErrorEnum) {
|
|
17
|
+
/** 로그인 필요 */
|
|
18
|
+
CancelReservationByBuyerErrorEnum["NOT_FOUND_BUYER"] = "NOT_FOUND_BUYER";
|
|
19
|
+
/** 주문 정보 미존재 */
|
|
20
|
+
CancelReservationByBuyerErrorEnum["NOT_FOUND_PURCHASED_INFO"] = "NOT_FOUND_PURCHASED_INFO";
|
|
21
|
+
/** 예약 상품 주문이 아님 */
|
|
22
|
+
CancelReservationByBuyerErrorEnum["NOT_RESERVATION_ITEM"] = "NOT_RESERVATION_ITEM";
|
|
23
|
+
/** 본인 주문이 아님 */
|
|
24
|
+
CancelReservationByBuyerErrorEnum["NOT_BUYER"] = "NOT_BUYER";
|
|
25
|
+
/** 예약중 상태가 아님 */
|
|
26
|
+
CancelReservationByBuyerErrorEnum["NOT_RESERVING_STATUS"] = "NOT_RESERVING_STATUS";
|
|
27
|
+
/** 예약 가능 기간 만료 */
|
|
28
|
+
CancelReservationByBuyerErrorEnum["RESERVATION_PERIOD_EXPIRED"] = "RESERVATION_PERIOD_EXPIRED";
|
|
29
|
+
/** 이미 취소되었거나 예약중 상태가 아님 (core) */
|
|
30
|
+
CancelReservationByBuyerErrorEnum["ALREADY_CANCELLED_OR_NOT_RESERVING"] = "ALREADY_CANCELLED_OR_NOT_RESERVING";
|
|
31
|
+
})(CancelReservationByBuyerErrorEnum || (exports.CancelReservationByBuyerErrorEnum = CancelReservationByBuyerErrorEnum = {}));
|
|
14
32
|
/** @description 구매자 예약 취소 요청 Payload */
|
|
15
33
|
class CancelReservationByBuyerPayload {
|
|
16
34
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UserCardBillingEntity } from '@yolo-croket-dev/entity-v2/user';
|
|
2
|
+
/**
|
|
3
|
+
* @description 유저 카드 정보 상세 조회 요청 Payload
|
|
4
|
+
*/
|
|
5
|
+
export declare class GetMyUserCardBillingDetailPayload {
|
|
6
|
+
/** 조회할 유저 카드 빌링 ID */
|
|
7
|
+
userCardBillingId: string;
|
|
8
|
+
}
|
|
9
|
+
export type UserCardBillingForBuyer = Pick<UserCardBillingEntity, 'cardCompany' | 'cardNumberLast4' | 'isView' | 'regDate' | 'type'> & {
|
|
10
|
+
_id: string;
|
|
11
|
+
userId: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @description 유저 카드 정보 상세 조회 응답 Result
|
|
15
|
+
*/
|
|
16
|
+
export declare class GetMyUserCardBillingDetailResult {
|
|
17
|
+
/** 유저 카드 빌링 정보 */
|
|
18
|
+
userCardBilling: UserCardBillingForBuyer;
|
|
19
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.GetMyUserCardBillingDetailResult = exports.GetMyUserCardBillingDetailPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @description 유저 카드 정보 상세 조회 요청 Payload
|
|
16
|
+
*/
|
|
17
|
+
class GetMyUserCardBillingDetailPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.GetMyUserCardBillingDetailPayload = GetMyUserCardBillingDetailPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsMongoId)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GetMyUserCardBillingDetailPayload.prototype, "userCardBillingId", void 0);
|
|
24
|
+
/**
|
|
25
|
+
* @description 유저 카드 정보 상세 조회 응답 Result
|
|
26
|
+
*/
|
|
27
|
+
class GetMyUserCardBillingDetailResult {
|
|
28
|
+
}
|
|
29
|
+
exports.GetMyUserCardBillingDetailResult = GetMyUserCardBillingDetailResult;
|
|
@@ -13,7 +13,7 @@ export declare class GetUserCardBillingListPayload {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class GetUserCardBillingListResult {
|
|
15
15
|
/** 유저 카드 빌링 정보 목록 */
|
|
16
|
-
|
|
16
|
+
userCardBillings: UserCardBillingEntity[];
|
|
17
17
|
/** 전체 개수 */
|
|
18
18
|
allCount: number;
|
|
19
19
|
}
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-user-card-billing-list.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-my-user-card-billing-detail.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult, RegisterBillingCardPayload, RegisterBillingCardResult } from '../dto/nicepay';
|
|
3
|
+
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult, RegisterBillingCardPayload, RegisterBillingCardResult, GetCardInterestFreeResult, CancelBillingPaymentPayload, CancelBillingPaymentResult } from '../dto/nicepay';
|
|
4
4
|
/**
|
|
5
5
|
* @author jun
|
|
6
6
|
* @description NicePay 관련 AMQP 서비스
|
|
@@ -16,4 +16,8 @@ export declare class AmqpNicepayService {
|
|
|
16
16
|
issueBillingKey(payload: IssueBillingKeyPayload, param: AbstractParam): Promise<IssueBillingKeyResult>;
|
|
17
17
|
/** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
|
|
18
18
|
registerBillingCard(payload: RegisterBillingCardPayload, param: AbstractParam): Promise<RegisterBillingCardResult>;
|
|
19
|
+
/** NicePay 카드 무이자 할부 정보 조회 */
|
|
20
|
+
getCardInterestFree(param: AbstractParam): Promise<GetCardInterestFreeResult>;
|
|
21
|
+
/** NicePay 빌링 결제 취소 */
|
|
22
|
+
cancelBillingPayment(payload: CancelBillingPaymentPayload, param: AbstractParam): Promise<CancelBillingPaymentResult>;
|
|
19
23
|
}
|
|
@@ -38,6 +38,14 @@ let AmqpNicepayService = class AmqpNicepayService {
|
|
|
38
38
|
async registerBillingCard(payload, param) {
|
|
39
39
|
return this.amqpManager.call('NicePay 빌링키 발급 + 유저 카드 등록', 'nicepay.register.billing-card', payload, param, { isErrorThrowing: true });
|
|
40
40
|
}
|
|
41
|
+
/** NicePay 카드 무이자 할부 정보 조회 */
|
|
42
|
+
async getCardInterestFree(param) {
|
|
43
|
+
return this.amqpManager.call('NicePay 카드 무이자 할부 정보 조회', 'nicepay.get.card-interest-free', {}, param, { isErrorThrowing: true });
|
|
44
|
+
}
|
|
45
|
+
/** NicePay 빌링 결제 취소 */
|
|
46
|
+
async cancelBillingPayment(payload, param) {
|
|
47
|
+
return this.amqpManager.call('NicePay 빌링 결제 취소', 'nicepay.cancel.billing-payment', payload, param, { isErrorThrowing: true });
|
|
48
|
+
}
|
|
41
49
|
};
|
|
42
50
|
exports.AmqpNicepayService = AmqpNicepayService;
|
|
43
51
|
exports.AmqpNicepayService = AmqpNicepayService = __decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { RegisterUserCardBillingPayload, DeleteUserCardBillingPayload, GetUserCardBillingListPayload, GetUserCardBillingListResult } from '../dto/user-card-billing';
|
|
3
|
+
import { RegisterUserCardBillingPayload, DeleteUserCardBillingPayload, GetUserCardBillingListPayload, GetUserCardBillingListResult, GetMyUserCardBillingDetailPayload, GetMyUserCardBillingDetailResult } from '../dto/user-card-billing';
|
|
4
4
|
/**
|
|
5
5
|
* @author jun
|
|
6
6
|
* @description 유저 카드 빌링 정보 AMQP 서비스
|
|
@@ -16,4 +16,6 @@ export declare class AmqpUserCardBillingService {
|
|
|
16
16
|
deleteUserCardBilling(payload: DeleteUserCardBillingPayload, param: AbstractParam): Promise<void>;
|
|
17
17
|
/** 유저 카드 정보 목록 조회 */
|
|
18
18
|
getUserCardBillingList(payload: GetUserCardBillingListPayload, param: AbstractParam): Promise<GetUserCardBillingListResult>;
|
|
19
|
+
/** 유저 카드 정보 상세 조회 */
|
|
20
|
+
getMyUserCardBillingDetail(payload: GetMyUserCardBillingDetailPayload, param: AbstractParam): Promise<GetMyUserCardBillingDetailResult>;
|
|
19
21
|
}
|
|
@@ -38,6 +38,10 @@ let AmqpUserCardBillingService = class AmqpUserCardBillingService {
|
|
|
38
38
|
async getUserCardBillingList(payload, param) {
|
|
39
39
|
return this.amqpManager.call('유저 카드 정보 목록 조회', 'user-card-billing.get.list', payload, param, { isErrorThrowing: true });
|
|
40
40
|
}
|
|
41
|
+
/** 유저 카드 정보 상세 조회 */
|
|
42
|
+
async getMyUserCardBillingDetail(payload, param) {
|
|
43
|
+
return this.amqpManager.call('유저 카드 정보 상세 조회', 'user-card-billing.get.my-detail', payload, param, { isErrorThrowing: true });
|
|
44
|
+
}
|
|
41
45
|
};
|
|
42
46
|
exports.AmqpUserCardBillingService = AmqpUserCardBillingService;
|
|
43
47
|
exports.AmqpUserCardBillingService = AmqpUserCardBillingService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.54-jun.
|
|
3
|
+
"version": "0.7.54-jun.20",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nestjs/common": "^10.3.10",
|
|
21
21
|
"@yolo-croket-dev/core": "^1.9.3",
|
|
22
|
-
"@yolo-croket-dev/domain": "0.2.27-jun.
|
|
22
|
+
"@yolo-croket-dev/domain": "0.2.27-jun.5",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "0.2.15",
|
|
24
24
|
"@yolo-croket-dev/entity": "0.2.66-jun.10",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.2.129-jun.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "0.2.129-jun.2",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|