@yolo-croket-dev/amqp-access 0.7.293 → 0.7.294

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.293",
3
+ "version": "0.7.294",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1,6 +1,6 @@
1
1
  import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
2
2
  import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
3
- declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
3
+ declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
4
4
  /** 구글 시트용 광고센터정산 데이터 */
5
5
  export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
6
6
  storeInfo: {
@@ -3,6 +3,7 @@ export * from './re-process-tosspayments-refund-by-refund-error.dto';
3
3
  export * from './resolve-nicepay-billing-refund-by-refund-error.dto';
4
4
  export * from './resolve-tosspayments-refund-by-refund-error.dto';
5
5
  export * from './refund-waiting-buyer-action.dto';
6
+ export * from './withdraw-refund-waiting-by-seller.dto';
6
7
  export * from './process-refund-waiting-unavailable-by-admin.dto';
7
8
  export * from './process-additional-payment-vbank-expiration.dto';
8
9
  export * from './compensate-late-additional-payment.dto';
@@ -19,6 +19,7 @@ __exportStar(require("./re-process-tosspayments-refund-by-refund-error.dto"), ex
19
19
  __exportStar(require("./resolve-nicepay-billing-refund-by-refund-error.dto"), exports);
20
20
  __exportStar(require("./resolve-tosspayments-refund-by-refund-error.dto"), exports);
21
21
  __exportStar(require("./refund-waiting-buyer-action.dto"), exports);
22
+ __exportStar(require("./withdraw-refund-waiting-by-seller.dto"), exports);
22
23
  __exportStar(require("./process-refund-waiting-unavailable-by-admin.dto"), exports);
23
24
  __exportStar(require("./process-additional-payment-vbank-expiration.dto"), exports);
24
25
  __exportStar(require("./compensate-late-additional-payment.dto"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @author sj
3
+ * @description 셀러가 실제 Refund 생성 전 환불 대기 요청을 철회할 때 사용하는 계약이다.
4
+ * @process payment-service가 셀러 소유권·허용 상태·환불 생성 lease를 검증한 뒤 refundWaitingInfo를 제거한다.
5
+ */
6
+ export declare class WithdrawRefundWaitingBySellerPayload {
7
+ PInfoId: string;
8
+ }
@@ -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.WithdrawRefundWaitingBySellerPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * @author sj
16
+ * @description 셀러가 실제 Refund 생성 전 환불 대기 요청을 철회할 때 사용하는 계약이다.
17
+ * @process payment-service가 셀러 소유권·허용 상태·환불 생성 lease를 검증한 뒤 refundWaitingInfo를 제거한다.
18
+ */
19
+ class WithdrawRefundWaitingBySellerPayload {
20
+ }
21
+ exports.WithdrawRefundWaitingBySellerPayload = WithdrawRefundWaitingBySellerPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsMongoId)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], WithdrawRefundWaitingBySellerPayload.prototype, "PInfoId", void 0);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { ReProcessNicepayBillingRefundByRefundErrorPayload, ReProcessTosspaymentsRefundByRefundErrorPayload, ResolveNicepayBillingRefundByRefundErrorPayload, ResolveTosspaymentsRefundByRefundErrorPayload, RefundWaitingBuyerActionPayload, ProcessRefundWaitingUnavailableByAdminPayload, ProcessAdditionalPaymentVBankExpirationPayload, RetryAdditionalPaymentLinkedRefundPayload, RetryAdditionalPaymentLinkedRefundResult } from '../dto';
3
+ import { ReProcessNicepayBillingRefundByRefundErrorPayload, ReProcessTosspaymentsRefundByRefundErrorPayload, ResolveNicepayBillingRefundByRefundErrorPayload, ResolveTosspaymentsRefundByRefundErrorPayload, RefundWaitingBuyerActionPayload, WithdrawRefundWaitingBySellerPayload, ProcessRefundWaitingUnavailableByAdminPayload, ProcessAdditionalPaymentVBankExpirationPayload, RetryAdditionalPaymentLinkedRefundPayload, RetryAdditionalPaymentLinkedRefundResult } from '../dto';
4
4
  import { CheckForImmediateRefundAvailabilityV2Payload, CheckForImmediateRefundAvailabilityV2Result, CheckRefundWaitingApplicabilityPayload, CheckRefundWaitingApplicabilityResult, GetRefundErrorsForAdminPayload, GetRefundsForAdminPayload, GetRefundsForAdminResult, GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result, GetRefundNoticePayload, GetRefundNoticeResult, GetRefundNoticeV2Result } from '../dto/refund/query';
5
5
  export declare class AmqpRefundService {
6
6
  private readonly client;
@@ -21,6 +21,8 @@ export declare class AmqpRefundService {
21
21
  waitForRefundWaitingItem(payload: RefundWaitingBuyerActionPayload, param: AbstractParam): Promise<void>;
22
22
  /** 구매자의 환불 받기 선택을 기존 일반 환불 프로세스로 전환한다. */
23
23
  requestRefundFromWaiting(payload: RefundWaitingBuyerActionPayload, param: AbstractParam): Promise<void>;
24
+ /** 셀러가 실제 Refund가 없는 환불 대기 요청을 철회한다. */
25
+ withdrawRefundWaitingBySeller(payload: WithdrawRefundWaitingBySellerPayload, param: AbstractParam): Promise<void>;
24
26
  /** 관리자의 환불 대기 이관 불가 처리를 실제 환불로 전환한다. */
25
27
  processRefundWaitingUnavailableByAdmin(payload: ProcessRefundWaitingUnavailableByAdminPayload, param: AbstractParam): Promise<void>;
26
28
  /** Child 무통장 만료 취소가 끝난 뒤 Parent 환불만 기존 환불 흐름으로 전환한다. */
@@ -61,6 +61,10 @@ let AmqpRefundService = class AmqpRefundService {
61
61
  async requestRefundFromWaiting(payload, param) {
62
62
  return this.amqpManager.call('구매자 환불 대기 환불 요청', 'refund.waiting.request-refund', payload, param, { isErrorThrowing: true });
63
63
  }
64
+ /** 셀러가 실제 Refund가 없는 환불 대기 요청을 철회한다. */
65
+ async withdrawRefundWaitingBySeller(payload, param) {
66
+ return this.amqpManager.call('셀러 환불 대기 철회', 'refund.waiting.withdraw-by-seller', payload, param, { isErrorThrowing: true });
67
+ }
64
68
  /** 관리자의 환불 대기 이관 불가 처리를 실제 환불로 전환한다. */
65
69
  async processRefundWaitingUnavailableByAdmin(payload, param) {
66
70
  return this.amqpManager.call('관리자 환불 대기 이관 불가 처리', 'refund.waiting.process-unavailable-by-admin', payload, param, { isErrorThrowing: true });