@yolo-croket-dev/amqp-access 0.0.80 → 0.0.81-jun.1

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.
@@ -0,0 +1,6 @@
1
+ export declare class GetPInfoAllSettleAmountByAtlasPayload {
2
+ }
3
+ export declare class GetPInfoAllSettleAmountByAtlasResult {
4
+ /** 정산받은 금액 */
5
+ receivedMoney: number;
6
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPInfoAllSettleAmountByAtlasResult = exports.GetPInfoAllSettleAmountByAtlasPayload = void 0;
4
+ class GetPInfoAllSettleAmountByAtlasPayload {
5
+ }
6
+ exports.GetPInfoAllSettleAmountByAtlasPayload = GetPInfoAllSettleAmountByAtlasPayload;
7
+ class GetPInfoAllSettleAmountByAtlasResult {
8
+ }
9
+ exports.GetPInfoAllSettleAmountByAtlasResult = GetPInfoAllSettleAmountByAtlasResult;
@@ -0,0 +1,36 @@
1
+ export declare class GetPInfoSettleAmountLogsByAtlasPayload {
2
+ settleSDate: Date;
3
+ settleEDate?: Date;
4
+ searchAfter?: string;
5
+ searchBefore?: string;
6
+ limit: number;
7
+ }
8
+ export interface SettleLog {
9
+ itemName: string;
10
+ optionName: string;
11
+ receivedDate?: Date;
12
+ buyerName: string;
13
+ proceeds: number;
14
+ pOptionInfo: {
15
+ pOptionType: string;
16
+ pOptionList: {
17
+ pNums: number;
18
+ optionNameList: string[];
19
+ }[];
20
+ };
21
+ totalPrice: number;
22
+ originPrice: number;
23
+ totalShippingFee: number;
24
+ serviceFee: number;
25
+ serviceFeePercent: number;
26
+ VATInfo?: {
27
+ VAT?: number;
28
+ VATPercent?: number;
29
+ isZeroRateVat?: boolean;
30
+ };
31
+ }
32
+ export declare class GetPInfoSettleAmountLogsByAtlasResult {
33
+ settleLogs: SettleLog[];
34
+ searchAfter?: string;
35
+ searchBefore?: string;
36
+ }
@@ -0,0 +1,42 @@
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.GetPInfoSettleAmountLogsByAtlasResult = exports.GetPInfoSettleAmountLogsByAtlasPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetPInfoSettleAmountLogsByAtlasPayload {
15
+ }
16
+ exports.GetPInfoSettleAmountLogsByAtlasPayload = GetPInfoSettleAmountLogsByAtlasPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsDateString)(),
19
+ __metadata("design:type", Date)
20
+ ], GetPInfoSettleAmountLogsByAtlasPayload.prototype, "settleSDate", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsDateString)(),
23
+ (0, class_validator_1.IsOptional)(),
24
+ __metadata("design:type", Date)
25
+ ], GetPInfoSettleAmountLogsByAtlasPayload.prototype, "settleEDate", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_validator_1.IsOptional)(),
29
+ __metadata("design:type", String)
30
+ ], GetPInfoSettleAmountLogsByAtlasPayload.prototype, "searchAfter", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsOptional)(),
34
+ __metadata("design:type", String)
35
+ ], GetPInfoSettleAmountLogsByAtlasPayload.prototype, "searchBefore", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsNumber)(),
38
+ __metadata("design:type", Number)
39
+ ], GetPInfoSettleAmountLogsByAtlasPayload.prototype, "limit", void 0);
40
+ class GetPInfoSettleAmountLogsByAtlasResult {
41
+ }
42
+ exports.GetPInfoSettleAmountLogsByAtlasResult = GetPInfoSettleAmountLogsByAtlasResult;
@@ -1 +1,3 @@
1
1
  export * from './get-p-info-settle-amount-info-by-atlas.dto';
2
+ export * from './get-p-info-settle-amount-logs-by-atlas.dto';
3
+ export * from './get-p-info-all-settle-amount-by-atlas.dto';
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-p-info-settle-amount-info-by-atlas.dto"), exports);
18
+ __exportStar(require("./get-p-info-settle-amount-logs-by-atlas.dto"), exports);
19
+ __exportStar(require("./get-p-info-all-settle-amount-by-atlas.dto"), exports);
@@ -1,9 +1,11 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult } from '../dto/purchasedinfos';
3
+ import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoSettleAmountLogsByAtlasPayload, GetPInfoSettleAmountLogsByAtlasResult } from '../dto/purchasedinfos';
4
4
  export declare class AmqpPurchasedInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  getPInfoSettleAmountInfoByAtlas(payload: GetPInfoSettleAmountInfoByAtlasPayload, param: AbstractParam): Promise<GetPInfoSettleAmountInfoByAtlasResult>;
9
+ getPInfoAllSettleAmountByAtlas(payload: GetPInfoAllSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoAllSettleAmountByAtlasResult>;
10
+ getPInfoSettleAmountLogsByAtlas(payload: GetPInfoSettleAmountLogsByAtlasPayload, param: AbstractParam): Promise<GetPInfoSettleAmountLogsByAtlasResult>;
9
11
  }
@@ -22,7 +22,13 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
22
22
  this.amqpManager = new functions_1.AmqpManagement(this.client);
23
23
  }
24
24
  async getPInfoSettleAmountInfoByAtlas(payload, param) {
25
- return this.amqpManager.call('es를 위한 결제 시도 로그 리스트 조회', 'purchased-info.get.settle-amount-info-by-atlas', payload, param, { isErrorThrowing: true });
25
+ return this.amqpManager.call('atlas 검색 - 특정 기간 정산금 정보 조회', 'purchased-info.get.settle-amount-info-by-atlas', payload, param, { isErrorThrowing: true });
26
+ }
27
+ async getPInfoAllSettleAmountByAtlas(payload, param) {
28
+ return this.amqpManager.call('atlas 검색 - 전체 정산된 금액 조회', 'purchased-info.get.all-settle-amount-by-atlas', payload, param, { isErrorThrowing: true });
29
+ }
30
+ async getPInfoSettleAmountLogsByAtlas(payload, param) {
31
+ return this.amqpManager.call('atlas 검색 - 스토어 정산 로그 조회', 'purchased-info.get.settle-amount-logs-by-atlas', payload, param, { isErrorThrowing: true });
26
32
  }
27
33
  };
28
34
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.80",
3
+ "version": "0.0.81-jun.1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,6 @@
1
+ export declare class GetAskAllSettleAmountByAtlasPayload {
2
+ }
3
+ export declare class GetAskAllSettleAmountByAtlasResult {
4
+ /** 정산받은 금액 */
5
+ receivedMoney: number;
6
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAskAllSettleAmountByAtlasResult = exports.GetAskAllSettleAmountByAtlasPayload = void 0;
4
+ class GetAskAllSettleAmountByAtlasPayload {
5
+ }
6
+ exports.GetAskAllSettleAmountByAtlasPayload = GetAskAllSettleAmountByAtlasPayload;
7
+ class GetAskAllSettleAmountByAtlasResult {
8
+ }
9
+ exports.GetAskAllSettleAmountByAtlasResult = GetAskAllSettleAmountByAtlasResult;
@@ -0,0 +1,14 @@
1
+ import { SettleLog } from '../../../../../order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-logs-by-atlas.dto';
2
+ export { SettleLog };
3
+ export declare class GetAskSettleAmountLogsByAtlasPayload {
4
+ settleSDate: Date;
5
+ settleEDate?: Date;
6
+ searchAfter?: string;
7
+ searchBefore?: string;
8
+ limit: number;
9
+ }
10
+ export declare class GetAskSettleAmountLogsByAtlasResult {
11
+ settleLogs: SettleLog[];
12
+ searchAfter?: string;
13
+ searchBefore?: string;
14
+ }
@@ -0,0 +1,42 @@
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.GetAskSettleAmountLogsByAtlasResult = exports.GetAskSettleAmountLogsByAtlasPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetAskSettleAmountLogsByAtlasPayload {
15
+ }
16
+ exports.GetAskSettleAmountLogsByAtlasPayload = GetAskSettleAmountLogsByAtlasPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsDateString)(),
19
+ __metadata("design:type", Date)
20
+ ], GetAskSettleAmountLogsByAtlasPayload.prototype, "settleSDate", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsDateString)(),
23
+ (0, class_validator_1.IsOptional)(),
24
+ __metadata("design:type", Date)
25
+ ], GetAskSettleAmountLogsByAtlasPayload.prototype, "settleEDate", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_validator_1.IsOptional)(),
29
+ __metadata("design:type", String)
30
+ ], GetAskSettleAmountLogsByAtlasPayload.prototype, "searchAfter", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsOptional)(),
34
+ __metadata("design:type", String)
35
+ ], GetAskSettleAmountLogsByAtlasPayload.prototype, "searchBefore", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsNumber)(),
38
+ __metadata("design:type", Number)
39
+ ], GetAskSettleAmountLogsByAtlasPayload.prototype, "limit", void 0);
40
+ class GetAskSettleAmountLogsByAtlasResult {
41
+ }
42
+ exports.GetAskSettleAmountLogsByAtlasResult = GetAskSettleAmountLogsByAtlasResult;
@@ -1,2 +1,4 @@
1
1
  export * from './get-ask-ids-by-atlas-search.dto';
2
2
  export * from './get-ask-settle-amount-info-by-atlas.dto';
3
+ export * from './get-ask-all-settle-amount-by-atlas.dto';
4
+ export * from './get-ask-settle-amount-logs-by-atlas.dto';
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-ask-ids-by-atlas-search.dto"), exports);
18
18
  __exportStar(require("./get-ask-settle-amount-info-by-atlas.dto"), exports);
19
+ __exportStar(require("./get-ask-all-settle-amount-by-atlas.dto"), exports);
20
+ __exportStar(require("./get-ask-settle-amount-logs-by-atlas.dto"), exports);
@@ -1,10 +1,12 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetAskIdsByAtlasSearchPayload, GetAskIdsByAtlasSearchResult, GetAskSettleAmountInfoByAtlasPayload, GetAskSettleAmountInfoByAtlasResult } from '../../dto/ask';
3
+ import { GetAskIdsByAtlasSearchPayload, GetAskIdsByAtlasSearchResult, GetAskSettleAmountInfoByAtlasPayload, GetAskSettleAmountInfoByAtlasResult, GetAskAllSettleAmountByAtlasPayload, GetAskAllSettleAmountByAtlasResult, GetAskSettleAmountLogsByAtlasPayload, GetAskSettleAmountLogsByAtlasResult } from '../../dto/ask';
4
4
  export declare class AmqpAskService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  getAskIdsByAtlasSearch(payload: GetAskIdsByAtlasSearchPayload, param: AbstractParam): Promise<GetAskIdsByAtlasSearchResult>;
9
9
  getAskSettleAmountInfoByAtlas(payload: GetAskSettleAmountInfoByAtlasPayload, param: AbstractParam): Promise<GetAskSettleAmountInfoByAtlasResult>;
10
+ getAskAllSettleAmountByAtlas(payload: GetAskAllSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetAskAllSettleAmountByAtlasResult>;
11
+ getAskSettleAmountLogsByAtlas(payload: GetAskSettleAmountLogsByAtlasPayload, param: AbstractParam): Promise<GetAskSettleAmountLogsByAtlasResult>;
10
12
  }
@@ -27,6 +27,12 @@ let AmqpAskService = class AmqpAskService {
27
27
  async getAskSettleAmountInfoByAtlas(payload, param) {
28
28
  return this.amqpManager.call('Atlas 정산금 정보 조회', 'ask.get.settle-amount-info-by-atlas', payload, param, { isErrorThrowing: true });
29
29
  }
30
+ async getAskAllSettleAmountByAtlas(payload, param) {
31
+ return this.amqpManager.call('Atlas - 전체 정산된 금액 조회', 'ask.get.all-settle-amount-by-atlas', payload, param, { isErrorThrowing: true });
32
+ }
33
+ async getAskSettleAmountLogsByAtlas(payload, param) {
34
+ return this.amqpManager.call('atlas 검색 - 요청 정산 로그 조회', 'ask.get.settle-amount-logs-by-atlas', payload, param, { isErrorThrowing: true });
35
+ }
30
36
  };
31
37
  exports.AmqpAskService = AmqpAskService;
32
38
  exports.AmqpAskService = AmqpAskService = __decorate([