@yolo-croket-dev/amqp-access 0.7.63 → 0.7.65
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/index.d.ts +0 -1
- package/order-server/dto/nicepay/command/index.js +0 -1
- package/order-server/dto/user-card-billing/command/delete-user-card-billings-by-user-id-by-admin.dto.d.ts +7 -0
- package/order-server/dto/{nicepay/command/remove-billing-key.dto.js → user-card-billing/command/delete-user-card-billings-by-user-id-by-admin.dto.js} +5 -7
- package/order-server/dto/user-card-billing/command/index.d.ts +1 -0
- package/order-server/dto/user-card-billing/command/index.js +1 -0
- package/order-server/services/amqp.nicepay.service.d.ts +1 -5
- package/order-server/services/amqp.nicepay.service.js +0 -8
- 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 +1 -1
- package/order-server/dto/nicepay/command/remove-billing-key.dto.d.ts +0 -24
|
@@ -17,4 +17,3 @@ 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
19
|
__exportStar(require("./cancel-billing-payment.dto"), exports);
|
|
20
|
-
__exportStar(require("./remove-billing-key.dto"), exports);
|
|
@@ -9,18 +9,16 @@ 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.
|
|
12
|
+
exports.DeleteUserCardBillingsByUserIdByAdminPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
/**
|
|
15
|
-
* @
|
|
16
|
-
* @description NicePay 빌키 삭제 요청 Payload
|
|
17
|
-
* @process order-server의 RemoveBillingKeyService에 전달되는 데이터
|
|
15
|
+
* @description 관리자 유저 ID 기반 카드 빌링 정보 삭제 요청 Payload
|
|
18
16
|
*/
|
|
19
|
-
class
|
|
17
|
+
class DeleteUserCardBillingsByUserIdByAdminPayload {
|
|
20
18
|
}
|
|
21
|
-
exports.
|
|
19
|
+
exports.DeleteUserCardBillingsByUserIdByAdminPayload = DeleteUserCardBillingsByUserIdByAdminPayload;
|
|
22
20
|
__decorate([
|
|
23
21
|
(0, class_validator_1.IsString)(),
|
|
24
22
|
(0, class_validator_1.IsNotEmpty)(),
|
|
25
23
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
24
|
+
], DeleteUserCardBillingsByUserIdByAdminPayload.prototype, "userId", 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("./register-user-card-billing.dto"), exports);
|
|
18
18
|
__exportStar(require("./delete-user-card-billing-by-admin.dto"), exports);
|
|
19
|
+
__exportStar(require("./delete-user-card-billings-by-user-id-by-admin.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,
|
|
3
|
+
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, RegisterBillingCardPayload, RegisterBillingCardResult, GetCardInterestFreeResult, CancelBillingPaymentPayload, CancelBillingPaymentResult } from '../dto/nicepay';
|
|
4
4
|
/**
|
|
5
5
|
* @author jun
|
|
6
6
|
* @description NicePay 관련 AMQP 서비스
|
|
@@ -12,14 +12,10 @@ export declare class AmqpNicepayService {
|
|
|
12
12
|
constructor(client: ClientProxy);
|
|
13
13
|
/** NicePay 빌키 발급 인증창 form 데이터 조회 */
|
|
14
14
|
getNicepayBillingAuthForm(payload: GetNicepayBillingAuthFormPayload, param: AbstractParam): Promise<GetNicepayBillingAuthFormResult>;
|
|
15
|
-
/** NicePay 빌링키 발급(인증) */
|
|
16
|
-
issueBillingKey(payload: IssueBillingKeyPayload, param: AbstractParam): Promise<IssueBillingKeyResult>;
|
|
17
15
|
/** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
|
|
18
16
|
registerBillingCard(payload: RegisterBillingCardPayload, param: AbstractParam): Promise<RegisterBillingCardResult>;
|
|
19
17
|
/** NicePay 카드 무이자 할부 정보 조회 */
|
|
20
18
|
getCardInterestFree(param: AbstractParam): Promise<GetCardInterestFreeResult>;
|
|
21
19
|
/** NicePay 빌링 결제 취소 */
|
|
22
20
|
cancelBillingPayment(payload: CancelBillingPaymentPayload, param: AbstractParam): Promise<CancelBillingPaymentResult>;
|
|
23
|
-
/** NicePay 빌키 삭제 */
|
|
24
|
-
removeBillingKey(payload: RemoveBillingKeyPayload, param: AbstractParam): Promise<RemoveBillingKeyResult>;
|
|
25
21
|
}
|
|
@@ -30,10 +30,6 @@ let AmqpNicepayService = class AmqpNicepayService {
|
|
|
30
30
|
async getNicepayBillingAuthForm(payload, param) {
|
|
31
31
|
return this.amqpManager.call('NicePay 빌키 발급 인증창 form 데이터 조회', 'nicepay.get.billing-auth-form', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
|
-
/** NicePay 빌링키 발급(인증) */
|
|
34
|
-
async issueBillingKey(payload, param) {
|
|
35
|
-
return this.amqpManager.call('NicePay 빌링키 발급', 'nicepay.issue.billing-key', payload, param, { isErrorThrowing: true });
|
|
36
|
-
}
|
|
37
33
|
/** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
|
|
38
34
|
async registerBillingCard(payload, param) {
|
|
39
35
|
return this.amqpManager.call('NicePay 빌링키 발급 + 유저 카드 등록', 'nicepay.register.billing-card', payload, param, { isErrorThrowing: true });
|
|
@@ -46,10 +42,6 @@ let AmqpNicepayService = class AmqpNicepayService {
|
|
|
46
42
|
async cancelBillingPayment(payload, param) {
|
|
47
43
|
return this.amqpManager.call('NicePay 빌링 결제 취소', 'nicepay.cancel.billing-payment', payload, param, { isErrorThrowing: true });
|
|
48
44
|
}
|
|
49
|
-
/** NicePay 빌키 삭제 */
|
|
50
|
-
async removeBillingKey(payload, param) {
|
|
51
|
-
return this.amqpManager.call('NicePay 빌키 삭제', 'nicepay.remove.billing-key', payload, param, { isErrorThrowing: true });
|
|
52
|
-
}
|
|
53
45
|
};
|
|
54
46
|
exports.AmqpNicepayService = AmqpNicepayService;
|
|
55
47
|
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, DeleteUserCardBillingByAdminPayload, GetUserCardBillingListPayload, GetUserCardBillingListResult, GetMyUserCardBillingDetailPayload, GetMyUserCardBillingDetailResult } from '../dto/user-card-billing';
|
|
3
|
+
import { RegisterUserCardBillingPayload, DeleteUserCardBillingByAdminPayload, DeleteUserCardBillingsByUserIdByAdminPayload, GetUserCardBillingListPayload, GetUserCardBillingListResult, GetMyUserCardBillingDetailPayload, GetMyUserCardBillingDetailResult } from '../dto/user-card-billing';
|
|
4
4
|
/**
|
|
5
5
|
* @author jun
|
|
6
6
|
* @description 유저 카드 빌링 정보 AMQP 서비스
|
|
@@ -14,6 +14,8 @@ export declare class AmqpUserCardBillingService {
|
|
|
14
14
|
registerUserCardBilling(payload: RegisterUserCardBillingPayload, param: AbstractParam): Promise<void>;
|
|
15
15
|
/** 관리자 유저 카드 정보 삭제 */
|
|
16
16
|
deleteUserCardBillingByAdmin(payload: DeleteUserCardBillingByAdminPayload, param: AbstractParam): Promise<void>;
|
|
17
|
+
/** 관리자 유저 ID 기반 카드 빌링 정보 삭제 */
|
|
18
|
+
deleteUserCardBillingsByUserIdByAdmin(payload: DeleteUserCardBillingsByUserIdByAdminPayload, param: AbstractParam): Promise<void>;
|
|
17
19
|
/** 유저 카드 정보 목록 조회 */
|
|
18
20
|
getUserCardBillingList(payload: GetUserCardBillingListPayload, param: AbstractParam): Promise<GetUserCardBillingListResult>;
|
|
19
21
|
/** 유저 카드 정보 상세 조회 */
|
|
@@ -34,6 +34,10 @@ let AmqpUserCardBillingService = class AmqpUserCardBillingService {
|
|
|
34
34
|
async deleteUserCardBillingByAdmin(payload, param) {
|
|
35
35
|
return this.amqpManager.call('관리자 유저 카드 정보 삭제', 'user-card-billing.delete.card-by-admin', payload, param, { isErrorThrowing: true });
|
|
36
36
|
}
|
|
37
|
+
/** 관리자 유저 ID 기반 카드 빌링 정보 삭제 */
|
|
38
|
+
async deleteUserCardBillingsByUserIdByAdmin(payload, param) {
|
|
39
|
+
return this.amqpManager.call('관리자 유저 ID 기반 카드 빌링 정보 삭제', 'user-card-billing.delete.cards-by-user-id-by-admin', payload, param, { isErrorThrowing: true });
|
|
40
|
+
}
|
|
37
41
|
/** 유저 카드 정보 목록 조회 */
|
|
38
42
|
async getUserCardBillingList(payload, param) {
|
|
39
43
|
return this.amqpManager.call('유저 카드 정보 목록 조회', 'user-card-billing.get.list', payload, param, { isErrorThrowing: true });
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author jun
|
|
3
|
-
* @description NicePay 빌키 삭제 요청 Payload
|
|
4
|
-
* @process order-server의 RemoveBillingKeyService에 전달되는 데이터
|
|
5
|
-
*/
|
|
6
|
-
export declare class RemoveBillingKeyPayload {
|
|
7
|
-
/** 빌링키 */
|
|
8
|
-
bid: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @description NicePay 빌키 삭제 결과
|
|
12
|
-
*/
|
|
13
|
-
export interface RemoveBillingKeyResult {
|
|
14
|
-
/** 삭제 성공 여부 */
|
|
15
|
-
isRemoveSuccess: boolean;
|
|
16
|
-
/** 나이스페이 빌키 삭제 API 응답 */
|
|
17
|
-
nicepayBillingKeyRemoveApiResponse: {
|
|
18
|
-
ResultCode: string;
|
|
19
|
-
ResultMsg: string;
|
|
20
|
-
TID?: string;
|
|
21
|
-
BID?: string;
|
|
22
|
-
AuthDate?: string;
|
|
23
|
-
};
|
|
24
|
-
}
|