@yolo-croket-dev/amqp-access 0.6.6-jun.0 → 0.6.6-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/package.json +1 -1
- package/payment-service/dto/ad-center-settle/command/edit-ad-center-settle.dto.d.ts +13 -0
- package/payment-service/dto/ad-center-settle/command/edit-ad-center-settle.dto.js +55 -0
- package/payment-service/dto/ad-center-settle/command/index.d.ts +1 -0
- package/payment-service/dto/ad-center-settle/command/index.js +1 -0
- package/payment-service/services/amqp.ad-center-settle.service.d.ts +3 -1
- package/payment-service/services/amqp.ad-center-settle.service.js +8 -0
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TransactionInfo, ErrorSettleInfo } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema/index';
|
|
2
|
+
import { ManageUserInfo } from '@yolo-croket-dev/entity/src/ad-center-settle-log/ad-center-settle-log.schema/manage-user-info.schema';
|
|
3
|
+
export declare class EditAdCenterSettlePayload {
|
|
4
|
+
adCenterSettleId: string;
|
|
5
|
+
adCenterStartDateString?: string;
|
|
6
|
+
adCenterEndDateString?: string;
|
|
7
|
+
/** 예상정산일 */
|
|
8
|
+
expectedSettleDateString: string;
|
|
9
|
+
transactionInfo?: TransactionInfo;
|
|
10
|
+
errorSettleInfo?: ErrorSettleInfo;
|
|
11
|
+
bizMemo?: string;
|
|
12
|
+
manageUserInfo: ManageUserInfo;
|
|
13
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.EditAdCenterSettlePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const index_1 = require("@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema/index");
|
|
15
|
+
const manage_user_info_schema_1 = require("@yolo-croket-dev/entity/src/ad-center-settle-log/ad-center-settle-log.schema/manage-user-info.schema");
|
|
16
|
+
class EditAdCenterSettlePayload {
|
|
17
|
+
}
|
|
18
|
+
exports.EditAdCenterSettlePayload = EditAdCenterSettlePayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsMongoId)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], EditAdCenterSettlePayload.prototype, "adCenterSettleId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], EditAdCenterSettlePayload.prototype, "adCenterStartDateString", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], EditAdCenterSettlePayload.prototype, "adCenterEndDateString", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EditAdCenterSettlePayload.prototype, "expectedSettleDateString", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsObject)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
__metadata("design:type", index_1.TransactionInfo)
|
|
41
|
+
], EditAdCenterSettlePayload.prototype, "transactionInfo", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsObject)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", index_1.ErrorSettleInfo)
|
|
46
|
+
], EditAdCenterSettlePayload.prototype, "errorSettleInfo", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], EditAdCenterSettlePayload.prototype, "bizMemo", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsObject)(),
|
|
54
|
+
__metadata("design:type", manage_user_info_schema_1.ManageUserInfo)
|
|
55
|
+
], EditAdCenterSettlePayload.prototype, "manageUserInfo", void 0);
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./edit-ad-center-coupon-settle.dto"), exports);
|
|
|
19
19
|
__exportStar(require("./delete-ad-center-settles.dto"), exports);
|
|
20
20
|
__exportStar(require("./delete-ad-center-coupon-settle.dto"), exports);
|
|
21
21
|
__exportStar(require("./create-ad-center-settles.dto"), exports);
|
|
22
|
+
__exportStar(require("./edit-ad-center-settle.dto"), exports);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateAdCenterCouponSettlesPayload, EditAdCenterCouponSettlePayload, DeleteAdCenterSettlesPayload, DeleteAdCenterCouponSettlePayload, GetAdCenterSettlesForSellerTransactionPayload, GetAdCenterSettlesForSellerTransactionResult } from '../dto/ad-center-settle';
|
|
3
|
+
import { CreateAdCenterCouponSettlesPayload, EditAdCenterCouponSettlePayload, DeleteAdCenterSettlesPayload, DeleteAdCenterCouponSettlePayload, GetAdCenterSettlesForSellerTransactionPayload, GetAdCenterSettlesForSellerTransactionResult, CreateAdCenterSettlePayload, CreateAdCenterSettleResult, EditAdCenterSettlePayload } from '../dto/ad-center-settle';
|
|
4
4
|
export declare class AmqpAdCenterSettleService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
|
+
createAdCenterSettles(payload: CreateAdCenterSettlePayload, param: AbstractParam): Promise<CreateAdCenterSettleResult>;
|
|
9
|
+
editAdCenterSettles(payload: EditAdCenterSettlePayload, param: AbstractParam): Promise<void>;
|
|
8
10
|
createAdCenterCouponSettles(payload: CreateAdCenterCouponSettlesPayload, param: AbstractParam): Promise<void>;
|
|
9
11
|
deleteAdCenterSettles(payload: DeleteAdCenterSettlesPayload, param: AbstractParam): Promise<void>;
|
|
10
12
|
editAdCenterCouponSettle(payload: EditAdCenterCouponSettlePayload, param: AbstractParam): Promise<void>;
|
|
@@ -21,6 +21,14 @@ let AmqpAdCenterSettleService = class AmqpAdCenterSettleService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
+
async createAdCenterSettles(payload, param) {
|
|
25
|
+
// eslint-disable-next-line max-len
|
|
26
|
+
return this.amqpManager.call('광고센터 정산 데이터 생성', 'ad-center-settle.create', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
28
|
+
async editAdCenterSettles(payload, param) {
|
|
29
|
+
// eslint-disable-next-line max-len
|
|
30
|
+
return this.amqpManager.call('광고센터 정산 데이터 생성', 'ad-center-settle.edit', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
24
32
|
async createAdCenterCouponSettles(payload, param) {
|
|
25
33
|
// eslint-disable-next-line max-len
|
|
26
34
|
return this.amqpManager.call('광고센터쿠폰 정산 데이터 생성', 'ad-center-settle.create.ad-center-coupon', payload, param, { isErrorThrowing: true });
|