@yolo-croket-dev/amqp-access 0.0.149 → 0.0.151

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.0.149",
3
+ "version": "0.0.151",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,7 +22,7 @@
22
22
  "@yolo-croket-dev/core": "^1.4.52",
23
23
  "@yolo-croket-dev/dto-v2": "^0.0.156",
24
24
  "@yolo-croket-dev/entity": "^0.1.128",
25
- "@yolo-croket-dev/entity-v2": "^0.0.65",
25
+ "@yolo-croket-dev/entity-v2": "^0.0.66",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -0,0 +1,8 @@
1
+ export declare class EditPartialRefundPricePayload {
2
+ partialRefundId: string;
3
+ partialRefundPrice: number;
4
+ }
5
+ export declare enum EditPartialRefundPriceErrorTypeEnum {
6
+ /** @description 부분환불 정보 없음 */
7
+ NOT_FOUND_PARTIAl_REFUND = "NOT_FOUND_PARTIAl_REFUND"
8
+ }
@@ -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.EditPartialRefundPriceErrorTypeEnum = exports.EditPartialRefundPricePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class EditPartialRefundPricePayload {
15
+ }
16
+ exports.EditPartialRefundPricePayload = EditPartialRefundPricePayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], EditPartialRefundPricePayload.prototype, "partialRefundId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsNumber)(),
23
+ __metadata("design:type", Number)
24
+ ], EditPartialRefundPricePayload.prototype, "partialRefundPrice", void 0);
25
+ var EditPartialRefundPriceErrorTypeEnum;
26
+ (function (EditPartialRefundPriceErrorTypeEnum) {
27
+ /** @description 부분환불 정보 없음 */
28
+ EditPartialRefundPriceErrorTypeEnum["NOT_FOUND_PARTIAl_REFUND"] = "NOT_FOUND_PARTIAl_REFUND";
29
+ })(EditPartialRefundPriceErrorTypeEnum || (exports.EditPartialRefundPriceErrorTypeEnum = EditPartialRefundPriceErrorTypeEnum = {}));
@@ -1,3 +1,4 @@
1
1
  export * from './create-partial-refund.dto';
2
2
  export * from './patch-partial-refund-cs-check.dto';
3
3
  export * from './patch-partial-refund-process.dto';
4
+ export * from './edit-partial-refund-price.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-partial-refund.dto"), exports);
18
18
  __exportStar(require("./patch-partial-refund-cs-check.dto"), exports);
19
19
  __exportStar(require("./patch-partial-refund-process.dto"), exports);
20
+ __exportStar(require("./edit-partial-refund-price.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { CreatePartialRefundPayload, PatchPartialRefundCSCheckPayload, PatchPartialRefundProcessPayload, SearchPartialRefundsForAdminPayload, SearchPartialRefundsForAdminResult } from '../dto';
3
+ import { CreatePartialRefundPayload, EditPartialRefundPricePayload, PatchPartialRefundCSCheckPayload, PatchPartialRefundProcessPayload, SearchPartialRefundsForAdminPayload, SearchPartialRefundsForAdminResult } from '../dto';
4
4
  export declare class AmqpPartialRefundService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -9,4 +9,5 @@ export declare class AmqpPartialRefundService {
9
9
  searchPartialRefunds(payload: SearchPartialRefundsForAdminPayload, param: AbstractParam): Promise<SearchPartialRefundsForAdminResult>;
10
10
  patchPartialRefundCSCheck(payload: PatchPartialRefundCSCheckPayload, param: AbstractParam): Promise<void>;
11
11
  patchPartialRefundProcess(payload: PatchPartialRefundProcessPayload, param: AbstractParam): Promise<void>;
12
+ editPartialRefundPrice(payload: EditPartialRefundPricePayload, param: AbstractParam): Promise<void>;
12
13
  }
@@ -33,6 +33,9 @@ let AmqpPartialRefundService = class AmqpPartialRefundService {
33
33
  async patchPartialRefundProcess(payload, param) {
34
34
  return this.amqpManager.call('부분환불 - 상태 변경', 'partial-refund.patch.process', payload, param, { isErrorThrowing: true });
35
35
  }
36
+ async editPartialRefundPrice(payload, param) {
37
+ return this.amqpManager.call('부분환불 - 부분환불 금액 변경', 'partial-refund.patch.partial-refund-price', payload, param, { isErrorThrowing: true });
38
+ }
36
39
  };
37
40
  exports.AmqpPartialRefundService = AmqpPartialRefundService;
38
41
  exports.AmqpPartialRefundService = AmqpPartialRefundService = __decorate([