@yolo-croket-dev/amqp-access 0.0.176-sj-2 → 0.0.176
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/coupon-server/dto/coupon-template/query/get-seleted-coupon-templates-by-codes.dto.d.ts +7 -0
- package/coupon-server/dto/coupon-template/query/get-seleted-coupon-templates-by-codes.dto.js +33 -0
- package/coupon-server/dto/coupon-template/query/index.d.ts +1 -0
- package/coupon-server/dto/coupon-template/query/index.js +1 -0
- package/coupon-server/services/amqp.coupon-template.service.d.ts +2 -1
- package/coupon-server/services/amqp.coupon-template.service.js +3 -0
- package/order-server/dto/purchasedinfos/command/cancel-done-ad-center-coupon-infos.dto.d.ts +3 -0
- package/order-server/dto/purchasedinfos/command/cancel-done-ad-center-coupon-infos.dto.js +21 -0
- package/order-server/dto/purchasedinfos/command/index.d.ts +3 -0
- package/order-server/dto/purchasedinfos/command/index.js +19 -0
- package/order-server/dto/purchasedinfos/command/update-ad-center-coupon-info.dto.d.ts +3 -0
- package/order-server/dto/purchasedinfos/command/update-ad-center-coupon-info.dto.js +20 -0
- package/order-server/dto/purchasedinfos/command/update-done-ad-center-coupon-infos.dto.d.ts +8 -0
- package/order-server/dto/purchasedinfos/command/update-done-ad-center-coupon-infos.dto.js +33 -0
- package/order-server/dto/purchasedinfos/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/index.js +1 -0
- package/order-server/services/amqp.purchased-info.service.d.ts +4 -1
- package/order-server/services/amqp.purchased-info.service.js +9 -0
- package/package.json +1 -1
- package/payment-service/amqp.payment-service.module.js +2 -0
- 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 +9 -0
- package/payment-service/services/amqp.ad-center-settle.service.js +34 -0
- package/payment-service/services/index.d.ts +1 -0
- package/payment-service/services/index.js +1 -0
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetSeletedCouponTemplatesByCodesPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetSeletedCouponTemplatesByCodesPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetSeletedCouponTemplatesByCodesPayload = GetSeletedCouponTemplatesByCodesPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
19
|
+
(0, class_validator_1.IsArray)(),
|
|
20
|
+
__metadata("design:type", Array)
|
|
21
|
+
], GetSeletedCouponTemplatesByCodesPayload.prototype, "codes", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
24
|
+
(0, class_validator_1.IsArray)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], GetSeletedCouponTemplatesByCodesPayload.prototype, "includeFields", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
30
|
+
(0, class_validator_1.IsArray)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], GetSeletedCouponTemplatesByCodesPayload.prototype, "excludeFields", void 0);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./item-max-discount-coupon"), exports);
|
|
18
|
+
__exportStar(require("./get-seleted-coupon-templates-by-codes.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult } from '../dto/coupon-template';
|
|
3
|
+
import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload } from '../dto/coupon-template';
|
|
4
4
|
export declare class AmqpCouponTemplateService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -10,4 +10,5 @@ export declare class AmqpCouponTemplateService {
|
|
|
10
10
|
pauseCouponTemplate(payload: PauseCouponTemplatePayload, param: AbstractParam): Promise<void>;
|
|
11
11
|
expiredCouponTemplate(payload: void, param: AbstractParam): Promise<void>;
|
|
12
12
|
getCouponTemplatesForUseableStoreMDTheme(payload: GetCouponTemplatesForUseableStoreMDThemePayload, param: AbstractParam): Promise<GetCouponTemplatesForUseableStoreMDThemeResult>;
|
|
13
|
+
getSeletedCouponTemplatesByCodes(payload: GetSeletedCouponTemplatesByCodesPayload, param: AbstractParam): Promise<any>;
|
|
13
14
|
}
|
|
@@ -36,6 +36,9 @@ let AmqpCouponTemplateService = class AmqpCouponTemplateService {
|
|
|
36
36
|
async getCouponTemplatesForUseableStoreMDTheme(payload, param) {
|
|
37
37
|
return this.amqpManager.call('특정 테마에서 사용가능한 쿠폰 목록 조회', 'coupon-template.get.for-useable-store-md-theme', payload, param, { isErrorThrowing: true });
|
|
38
38
|
}
|
|
39
|
+
async getSeletedCouponTemplatesByCodes(payload, param) {
|
|
40
|
+
return this.amqpManager.call('코드로 쿠폰 템플릿 조회', 'coupon-template.get.seleted-coupon-templates-by-codes', payload, param, { isErrorThrowing: true });
|
|
41
|
+
}
|
|
39
42
|
};
|
|
40
43
|
exports.AmqpCouponTemplateService = AmqpCouponTemplateService;
|
|
41
44
|
exports.AmqpCouponTemplateService = AmqpCouponTemplateService = __decorate([
|
|
@@ -0,0 +1,21 @@
|
|
|
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.CancelDoneAdCenterCouponInfosPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CancelDoneAdCenterCouponInfosPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.CancelDoneAdCenterCouponInfosPayload = CancelDoneAdCenterCouponInfosPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
20
|
+
__metadata("design:type", Array)
|
|
21
|
+
], CancelDoneAdCenterCouponInfosPayload.prototype, "pInfoIds", void 0);
|
|
@@ -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("./update-ad-center-coupon-info.dto"), exports);
|
|
18
|
+
__exportStar(require("./update-done-ad-center-coupon-infos.dto"), exports);
|
|
19
|
+
__exportStar(require("./cancel-done-ad-center-coupon-infos.dto"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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.UpdateAdCenterCouponInfoPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdateAdCenterCouponInfoPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpdateAdCenterCouponInfoPayload = UpdateAdCenterCouponInfoPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpdateAdCenterCouponInfoPayload.prototype, "pInfoId", void 0);
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateDoneAdCenterCouponInfosPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class PInfoInfo {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], PInfoInfo.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], PInfoInfo.prototype, "adCenterCouponSettlePrice", void 0);
|
|
25
|
+
class UpdateDoneAdCenterCouponInfosPayload {
|
|
26
|
+
}
|
|
27
|
+
exports.UpdateDoneAdCenterCouponInfosPayload = UpdateDoneAdCenterCouponInfosPayload;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
30
|
+
(0, class_validator_1.IsArray)(),
|
|
31
|
+
(0, class_transformer_1.Type)(() => PInfoInfo),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], UpdateDoneAdCenterCouponInfosPayload.prototype, "pInfoInfos", void 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, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload } from '../dto/purchasedinfos';
|
|
4
4
|
export declare class AmqpPurchasedInfoService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -15,4 +15,7 @@ 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>;
|
|
19
|
+
updateDoneAdCenterCouponInfos(payload: UpdateDoneAdCenterCouponInfosPayload, param: AbstractParam): Promise<void>;
|
|
20
|
+
cancelDoneAdCenterCouponInfos(payload: CancelDoneAdCenterCouponInfosPayload, param: AbstractParam): Promise<void>;
|
|
18
21
|
}
|
|
@@ -51,6 +51,15 @@ 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
|
+
}
|
|
57
|
+
async updateDoneAdCenterCouponInfos(payload, param) {
|
|
58
|
+
return this.amqpManager.call('광고센터쿠폰 완료 처리', 'purchased-info.update.done-ad-center-coupon-infos', payload, param, { isErrorThrowing: true });
|
|
59
|
+
}
|
|
60
|
+
async cancelDoneAdCenterCouponInfos(payload, param) {
|
|
61
|
+
return this.amqpManager.call('광고센터쿠폰 완료 취소 처리', 'purchased-info.cancel.done-ad-center-coupon-infos', payload, param, { isErrorThrowing: true });
|
|
62
|
+
}
|
|
54
63
|
};
|
|
55
64
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
|
|
56
65
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
|
package/package.json
CHANGED
|
@@ -21,12 +21,14 @@ exports.AmqpPaymentServiceModule = AmqpPaymentServiceModule = __decorate([
|
|
|
21
21
|
amqp_payment_service_service_1.AmqpPaymentService,
|
|
22
22
|
services_1.AmqpRefundService,
|
|
23
23
|
services_1.AmqpPartialRefundService,
|
|
24
|
+
services_1.AmqpAdCenterSettleService,
|
|
24
25
|
],
|
|
25
26
|
exports: [
|
|
26
27
|
amqp_payment_service_provider_1.PaymentServiceProvider,
|
|
27
28
|
amqp_payment_service_service_1.AmqpPaymentService,
|
|
28
29
|
services_1.AmqpRefundService,
|
|
29
30
|
services_1.AmqpPartialRefundService,
|
|
31
|
+
services_1.AmqpAdCenterSettleService,
|
|
30
32
|
],
|
|
31
33
|
})
|
|
32
34
|
], AmqpPaymentServiceModule);
|
|
@@ -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
|
+
exports.CouponInfo = CouponInfo;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CouponInfo.prototype, "couponCode", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], CouponInfo.prototype, "discountedAmount", void 0);
|
|
26
|
+
class AdCenterCouponSettle {
|
|
27
|
+
}
|
|
28
|
+
exports.AdCenterCouponSettle = AdCenterCouponSettle;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AdCenterCouponSettle.prototype, "expectedSettleDateString", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsMongoId)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AdCenterCouponSettle.prototype, "PInfoId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsMongoId)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AdCenterCouponSettle.prototype, "sellerId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.ValidateNested)(),
|
|
43
|
+
(0, class_transformer_1.Type)(() => CouponInfo),
|
|
44
|
+
__metadata("design:type", CouponInfo)
|
|
45
|
+
], AdCenterCouponSettle.prototype, "couponInfo", void 0);
|
|
46
|
+
class CreateAdCenterCouponSettlesPayload {
|
|
47
|
+
}
|
|
48
|
+
exports.CreateAdCenterCouponSettlesPayload = CreateAdCenterCouponSettlesPayload;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsArray)(),
|
|
51
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
52
|
+
(0, class_transformer_1.Type)(() => AdCenterCouponSettle),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], CreateAdCenterCouponSettlesPayload.prototype, "adCenterCouponSettles", void 0);
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateAdCenterCouponSettlesPayload } from '../dto/ad-center-settle';
|
|
4
|
+
export declare class AmqpAdCenterSettleService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
createAdCenterCouponSettles(payload: CreateAdCenterCouponSettlesPayload, param: AbstractParam): Promise<void>;
|
|
9
|
+
}
|
|
@@ -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 createAdCenterCouponSettles(payload, param) {
|
|
25
|
+
// eslint-disable-next-line max-len
|
|
26
|
+
return this.amqpManager.call('광고센터쿠폰 정산 데이터 생성', 'ad-center-settle.create.ad-center-coupon', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.AmqpAdCenterSettleService = AmqpAdCenterSettleService;
|
|
30
|
+
exports.AmqpAdCenterSettleService = AmqpAdCenterSettleService = __decorate([
|
|
31
|
+
(0, common_1.Injectable)(),
|
|
32
|
+
__param(0, (0, common_1.Inject)('PAYMENT_SERVICE_PROVIDER')),
|
|
33
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
34
|
+
], AmqpAdCenterSettleService);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./amqp.refund.service"), exports);
|
|
18
18
|
__exportStar(require("./amqp.partial-refund.service"), exports);
|
|
19
|
+
__exportStar(require("./amqp.ad-center-settle.service"), exports);
|