@yolo-croket-dev/amqp-access 0.7.347 → 0.7.349
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.
|
@@ -54,6 +54,20 @@ export interface CrawlerProxyOrderBuyerInfoForAdmin {
|
|
|
54
54
|
pcccInfo?: PInfoPCCCInfo;
|
|
55
55
|
}
|
|
56
56
|
export interface CrawlerProxyOrderMarginInfoForAdmin {
|
|
57
|
+
/** 배송비를 포함한 할인 전 상품 금액 */
|
|
58
|
+
productAmountIncludingShipping?: number;
|
|
59
|
+
/** 크레딧과 쿠폰을 차감하기 전 실매출 기준 금액 */
|
|
60
|
+
revenueAmountBeforeDiscount?: number;
|
|
61
|
+
/** 크레딧과 쿠폰이 반영된 할인 금액 */
|
|
62
|
+
discountAmount?: number;
|
|
63
|
+
/** 할인 전 매출 기준 마진 계산 가능 여부 */
|
|
64
|
+
isMarginBeforeDiscountCalculable?: boolean;
|
|
65
|
+
/** 할인 전 매출 기준 마진 계산 불가 사유 */
|
|
66
|
+
marginBeforeDiscountReason?: string;
|
|
67
|
+
/** 할인 전 매출 기준 마진 */
|
|
68
|
+
marginAmountBeforeDiscount?: number;
|
|
69
|
+
/** 할인 전 매출 기준 마진율 */
|
|
70
|
+
marginRateBeforeDiscount?: number;
|
|
57
71
|
isCalculable: boolean;
|
|
58
72
|
reason?: string;
|
|
59
73
|
netPaidAmount?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.349",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"@nestjs/mapped-types": "2.0.2",
|
|
22
22
|
"@yolo-croket-dev/core": "^1.9.3",
|
|
23
23
|
"@yolo-croket-dev/domain": "0.2.47",
|
|
24
|
-
"@yolo-croket-dev/dto-v2": "0.2.
|
|
24
|
+
"@yolo-croket-dev/dto-v2": "0.2.31",
|
|
25
25
|
"@yolo-croket-dev/entity": "0.2.109",
|
|
26
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
26
|
+
"@yolo-croket-dev/entity-v2": "0.3.51",
|
|
27
27
|
"class-transformer": "^0.5.1",
|
|
28
28
|
"class-validator": "^0.13.2",
|
|
29
29
|
"dotenv": "^16.3.1"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetPendingSettlesPayload, GetPendingSettlesResult } from '@yolo-croket-dev/dto-v2/payment-service';
|
|
1
|
+
import { CreateAdjustmentPlanPayload, UpdateAdjustmentPlanPayload, DeleteAdjustmentPlansPayload, GetAdjustmentPlansPayload, GetAdjustmentPlanPaymentPayload, GetAdjustmentPlansForExportPayload, GetAdjustmentPlansResult, GetAdjustmentPlansForExportResult, AdjustmentPlanRow, AdjustmentPlanPayment, GetPendingSettlesPayload, GetPendingSettlesResult } from '@yolo-croket-dev/dto-v2/payment-service';
|
|
2
2
|
import { ClientProxy } from '@nestjs/microservices';
|
|
3
3
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
4
4
|
import { GetAbroadSettleRemittancePdfDataForUserPayload, GetAbroadSettleRemittancePdfDataForUserResult, GetAbroadSettleRemittancesForUserPayload, GetAbroadSettleRemittancesForUserResult } from '../dto';
|
|
@@ -10,4 +10,16 @@ export declare class AmqpSettleService {
|
|
|
10
10
|
getPendingSettles(payload: GetPendingSettlesPayload, param: AbstractParam): Promise<GetPendingSettlesResult>;
|
|
11
11
|
getAbroadSettleRemittancesForUser(payload: GetAbroadSettleRemittancesForUserPayload, param: AbstractParam): Promise<GetAbroadSettleRemittancesForUserResult>;
|
|
12
12
|
getAbroadSettleRemittancePdfDataForUser(payload: GetAbroadSettleRemittancePdfDataForUserPayload, param: AbstractParam): Promise<GetAbroadSettleRemittancePdfDataForUserResult>;
|
|
13
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
14
|
+
getAdjustmentPlans(payload: GetAdjustmentPlansPayload, param: AbstractParam): Promise<GetAdjustmentPlansResult>;
|
|
15
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
16
|
+
getAdjustmentPlanPayment(payload: GetAdjustmentPlanPaymentPayload, param: AbstractParam): Promise<AdjustmentPlanPayment>;
|
|
17
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
18
|
+
getAdjustmentPlansForExport(payload: GetAdjustmentPlansForExportPayload, param: AbstractParam): Promise<GetAdjustmentPlansForExportResult>;
|
|
19
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
20
|
+
createAdjustmentPlan(payload: CreateAdjustmentPlanPayload, param: AbstractParam): Promise<AdjustmentPlanRow>;
|
|
21
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
22
|
+
updateAdjustmentPlan(payload: UpdateAdjustmentPlanPayload, param: AbstractParam): Promise<AdjustmentPlanRow>;
|
|
23
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
24
|
+
deleteAdjustmentPlans(payload: DeleteAdjustmentPlansPayload, param: AbstractParam): Promise<void>;
|
|
13
25
|
}
|
|
@@ -31,6 +31,30 @@ let AmqpSettleService = class AmqpSettleService {
|
|
|
31
31
|
async getAbroadSettleRemittancePdfDataForUser(payload, param) {
|
|
32
32
|
return this.amqpManager.call('외화 기준 정산 인보이스 PDF 데이터 조회', 'settle.get.abroad-settle-remittance-pdf-data.for-user', payload, param, { isErrorThrowing: true });
|
|
33
33
|
}
|
|
34
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
35
|
+
async getAdjustmentPlans(payload, param) {
|
|
36
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.get.list', payload, param, { isErrorThrowing: true });
|
|
37
|
+
}
|
|
38
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
39
|
+
async getAdjustmentPlanPayment(payload, param) {
|
|
40
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.get.payment', payload, param, { isErrorThrowing: true });
|
|
41
|
+
}
|
|
42
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
43
|
+
async getAdjustmentPlansForExport(payload, param) {
|
|
44
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.get.export', payload, param, { isErrorThrowing: true });
|
|
45
|
+
}
|
|
46
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
47
|
+
async createAdjustmentPlan(payload, param) {
|
|
48
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.create.one', payload, param, { isErrorThrowing: true });
|
|
49
|
+
}
|
|
50
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
51
|
+
async updateAdjustmentPlan(payload, param) {
|
|
52
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.update.one', payload, param, { isErrorThrowing: true });
|
|
53
|
+
}
|
|
54
|
+
/** @description 추가·차감 예정 RPC를 호출한다. */
|
|
55
|
+
async deleteAdjustmentPlans(payload, param) {
|
|
56
|
+
return this.amqpManager.call('추가·차감 예정', 'settle-adjustment-plan.delete.list', payload, param, { isErrorThrowing: true });
|
|
57
|
+
}
|
|
34
58
|
};
|
|
35
59
|
exports.AmqpSettleService = AmqpSettleService;
|
|
36
60
|
exports.AmqpSettleService = AmqpSettleService = __decorate([
|