@yolo-croket-dev/amqp-access 0.0.90-jun.37 → 0.0.90-jun.39

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,2 +1,3 @@
1
1
  export * from './bundle-p-info';
2
2
  export * from './purchasedinfos';
3
+ export * from './pay-try-log';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./bundle-p-info"), exports);
18
18
  __exportStar(require("./purchasedinfos"), exports);
19
+ __exportStar(require("./pay-try-log"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './write-normal-store-item-pay-try-log-init.dto';
2
+ export * from './write-normal-store-item-pay-try-log-after.dto';
3
+ export * from './write-cart-store-item-pay-try-log-init.service.dto';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./write-normal-store-item-pay-try-log-init.dto"), exports);
18
+ __exportStar(require("./write-normal-store-item-pay-try-log-after.dto"), exports);
19
+ __exportStar(require("./write-cart-store-item-pay-try-log-init.service.dto"), exports);
@@ -4,7 +4,6 @@ export declare enum WriteCartStoreItemPayTryLogCartTypeEnum {
4
4
  }
5
5
  export declare class WriteCartStoreItemPayTryLogInitPayload {
6
6
  paidPrice: number;
7
- buyerId: string;
8
7
  cartType: WriteCartStoreItemPayTryLogCartTypeEnum;
9
8
  cartIds: string[];
10
9
  }
@@ -22,10 +22,6 @@ __decorate([
22
22
  (0, class_validator_1.IsNumber)(),
23
23
  __metadata("design:type", Number)
24
24
  ], WriteCartStoreItemPayTryLogInitPayload.prototype, "paidPrice", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], WriteCartStoreItemPayTryLogInitPayload.prototype, "buyerId", void 0);
29
25
  __decorate([
30
26
  (0, class_validator_1.IsEnum)(WriteCartStoreItemPayTryLogCartTypeEnum),
31
27
  __metadata("design:type", String)
@@ -10,7 +10,6 @@ export declare class WriteNormalStoreItemPayTryLogAfterPayload {
10
10
  paidPrice: number;
11
11
  paidPrice_exceptPaymentFee: number;
12
12
  DType: WriteNormalStoreItemPayTryLogAfterDTypeEnum;
13
- buyerId: string;
14
13
  usedCredit?: number;
15
14
  requirement?: string;
16
15
  bundlePInfoId?: string;
@@ -40,10 +40,6 @@ __decorate([
40
40
  (0, class_validator_1.IsEnum)(WriteNormalStoreItemPayTryLogAfterDTypeEnum),
41
41
  __metadata("design:type", String)
42
42
  ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "DType", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsMongoId)(),
45
- __metadata("design:type", String)
46
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "buyerId", void 0);
47
43
  __decorate([
48
44
  (0, class_validator_1.IsNumber)(),
49
45
  (0, class_validator_1.IsOptional)(),
@@ -12,7 +12,6 @@ export declare class WriteNormalStoreItemPayTryLogPOptionInfo {
12
12
  }
13
13
  export declare class WriteNormalStoreItemPayTryLogInitPayload {
14
14
  paidPrice: number;
15
- buyerId: string;
16
15
  itemId: string;
17
16
  DType: WriteNormalStoreItemPayTryLogDTypeEnum;
18
17
  pOptionInfo: WriteNormalStoreItemPayTryLogPOptionInfo;
@@ -46,10 +46,6 @@ __decorate([
46
46
  (0, class_validator_1.IsNumber)(),
47
47
  __metadata("design:type", Number)
48
48
  ], WriteNormalStoreItemPayTryLogInitPayload.prototype, "paidPrice", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsMongoId)(),
51
- __metadata("design:type", String)
52
- ], WriteNormalStoreItemPayTryLogInitPayload.prototype, "buyerId", void 0);
53
49
  __decorate([
54
50
  (0, class_validator_1.IsMongoId)(),
55
51
  __metadata("design:type", String)
@@ -1,3 +1 @@
1
- export * from './write-normal-store-item-pay-try-log-init.dto';
2
- export * from './write-normal-store-item-pay-try-log-after.dto';
3
- export * from './write-cart-store-item-pay-try-log-init.service.dto';
1
+ export * from './command';
@@ -14,6 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./write-normal-store-item-pay-try-log-init.dto"), exports);
18
- __exportStar(require("./write-normal-store-item-pay-try-log-after.dto"), exports);
19
- __exportStar(require("./write-cart-store-item-pay-try-log-init.service.dto"), exports);
17
+ __exportStar(require("./command"), exports);
@@ -1,10 +1,14 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { GetPayTryLogsForEsPayload, GetPayTryLogsForEsResult, GetPayTryLogsForEsByIdsPayload, GetPayTryLogsForEsByIdsResult } from '@yolo-croket-dev/dto-v2/order-server/pay-try-log';
4
+ import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult } from '../dto/pay-try-log';
4
5
  export declare class AmqpPayTryLogService {
5
6
  private readonly client;
6
7
  private readonly amqpManager;
7
8
  constructor(client: ClientProxy);
8
9
  getPayTryLogsForEs(payload: GetPayTryLogsForEsPayload, param: AbstractParam): Promise<GetPayTryLogsForEsResult>;
9
10
  getPayTryLogsForEsByIds(payload: GetPayTryLogsForEsByIdsPayload, param: AbstractParam): Promise<GetPayTryLogsForEsByIdsResult>;
11
+ writeNormalStoreItemPayTryLogInit(payload: WriteNormalStoreItemPayTryLogInitPayload, param: AbstractParam): Promise<WriteNormalStoreItemPayTryLogInitResult>;
12
+ writeNormalStoreItemPayTryLogAfter(payload: WriteNormalStoreItemPayTryLogAfterPayload, param: AbstractParam): Promise<void>;
13
+ writeCartStoreItemPayTryLogInit(payload: WriteCartStoreItemPayTryLogInitPayload, param: AbstractParam): Promise<WriteCartStoreItemPayTryLogInitResult>;
10
14
  }
@@ -29,6 +29,18 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
29
29
  // eslint-disable-next-line max-len
30
30
  return this.amqpManager.call('es를 위한 결제 시도 로그 리스트 조회 by ids', 'pay-try-log.search.for-es-by-ids', payload, param, { isErrorThrowing: true });
31
31
  }
32
+ async writeNormalStoreItemPayTryLogInit(payload, param) {
33
+ // eslint-disable-next-line max-len
34
+ return this.amqpManager.call('일반 상품 결제 시도 로그 초기화', 'pay-try-log.create.normal-store-item-pay-init', payload, param, { isErrorThrowing: true });
35
+ }
36
+ async writeNormalStoreItemPayTryLogAfter(payload, param) {
37
+ // eslint-disable-next-line max-len
38
+ return this.amqpManager.call('일반 상품 결제 시도 로그 후 작성', 'pay-try-log.create.normal-store-item-pay-after', payload, param, { isErrorThrowing: true });
39
+ }
40
+ async writeCartStoreItemPayTryLogInit(payload, param) {
41
+ // eslint-disable-next-line max-len
42
+ return this.amqpManager.call('장바구니 상품 결제 시도 로그 초기화', 'pay-try-log.create.cart-store-item-pay-init', payload, param, { isErrorThrowing: true });
43
+ }
32
44
  };
33
45
  AmqpPayTryLogService = __decorate([
34
46
  (0, common_1.Injectable)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.90-jun.37",
3
+ "version": "0.0.90-jun.39",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",