@yolo-croket-dev/amqp-access 0.0.174-jun.2 → 0.0.174-jun.4
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/services/amqp.purchased-info.service.d.ts +2 -1
- package/order-server/services/amqp.purchased-info.service.js +3 -0
- package/package.json +1 -1
- package/payment-service/dto/ad-center-settle/command/create-ad-center-coupon-settles.dto.d.ts +15 -0
- package/payment-service/dto/ad-center-settle/command/create-ad-center-coupon-settles.dto.js +54 -0
- package/payment-service/dto/ad-center-settle/command/index.d.ts +1 -0
- package/payment-service/dto/ad-center-settle/command/index.js +17 -0
- package/payment-service/dto/ad-center-settle/index.d.ts +1 -0
- package/payment-service/dto/ad-center-settle/index.js +17 -0
- package/payment-service/services/amqp.ad-center-settle.service.d.ts +8 -0
- package/payment-service/services/amqp.ad-center-settle.service.js +34 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult } from '../dto/purchasedinfos';
|
|
3
|
+
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload } from '../dto/purchasedinfos';
|
|
4
4
|
export declare class AmqpPurchasedInfoService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -15,4 +15,5 @@ export declare class AmqpPurchasedInfoService {
|
|
|
15
15
|
getPInfosForManageBuyerByAtlas(payload: GetPInfosForManageBuyerByAtlasPayload, param: AbstractParam): Promise<GetPInfosForManageBuyerByAtlasResult>;
|
|
16
16
|
getFacetPInfosForManageBuyerByAtlas(payload: GetFacetPInfosForManageBuyerByAtlasPayload, param: AbstractParam): Promise<GetFacetPInfosForManageBuyerByAtlasResult>;
|
|
17
17
|
reloadPInfosForManageBuyer(payload: ReloadPInfosForManageBuyerPayload, param: AbstractParam): Promise<ReloadPInfosForManageBuyerResult>;
|
|
18
|
+
updateAdCenterCouponInfo(payload: UpdateAdCenterCouponInfoPayload, param: AbstractParam): Promise<void>;
|
|
18
19
|
}
|
|
@@ -51,6 +51,9 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
|
51
51
|
async reloadPInfosForManageBuyer(payload, param) {
|
|
52
52
|
return this.amqpManager.call('셀러의 구매자 관리 새로고침 api', 'purchased-info.reload.p-infos-for-manage-buyer', payload, param, { isErrorThrowing: true });
|
|
53
53
|
}
|
|
54
|
+
async updateAdCenterCouponInfo(payload, param) {
|
|
55
|
+
return this.amqpManager.call('광고센터쿠폰 정보 업데이트', 'purchased-info.update.ad-center-coupon-info', payload, param, { isErrorThrowing: true });
|
|
56
|
+
}
|
|
54
57
|
};
|
|
55
58
|
AmqpPurchasedInfoService = __decorate([
|
|
56
59
|
(0, common_1.Injectable)(),
|
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class CouponInfo {
|
|
2
|
+
/** 쿠폰 코드 */
|
|
3
|
+
couponCode: string;
|
|
4
|
+
/** 할인된 금액 */
|
|
5
|
+
discountedAmount: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class AdCenterCouponSettle {
|
|
8
|
+
expectedSettleDateString: string;
|
|
9
|
+
PInfoId: string;
|
|
10
|
+
sellerId: string;
|
|
11
|
+
couponInfo: CouponInfo;
|
|
12
|
+
}
|
|
13
|
+
export declare class CreateAdCenterCouponSettlesPayload {
|
|
14
|
+
adCenterCouponSettles: AdCenterCouponSettle[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.CreateAdCenterCouponSettlesPayload = exports.AdCenterCouponSettle = exports.CouponInfo = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class CouponInfo {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CouponInfo.prototype, "couponCode", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CouponInfo.prototype, "discountedAmount", void 0);
|
|
25
|
+
exports.CouponInfo = CouponInfo;
|
|
26
|
+
class AdCenterCouponSettle {
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], AdCenterCouponSettle.prototype, "expectedSettleDateString", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsMongoId)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], AdCenterCouponSettle.prototype, "PInfoId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsMongoId)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], AdCenterCouponSettle.prototype, "sellerId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.ValidateNested)(),
|
|
42
|
+
(0, class_transformer_1.Type)(() => CouponInfo),
|
|
43
|
+
__metadata("design:type", CouponInfo)
|
|
44
|
+
], AdCenterCouponSettle.prototype, "couponInfo", void 0);
|
|
45
|
+
exports.AdCenterCouponSettle = AdCenterCouponSettle;
|
|
46
|
+
class CreateAdCenterCouponSettlesPayload {
|
|
47
|
+
}
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsArray)(),
|
|
50
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
51
|
+
(0, class_transformer_1.Type)(() => AdCenterCouponSettle),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], CreateAdCenterCouponSettlesPayload.prototype, "adCenterCouponSettles", void 0);
|
|
54
|
+
exports.CreateAdCenterCouponSettlesPayload = CreateAdCenterCouponSettlesPayload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-ad-center-coupon-settles.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("./create-ad-center-coupon-settles.dto"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command';
|
|
@@ -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("./command"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
export declare class AmqpAdCenterSettleService {
|
|
4
|
+
private readonly client;
|
|
5
|
+
private readonly amqpManager;
|
|
6
|
+
constructor(client: ClientProxy);
|
|
7
|
+
sendSlackRefundsGroupByItem(payload: void, param: AbstractParam): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.AmqpAdCenterSettleService = 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 AmqpAdCenterSettleService = class AmqpAdCenterSettleService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async sendSlackRefundsGroupByItem(payload, param) {
|
|
25
|
+
// eslint-disable-next-line max-len
|
|
26
|
+
return this.amqpManager.call('슬랙 알림 - 환불 완료 또는 진행중인 건 15 이상 알림', 'refund.send-slack.refunds-group-by-item', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
AmqpAdCenterSettleService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('PAYMENT_SERVICE_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpAdCenterSettleService);
|
|
34
|
+
exports.AmqpAdCenterSettleService = AmqpAdCenterSettleService;
|