@yolo-croket-dev/amqp-access 0.7.60 → 0.7.62

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.
@@ -1,3 +1,4 @@
1
1
  export * from './issue-billing-key.dto';
2
2
  export * from './register-billing-card.dto';
3
3
  export * from './cancel-billing-payment.dto';
4
+ export * from './remove-billing-key.dto';
@@ -17,3 +17,4 @@ 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);
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1,26 @@
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.RemoveBillingKeyPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * @author jun
16
+ * @description NicePay 빌키 삭제 요청 Payload
17
+ * @process order-server의 RemoveBillingKeyService에 전달되는 데이터
18
+ */
19
+ class RemoveBillingKeyPayload {
20
+ }
21
+ exports.RemoveBillingKeyPayload = RemoveBillingKeyPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], RemoveBillingKeyPayload.prototype, "bid", void 0);
@@ -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, GetCardInterestFreeResult, CancelBillingPaymentPayload, CancelBillingPaymentResult } from '../dto/nicepay';
3
+ import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult, RegisterBillingCardPayload, RegisterBillingCardResult, GetCardInterestFreeResult, CancelBillingPaymentPayload, CancelBillingPaymentResult, RemoveBillingKeyPayload, RemoveBillingKeyResult } from '../dto/nicepay';
4
4
  /**
5
5
  * @author jun
6
6
  * @description NicePay 관련 AMQP 서비스
@@ -20,4 +20,6 @@ export declare class AmqpNicepayService {
20
20
  getCardInterestFree(param: AbstractParam): Promise<GetCardInterestFreeResult>;
21
21
  /** NicePay 빌링 결제 취소 */
22
22
  cancelBillingPayment(payload: CancelBillingPaymentPayload, param: AbstractParam): Promise<CancelBillingPaymentResult>;
23
+ /** NicePay 빌키 삭제 */
24
+ removeBillingKey(payload: RemoveBillingKeyPayload, param: AbstractParam): Promise<RemoveBillingKeyResult>;
23
25
  }
@@ -46,6 +46,10 @@ let AmqpNicepayService = class AmqpNicepayService {
46
46
  async cancelBillingPayment(payload, param) {
47
47
  return this.amqpManager.call('NicePay 빌링 결제 취소', 'nicepay.cancel.billing-payment', payload, param, { isErrorThrowing: true });
48
48
  }
49
+ /** NicePay 빌키 삭제 */
50
+ async removeBillingKey(payload, param) {
51
+ return this.amqpManager.call('NicePay 빌키 삭제', 'nicepay.remove.billing-key', payload, param, { isErrorThrowing: true });
52
+ }
49
53
  };
50
54
  exports.AmqpNicepayService = AmqpNicepayService;
51
55
  exports.AmqpNicepayService = AmqpNicepayService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.60",
3
+ "version": "0.7.62",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { ReProcessTosspaymentsRefundByRefundErrorPayload, ResolveTosspaymentsRefundByRefundErrorPayload } from '../dto';
3
+ import { ReProcessNicepayBillingRefundByRefundErrorPayload, ReProcessTosspaymentsRefundByRefundErrorPayload, ResolveNicepayBillingRefundByRefundErrorPayload, ResolveTosspaymentsRefundByRefundErrorPayload } from '../dto';
4
4
  import { CheckForImmediateRefundAvailabilityV2Payload, CheckForImmediateRefundAvailabilityV2Result, GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result, GetRefundNoticePayload, GetRefundNoticeResult } from '../dto/refund/query';
5
5
  export declare class AmqpRefundService {
6
6
  private readonly client;
@@ -9,6 +9,8 @@ export declare class AmqpRefundService {
9
9
  sendSlackRefundsGroupByItem(payload: void, param: AbstractParam): Promise<void>;
10
10
  resolveTosspaymentsRefundByRefundError(payload: ResolveTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
11
11
  reProcessTosspaymentsRefundByRefundError(payload: ReProcessTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
12
+ resolveNicepayBillingRefundByRefundError(payload: ResolveNicepayBillingRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
13
+ reProcessNicepayBillingRefundByRefundError(payload: ReProcessNicepayBillingRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
12
14
  getRefundsAnalyticsAggregationRefundingTop3(payload: GetRefundsAnalyticsAggregationRefundingTop3Payload, param: AbstractParam): Promise<GetRefundsAnalyticsAggregationRefundingTop3Result>;
13
15
  checkForImmediateRefundAvailabilityV2(payload: CheckForImmediateRefundAvailabilityV2Payload, param: AbstractParam): Promise<CheckForImmediateRefundAvailabilityV2Result>;
14
16
  getRefundNotice(payload: GetRefundNoticePayload, param: AbstractParam): Promise<GetRefundNoticeResult>;
@@ -31,6 +31,12 @@ let AmqpRefundService = class AmqpRefundService {
31
31
  async reProcessTosspaymentsRefundByRefundError(payload, param) {
32
32
  return this.amqpManager.call('토스페이먼츠 오류난 건 재환불 시도', 'refund.re-process.tosspayments-refund-by-refund-error', payload, param, { isErrorThrowing: true });
33
33
  }
34
+ async resolveNicepayBillingRefundByRefundError(payload, param) {
35
+ return this.amqpManager.call('나이스페이 빌링 오류난 건 해결 처리', 'refund.resolve.nicepay-billing-refund-by-refund-error', payload, param, { isErrorThrowing: true });
36
+ }
37
+ async reProcessNicepayBillingRefundByRefundError(payload, param) {
38
+ return this.amqpManager.call('나이스페이 빌링 오류난 건 재환불 시도', 'refund.re-process.nicepay-billing-refund-by-refund-error', payload, param, { isErrorThrowing: true });
39
+ }
34
40
  async getRefundsAnalyticsAggregationRefundingTop3(payload, param) {
35
41
  return this.amqpManager.call('환불 요청이 가장 많은 Top 3 상품 조회', 'refund.get.analytics-aggregation-refunding-top3', payload, param);
36
42
  }