@yolo-croket-dev/amqp-access 0.0.79-jun.0 → 0.0.79-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.
- package/order-server/dto/purchasedinfos/query/atlas/get-settle-amount-info-by-atlas.dto.d.ts +12 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-settle-amount-info-by-atlas.dto.js +28 -0
- package/order-server/dto/purchasedinfos/query/atlas/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/query/atlas/index.js +17 -0
- package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/query/index.js +1 -0
- package/order-server/services/amqp.purchased-info.service.d.ts +9 -0
- package/order-server/services/amqp.purchased-info.service.js +33 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GetSettleAmountInfoByAtlasPayload {
|
|
2
|
+
settleSDate: Date;
|
|
3
|
+
settleEDate?: Date;
|
|
4
|
+
}
|
|
5
|
+
export declare class GetSettleAmountInfoByAtlasResult {
|
|
6
|
+
/** 정산받은 금액 */
|
|
7
|
+
receivedMoney: number;
|
|
8
|
+
/** 전체 결제에 대한 예상 정산금 */
|
|
9
|
+
willReceiveMoney: number;
|
|
10
|
+
/** 결제에 완료된 건에 대한 정산금 */
|
|
11
|
+
mustReceiveMoney: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GetSettleAmountInfoByAtlasResult = exports.GetSettleAmountInfoByAtlasPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetSettleAmountInfoByAtlasPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetSettleAmountInfoByAtlasPayload = GetSettleAmountInfoByAtlasPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], GetSettleAmountInfoByAtlasPayload.prototype, "settleSDate", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], GetSettleAmountInfoByAtlasPayload.prototype, "settleEDate", void 0);
|
|
26
|
+
class GetSettleAmountInfoByAtlasResult {
|
|
27
|
+
}
|
|
28
|
+
exports.GetSettleAmountInfoByAtlasResult = GetSettleAmountInfoByAtlasResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-settle-amount-info-by-atlas.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./get-settle-amount-info-by-atlas.dto"), exports);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./search-seller-transaction-history-by-process.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-p-infos-for-manage-buyer.dto"), exports);
|
|
19
|
+
__exportStar(require("./atlas"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetSettleAmountInfoByAtlasPayload, GetSettleAmountInfoByAtlasResult } from '../dto/purchasedinfos';
|
|
4
|
+
export declare class AmqpPurchasedInfoService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
getSettleAmountInfoByAtlas(payload: GetSettleAmountInfoByAtlasPayload, param: AbstractParam): Promise<GetSettleAmountInfoByAtlasResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AmqpPurchasedInfoService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
+
let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async getSettleAmountInfoByAtlas(payload, param) {
|
|
25
|
+
return this.amqpManager.call('es를 위한 결제 시도 로그 리스트 조회', 'purchased-info.get.settle-amount-info-by-atlas', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
|
|
29
|
+
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpPurchasedInfoService);
|