@yolo-croket-dev/amqp-access 0.7.70 → 0.7.71-sj1
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/amqp.order-server.module.js +2 -0
- package/order-server/dto/purchased-info.modules/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-invoice-for-admin.dto.d.ts +6 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-invoice-for-admin.dto.js +25 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-split-invoice-for-admin.dto.d.ts +6 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-split-invoice-for-admin.dto.js +24 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.d.ts +4 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +4 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-for-admin.dto.d.ts +24 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-for-admin.dto.js +68 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.d.ts +26 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.js +72 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.d.ts +120 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.js +66 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.d.ts +2 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.js +18 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.d.ts +38 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.js +60 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.d.ts +28 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.js +71 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/index.js +17 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.d.ts +3 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.js +5 -0
- package/order-server/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts +7 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +6 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.js +15 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.d.ts +12 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.js +43 -0
- package/order-server/services/purchased-info.modules/index.d.ts +1 -0
- package/order-server/services/purchased-info.modules/index.js +1 -0
- package/package.json +5 -5
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/payment-service/dto/partial-refund/command/create-partial-refund.dto.d.ts +3 -1
- package/payment-service/dto/partial-refund/command/create-partial-refund.dto.js +2 -0
- package/user-service/dto/redis-db/command/index.d.ts +1 -0
- package/user-service/dto/redis-db/command/index.js +1 -0
- package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.d.ts +22 -0
- package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.js +73 -0
- package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.d.ts +16 -1
- package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.js +21 -0
|
@@ -40,6 +40,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
40
40
|
services_1.AmqpUserCardBillingService,
|
|
41
41
|
services_1.AmqpPayTryLogReservationService,
|
|
42
42
|
services_1.AmqpPurchasedInfoReservationService,
|
|
43
|
+
services_1.AmqpPurchasedInfoSplitDeliveryService,
|
|
43
44
|
],
|
|
44
45
|
exports: [
|
|
45
46
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
@@ -65,6 +66,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
65
66
|
services_1.AmqpUserCardBillingService,
|
|
66
67
|
services_1.AmqpPayTryLogReservationService,
|
|
67
68
|
services_1.AmqpPurchasedInfoReservationService,
|
|
69
|
+
services_1.AmqpPurchasedInfoSplitDeliveryService,
|
|
68
70
|
],
|
|
69
71
|
})
|
|
70
72
|
], AmqpOrderServerModule);
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./purchased-info-admin"), exports);
|
|
|
18
18
|
__exportStar(require("./purchased-info-coupon"), exports);
|
|
19
19
|
__exportStar(require("./purchased-info-sabang"), exports);
|
|
20
20
|
__exportStar(require("./purchased-info-reservation"), exports);
|
|
21
|
+
__exportStar(require("./purchased-info-split-delivery"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
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.DeleteInvoiceForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DeleteInvoiceForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.DeleteInvoiceForAdminPayload = DeleteInvoiceForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], DeleteInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsBoolean)(),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], DeleteInvoiceForAdminPayload.prototype, "isOneSaveInvoice", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
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.DeleteSplitInvoiceForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DeleteSplitInvoiceForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.DeleteSplitInvoiceForAdminPayload = DeleteSplitInvoiceForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], DeleteSplitInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsMongoId)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DeleteSplitInvoiceForAdminPayload.prototype, "splitDeliveryDataId", void 0);
|
|
@@ -7,3 +7,7 @@ export * from './edit-p-info-waiting-receive-info.dto';
|
|
|
7
7
|
export * from './edit-p-info-used-coupon.dto';
|
|
8
8
|
export * from './delete-p-info-used-coupon.dto';
|
|
9
9
|
export * from './process';
|
|
10
|
+
export * from './upsert-invoice-for-admin.dto';
|
|
11
|
+
export * from './delete-invoice-for-admin.dto';
|
|
12
|
+
export * from './upsert-split-invoice-for-admin.dto';
|
|
13
|
+
export * from './delete-split-invoice-for-admin.dto';
|
|
@@ -23,3 +23,7 @@ __exportStar(require("./edit-p-info-waiting-receive-info.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./edit-p-info-used-coupon.dto"), exports);
|
|
24
24
|
__exportStar(require("./delete-p-info-used-coupon.dto"), exports);
|
|
25
25
|
__exportStar(require("./process"), exports);
|
|
26
|
+
__exportStar(require("./upsert-invoice-for-admin.dto"), exports);
|
|
27
|
+
__exportStar(require("./delete-invoice-for-admin.dto"), exports);
|
|
28
|
+
__exportStar(require("./upsert-split-invoice-for-admin.dto"), exports);
|
|
29
|
+
__exportStar(require("./delete-split-invoice-for-admin.dto"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class UpsertInvoiceForAdminPayload {
|
|
2
|
+
/** 결제정보 ID (레거시: data.pInfoId) */
|
|
3
|
+
pInfoId: string;
|
|
4
|
+
/** 택배사명 (레거시: data.SCompany) */
|
|
5
|
+
SCompany: string;
|
|
6
|
+
/** 송장번호 (레거시: data.invoice) */
|
|
7
|
+
invoice: string;
|
|
8
|
+
/** 배송 조회 URL (레거시: data.invoiceUrl) */
|
|
9
|
+
invoiceUrl?: string;
|
|
10
|
+
/** 택배사 직접 입력 여부 (레거시: data.isDirectInput) */
|
|
11
|
+
isDirectInput?: boolean;
|
|
12
|
+
/** 묶음이어도 단건만 처리 (레거시 동일) */
|
|
13
|
+
isOneSaveInvoice?: boolean;
|
|
14
|
+
/** 알림 발송 여부 (레거시: isNoti) */
|
|
15
|
+
isNoti?: boolean;
|
|
16
|
+
/** 해외 택배사명 (신규) */
|
|
17
|
+
abroadCarrierName?: string;
|
|
18
|
+
/** 해외 송장번호 (신규) */
|
|
19
|
+
abroadInvoice?: string;
|
|
20
|
+
/** 해외 배송 조회 URL (신규) */
|
|
21
|
+
abroadInvoiceUrl?: string;
|
|
22
|
+
/** 해외 택배사 직접 입력 여부 (신규) */
|
|
23
|
+
isAbroadDirectInput?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.UpsertInvoiceForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpsertInvoiceForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpsertInvoiceForAdminPayload = UpsertInvoiceForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpsertInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpsertInvoiceForAdminPayload.prototype, "SCompany", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpsertInvoiceForAdminPayload.prototype, "invoice", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpsertInvoiceForAdminPayload.prototype, "invoiceUrl", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsBoolean)(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], UpsertInvoiceForAdminPayload.prototype, "isDirectInput", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsBoolean)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], UpsertInvoiceForAdminPayload.prototype, "isOneSaveInvoice", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], UpsertInvoiceForAdminPayload.prototype, "isNoti", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], UpsertInvoiceForAdminPayload.prototype, "abroadCarrierName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], UpsertInvoiceForAdminPayload.prototype, "abroadInvoice", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], UpsertInvoiceForAdminPayload.prototype, "abroadInvoiceUrl", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsBoolean)(),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], UpsertInvoiceForAdminPayload.prototype, "isAbroadDirectInput", void 0);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class UpsertSplitInvoiceForAdminPayload {
|
|
2
|
+
/** 결제정보 ID */
|
|
3
|
+
pInfoId: string;
|
|
4
|
+
/** 수정 시 분할 송장 항목 아이디 (없으면 신규 등록) */
|
|
5
|
+
splitDeliveryDataId?: string;
|
|
6
|
+
/** 출고 수량 (등록 시 필수, 수정 시에도 변경 가능) */
|
|
7
|
+
quantity: number;
|
|
8
|
+
/** 택배사명 */
|
|
9
|
+
SCompany: string;
|
|
10
|
+
/** 송장번호 */
|
|
11
|
+
invoice: string;
|
|
12
|
+
/** 배송 조회 URL */
|
|
13
|
+
invoiceUrl?: string;
|
|
14
|
+
/** 택배사 직접 입력 여부 */
|
|
15
|
+
isDirectInput?: boolean;
|
|
16
|
+
/** 해외 택배사명 */
|
|
17
|
+
abroadCarrierName?: string;
|
|
18
|
+
/** 해외 송장번호 */
|
|
19
|
+
abroadInvoice?: string;
|
|
20
|
+
/** 해외 배송 조회 URL */
|
|
21
|
+
abroadInvoiceUrl?: string;
|
|
22
|
+
/** 해외 택배사 직접 입력 여부 */
|
|
23
|
+
isAbroadDirectInput?: boolean;
|
|
24
|
+
/** 알림 발송 여부 */
|
|
25
|
+
isNoti?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.UpsertSplitInvoiceForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpsertSplitInvoiceForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpsertSplitInvoiceForAdminPayload = UpsertSplitInvoiceForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "splitDeliveryDataId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "quantity", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "SCompany", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "invoice", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "invoiceUrl", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsBoolean)(),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "isDirectInput", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "abroadCarrierName", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "abroadInvoice", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "abroadInvoiceUrl", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsBoolean)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "isAbroadDirectInput", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsBoolean)(),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "isNoti", void 0);
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/** 배송 목록 조회 범위 (레거시: range 파라미터) */
|
|
2
|
+
export declare enum DeliveryListRangeEnum {
|
|
3
|
+
/** 미발송 — beforeDeposit, waitingOrder, beforeDelivery */
|
|
4
|
+
yet = "yet",
|
|
5
|
+
/** 배송 중 — yet + afterDelivery, waitingReceive */
|
|
6
|
+
shipping = "shipping"
|
|
7
|
+
}
|
|
8
|
+
export declare class GetDeliveryListForAdminPayload {
|
|
9
|
+
/** 조회 시작일 — paymentDate 기준 (레거시: sDate) */
|
|
10
|
+
startDate: string;
|
|
11
|
+
/** 조회 종료일 — paymentDate 기준 (레거시: eDate) */
|
|
12
|
+
endDate: string;
|
|
13
|
+
/** 조회 범위 (레거시: range) */
|
|
14
|
+
range: DeliveryListRangeEnum;
|
|
15
|
+
/** 방문형 배송만 필터 (레거시: visit) */
|
|
16
|
+
isVisitOnly?: boolean;
|
|
17
|
+
/** 번들 PInfo 아이디 필터 (레거시: bundleId) */
|
|
18
|
+
bundlePInfoId?: string;
|
|
19
|
+
/** 스토어 아이디 필터 (레거시: admin=true → 하드코딩 storeId 대체) */
|
|
20
|
+
storeId?: string;
|
|
21
|
+
/** 판매자 아이디 필터 */
|
|
22
|
+
sellerId?: string;
|
|
23
|
+
/** 구매자 아이디 필터 */
|
|
24
|
+
buyerId?: string;
|
|
25
|
+
/** 조회 건수 — 기본 100, 최대 500 (레거시: 100 고정) */
|
|
26
|
+
limit?: number;
|
|
27
|
+
}
|
|
28
|
+
/** 분할 송장 개별 항목 응답 */
|
|
29
|
+
export type SplitDeliveryDataItem = {
|
|
30
|
+
_id: string;
|
|
31
|
+
/** 해당 송장 수량 */
|
|
32
|
+
quantity: number;
|
|
33
|
+
/** 국내 택배사 */
|
|
34
|
+
SCompany: string;
|
|
35
|
+
/** 국내 송장번호 */
|
|
36
|
+
invoice: string;
|
|
37
|
+
invoiceUrl?: string;
|
|
38
|
+
isDirectInput?: boolean;
|
|
39
|
+
/** 해외 배송 여부 */
|
|
40
|
+
isAbroad?: boolean;
|
|
41
|
+
abroadCarrierName?: string;
|
|
42
|
+
abroadInvoice?: string;
|
|
43
|
+
abroadInvoiceUrl?: string;
|
|
44
|
+
isAbroadDirectInput?: boolean;
|
|
45
|
+
abroadRegDate?: Date;
|
|
46
|
+
/** 등록일 (= 국내 발송일) */
|
|
47
|
+
regDate: Date;
|
|
48
|
+
lastModifiedDate?: Date;
|
|
49
|
+
};
|
|
50
|
+
/** 배송 목록 개별 항목 응답 */
|
|
51
|
+
export type DeliveryListItemForAdmin = {
|
|
52
|
+
_id: string;
|
|
53
|
+
/** 주문 상태 (레거시: process) */
|
|
54
|
+
process: string;
|
|
55
|
+
/** 결제일 (레거시: paymentDate) */
|
|
56
|
+
paymentDate: Date;
|
|
57
|
+
/** 주문번호 */
|
|
58
|
+
publicId?: string;
|
|
59
|
+
/** 당시 상품명 (레거시: pastName → itemName으로 덮어씌움) */
|
|
60
|
+
itemName?: string;
|
|
61
|
+
/** 당시 상품 이미지 (레거시: pastImg → itemImg로 덮어씌움) */
|
|
62
|
+
itemImg?: string;
|
|
63
|
+
/** 당시 단가 (레거시: pastPrice) */
|
|
64
|
+
unitPrice: number;
|
|
65
|
+
/** 구매 수량 (레거시: purchaseNumber) */
|
|
66
|
+
purchaseNumber: number;
|
|
67
|
+
/** 배송비 (레거시: shippingFee) */
|
|
68
|
+
shippingFee: number;
|
|
69
|
+
/** 결제 금액 (레거시: paidPrice — itemPrice 계산 결과) */
|
|
70
|
+
paidPrice: number;
|
|
71
|
+
/** 옵션 정보 (레거시: pOptionInfo.pOptionList 우선, fallback option) */
|
|
72
|
+
optionList: {
|
|
73
|
+
name: string;
|
|
74
|
+
purchaseNumber?: number;
|
|
75
|
+
}[];
|
|
76
|
+
deliveryType: string;
|
|
77
|
+
isPrepay?: boolean;
|
|
78
|
+
isVisit: boolean;
|
|
79
|
+
isBundleShipping: boolean;
|
|
80
|
+
bundleShippingFee: number;
|
|
81
|
+
deliveryAddress?: string;
|
|
82
|
+
deliveryData?: {
|
|
83
|
+
SCompany?: string;
|
|
84
|
+
invoice?: string;
|
|
85
|
+
invoiceUrl?: string;
|
|
86
|
+
isDirectInput?: boolean;
|
|
87
|
+
directDate?: Date;
|
|
88
|
+
regDate?: Date;
|
|
89
|
+
/** 해외 운송장 (신규) */
|
|
90
|
+
isAbroad?: boolean;
|
|
91
|
+
abroadCarrierName?: string;
|
|
92
|
+
abroadInvoice?: string;
|
|
93
|
+
abroadInvoiceUrl?: string;
|
|
94
|
+
isAbroadDirectInput?: boolean;
|
|
95
|
+
abroadRegDate?: Date;
|
|
96
|
+
};
|
|
97
|
+
isSplitDelivery: boolean;
|
|
98
|
+
splitDeliveryDataList?: SplitDeliveryDataItem[];
|
|
99
|
+
remainingShipQuantity?: number;
|
|
100
|
+
receiverName?: string;
|
|
101
|
+
receiverPhoneNumber?: string;
|
|
102
|
+
buyerUsername?: string;
|
|
103
|
+
buyerPhoneNumber?: string;
|
|
104
|
+
sellerPhoneNumber?: string;
|
|
105
|
+
bundlePInfo?: {
|
|
106
|
+
isBundle: boolean;
|
|
107
|
+
bundlePInfoId?: string;
|
|
108
|
+
};
|
|
109
|
+
/** 요청사항 (레거시: requirement || '없음') */
|
|
110
|
+
requirement: string;
|
|
111
|
+
/** 메모 */
|
|
112
|
+
memo?: string;
|
|
113
|
+
storeId: string;
|
|
114
|
+
buyerId: string;
|
|
115
|
+
sellerId?: string;
|
|
116
|
+
};
|
|
117
|
+
export type GetDeliveryListForAdminResult = {
|
|
118
|
+
totalCount: number;
|
|
119
|
+
deliveryList: DeliveryListItemForAdmin[];
|
|
120
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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.GetDeliveryListForAdminPayload = exports.DeliveryListRangeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** 배송 목록 조회 범위 (레거시: range 파라미터) */
|
|
15
|
+
var DeliveryListRangeEnum;
|
|
16
|
+
(function (DeliveryListRangeEnum) {
|
|
17
|
+
/** 미발송 — beforeDeposit, waitingOrder, beforeDelivery */
|
|
18
|
+
DeliveryListRangeEnum["yet"] = "yet";
|
|
19
|
+
/** 배송 중 — yet + afterDelivery, waitingReceive */
|
|
20
|
+
DeliveryListRangeEnum["shipping"] = "shipping";
|
|
21
|
+
})(DeliveryListRangeEnum || (exports.DeliveryListRangeEnum = DeliveryListRangeEnum = {}));
|
|
22
|
+
class GetDeliveryListForAdminPayload {
|
|
23
|
+
}
|
|
24
|
+
exports.GetDeliveryListForAdminPayload = GetDeliveryListForAdminPayload;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsDateString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GetDeliveryListForAdminPayload.prototype, "startDate", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsDateString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GetDeliveryListForAdminPayload.prototype, "endDate", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(DeliveryListRangeEnum),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GetDeliveryListForAdminPayload.prototype, "range", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], GetDeliveryListForAdminPayload.prototype, "isVisitOnly", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsMongoId)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], GetDeliveryListForAdminPayload.prototype, "bundlePInfoId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsMongoId)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], GetDeliveryListForAdminPayload.prototype, "storeId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsMongoId)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], GetDeliveryListForAdminPayload.prototype, "sellerId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsMongoId)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], GetDeliveryListForAdminPayload.prototype, "buyerId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsNumber)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], GetDeliveryListForAdminPayload.prototype, "limit", void 0);
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-purchased-infos-for-admin.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-purchased-info-detail-for-admin-edit.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-purchased-info-logs-for-coupon-info.dto"), exports);
|
|
20
|
+
__exportStar(require("./get-delivery-list-for-admin.dto"), exports);
|
package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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("./upsert-split-invoice.dto"), exports);
|
|
18
|
+
__exportStar(require("./register-split-invoice-bulk.dto"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 엑셀 분할 송장 일괄 등록 개별 항목
|
|
4
|
+
*/
|
|
5
|
+
export declare class SplitInvoiceBulkItem {
|
|
6
|
+
/** 주문번호 */
|
|
7
|
+
publicId: string;
|
|
8
|
+
/** 출고 수량 */
|
|
9
|
+
quantity: number;
|
|
10
|
+
/** 택배사명 또는 코드 */
|
|
11
|
+
SCompany: string;
|
|
12
|
+
/** 송장번호 */
|
|
13
|
+
invoice: string;
|
|
14
|
+
/** 해외 택배사명 */
|
|
15
|
+
abroadCarrierName?: string;
|
|
16
|
+
/** 해외 송장번호 */
|
|
17
|
+
abroadInvoice?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @author sj
|
|
21
|
+
* @description 엑셀 분할 송장 일괄 등록 Payload
|
|
22
|
+
*/
|
|
23
|
+
export declare class RegisterSplitInvoiceBulkPayload {
|
|
24
|
+
datas: SplitInvoiceBulkItem[];
|
|
25
|
+
}
|
|
26
|
+
/** 에러 데이터 */
|
|
27
|
+
export interface RegisterSplitInvoiceBulkErrorData {
|
|
28
|
+
publicId: string;
|
|
29
|
+
SCompany: string;
|
|
30
|
+
invoice: string;
|
|
31
|
+
errorReason: string;
|
|
32
|
+
}
|
|
33
|
+
/** Result 인터페이스 */
|
|
34
|
+
export interface RegisterSplitInvoiceBulkResult {
|
|
35
|
+
successCount: number;
|
|
36
|
+
failedCount: number;
|
|
37
|
+
errorList: RegisterSplitInvoiceBulkErrorData[];
|
|
38
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.RegisterSplitInvoiceBulkPayload = exports.SplitInvoiceBulkItem = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/**
|
|
16
|
+
* @author sj
|
|
17
|
+
* @description 엑셀 분할 송장 일괄 등록 개별 항목
|
|
18
|
+
*/
|
|
19
|
+
class SplitInvoiceBulkItem {
|
|
20
|
+
}
|
|
21
|
+
exports.SplitInvoiceBulkItem = SplitInvoiceBulkItem;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SplitInvoiceBulkItem.prototype, "publicId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], SplitInvoiceBulkItem.prototype, "quantity", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SplitInvoiceBulkItem.prototype, "SCompany", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SplitInvoiceBulkItem.prototype, "invoice", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], SplitInvoiceBulkItem.prototype, "abroadCarrierName", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], SplitInvoiceBulkItem.prototype, "abroadInvoice", void 0);
|
|
48
|
+
/**
|
|
49
|
+
* @author sj
|
|
50
|
+
* @description 엑셀 분할 송장 일괄 등록 Payload
|
|
51
|
+
*/
|
|
52
|
+
class RegisterSplitInvoiceBulkPayload {
|
|
53
|
+
}
|
|
54
|
+
exports.RegisterSplitInvoiceBulkPayload = RegisterSplitInvoiceBulkPayload;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsArray)(),
|
|
57
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
58
|
+
(0, class_transformer_1.Type)(() => SplitInvoiceBulkItem),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], RegisterSplitInvoiceBulkPayload.prototype, "datas", void 0);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 셀러용 분할 송장 등록/수정 Payload
|
|
4
|
+
*/
|
|
5
|
+
export declare class UpsertSplitInvoicePayload {
|
|
6
|
+
/** 결제 정보 아이디 */
|
|
7
|
+
pInfoId: string;
|
|
8
|
+
/** 수정 시 분할 송장 항목 아이디 (없으면 신규 등록) */
|
|
9
|
+
splitDeliveryDataId?: string;
|
|
10
|
+
/** 출고 수량 (등록 시 필수, 수정 시 무시) */
|
|
11
|
+
quantity: number;
|
|
12
|
+
/** 택배사명 */
|
|
13
|
+
SCompany: string;
|
|
14
|
+
/** 송장번호 */
|
|
15
|
+
invoice: string;
|
|
16
|
+
/** 배송 조회 URL */
|
|
17
|
+
invoiceUrl?: string;
|
|
18
|
+
/** 택배사 직접 입력 여부 */
|
|
19
|
+
isDirectInput?: boolean;
|
|
20
|
+
/** 해외 택배사명 */
|
|
21
|
+
abroadCarrierName?: string;
|
|
22
|
+
/** 해외 송장번호 */
|
|
23
|
+
abroadInvoice?: string;
|
|
24
|
+
/** 해외 배송 조회 URL */
|
|
25
|
+
abroadInvoiceUrl?: string;
|
|
26
|
+
/** 해외 택배사 직접 입력 여부 */
|
|
27
|
+
isAbroadDirectInput?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.UpsertSplitInvoicePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 셀러용 분할 송장 등록/수정 Payload
|
|
17
|
+
*/
|
|
18
|
+
class UpsertSplitInvoicePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.UpsertSplitInvoicePayload = UpsertSplitInvoicePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsMongoId)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpsertSplitInvoicePayload.prototype, "pInfoId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsMongoId)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UpsertSplitInvoicePayload.prototype, "splitDeliveryDataId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], UpsertSplitInvoicePayload.prototype, "quantity", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpsertSplitInvoicePayload.prototype, "SCompany", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpsertSplitInvoicePayload.prototype, "invoice", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], UpsertSplitInvoicePayload.prototype, "invoiceUrl", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsBoolean)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], UpsertSplitInvoicePayload.prototype, "isDirectInput", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpsertSplitInvoicePayload.prototype, "abroadCarrierName", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], UpsertSplitInvoicePayload.prototype, "abroadInvoice", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpsertSplitInvoicePayload.prototype, "abroadInvoiceUrl", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsBoolean)(),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], UpsertSplitInvoicePayload.prototype, "isAbroadDirectInput", void 0);
|
|
@@ -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);
|
package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.d.ts
CHANGED
|
@@ -19,9 +19,12 @@ export declare class GetPInfosForManageBuyerByAtlasPayload {
|
|
|
19
19
|
searchBefore?: string;
|
|
20
20
|
/** 예약 상품 모아보기 필터 여부 */
|
|
21
21
|
isReservationItem?: boolean;
|
|
22
|
+
/** 분할 배송 필터 여부 */
|
|
23
|
+
isSplitDelivery?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export declare class GetPInfosForManageBuyerByAtlasResult {
|
|
24
26
|
allCount: number;
|
|
25
27
|
datas: PurchasedInfoForSeller[];
|
|
26
28
|
reservationPInfoNums?: number;
|
|
29
|
+
splitDeliveryPInfoNums?: number;
|
|
27
30
|
}
|
package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.js
CHANGED
|
@@ -72,6 +72,11 @@ __decorate([
|
|
|
72
72
|
(0, class_validator_1.IsOptional)(),
|
|
73
73
|
__metadata("design:type", Boolean)
|
|
74
74
|
], GetPInfosForManageBuyerByAtlasPayload.prototype, "isReservationItem", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsBoolean)(),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "isSplitDelivery", void 0);
|
|
75
80
|
class GetPInfosForManageBuyerByAtlasResult {
|
|
76
81
|
}
|
|
77
82
|
exports.GetPInfosForManageBuyerByAtlasResult = GetPInfosForManageBuyerByAtlasResult;
|
package/order-server/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PurchasedProcessEnum } from '@yolo-croket-dev/entity';
|
|
2
|
-
import { PurchasedProcessV2Enum, PInfoTypeEnum } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
import { PurchasedProcessV2Enum, PInfoTypeEnum, SplitDeliveryData } from '@yolo-croket-dev/entity-v2';
|
|
3
3
|
import { StoreItemKeyword } from '@yolo-croket-dev/dto-v2/user-service';
|
|
4
4
|
export declare class SearchSellerTransactionHistoryByProcessPayload {
|
|
5
5
|
/** 시작 날짜 */
|
|
@@ -115,6 +115,12 @@ export declare class SellerTransactionHistory {
|
|
|
115
115
|
itemKeywords?: StoreItemKeyword[];
|
|
116
116
|
/** 결제 정보 타입 (예약 상품 구분) */
|
|
117
117
|
pInfoType?: PInfoTypeEnum;
|
|
118
|
+
/** 분할 배송 여부 */
|
|
119
|
+
isSplitDelivery?: boolean;
|
|
120
|
+
/** 분할 송장 목록 */
|
|
121
|
+
splitDeliveryDataList?: SplitDeliveryData[];
|
|
122
|
+
/** 남은 출고 수량 */
|
|
123
|
+
remainingShipQuantity?: number;
|
|
118
124
|
}
|
|
119
125
|
export declare class SearchSellerTransactionHistoryByProcessResult {
|
|
120
126
|
sellerTransactionHistories: SellerTransactionHistory[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload, EditPInfoUsedCouponInfoPayload, DeletePInfoUsedCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoResult, UpdateProcessFinishedToCancelledPayload } from '../../dto/purchased-info.modules/purchased-info-admin';
|
|
3
|
+
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload, EditPInfoUsedCouponInfoPayload, DeletePInfoUsedCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoResult, UpdateProcessFinishedToCancelledPayload, GetDeliveryListForAdminPayload, GetDeliveryListForAdminResult, UpsertInvoiceForAdminPayload, DeleteInvoiceForAdminPayload, UpsertSplitInvoiceForAdminPayload, DeleteSplitInvoiceForAdminPayload } from '../../dto/purchased-info.modules/purchased-info-admin';
|
|
4
4
|
export declare class AmqpPurchasedInfoAdminService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -17,4 +17,9 @@ export declare class AmqpPurchasedInfoAdminService {
|
|
|
17
17
|
deletePInfoUsedCouponInfo(payload: DeletePInfoUsedCouponInfoPayload, param: AbstractParam): Promise<void>;
|
|
18
18
|
getPurchasedInfoLogsForCouponInfo(payload: GetPurchasedInfoLogsForCouponInfoPayload, param: AbstractParam): Promise<GetPurchasedInfoLogsForCouponInfoResult>;
|
|
19
19
|
updateProcessFinishedToCancelled(payload: UpdateProcessFinishedToCancelledPayload, param: AbstractParam): Promise<void>;
|
|
20
|
+
getDeliveryListForAdmin(payload: GetDeliveryListForAdminPayload, param: AbstractParam): Promise<GetDeliveryListForAdminResult>;
|
|
21
|
+
upsertInvoiceForAdmin(payload: UpsertInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
22
|
+
deleteInvoiceForAdmin(payload: DeleteInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
23
|
+
upsertSplitInvoiceForAdmin(payload: UpsertSplitInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
24
|
+
deleteSplitInvoiceForAdmin(payload: DeleteSplitInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
20
25
|
}
|
|
@@ -57,6 +57,21 @@ let AmqpPurchasedInfoAdminService = class AmqpPurchasedInfoAdminService {
|
|
|
57
57
|
async updateProcessFinishedToCancelled(payload, param) {
|
|
58
58
|
return this.amqpManager.call('결제 상세 처리 상태 완료에서 취소로 변경 (관리자)', 'purchased-info-admin.update.process-finished-to-cancelled', payload, param, { isErrorThrowing: true });
|
|
59
59
|
}
|
|
60
|
+
async getDeliveryListForAdmin(payload, param) {
|
|
61
|
+
return this.amqpManager.call('관리자용 배송 목록 조회', 'purchased-info-admin.get.delivery-list', payload, param, { isErrorThrowing: true });
|
|
62
|
+
}
|
|
63
|
+
async upsertInvoiceForAdmin(payload, param) {
|
|
64
|
+
return this.amqpManager.call('관리자용 단일 송장 등록/수정', 'purchased-info-admin.upsert.invoice', payload, param, { isErrorThrowing: true });
|
|
65
|
+
}
|
|
66
|
+
async deleteInvoiceForAdmin(payload, param) {
|
|
67
|
+
return this.amqpManager.call('관리자용 단일 송장 삭제', 'purchased-info-admin.delete.invoice', payload, param, { isErrorThrowing: true });
|
|
68
|
+
}
|
|
69
|
+
async upsertSplitInvoiceForAdmin(payload, param) {
|
|
70
|
+
return this.amqpManager.call('관리자용 분할 송장 등록/수정', 'purchased-info-admin.upsert.split-invoice', payload, param, { isErrorThrowing: true });
|
|
71
|
+
}
|
|
72
|
+
async deleteSplitInvoiceForAdmin(payload, param) {
|
|
73
|
+
return this.amqpManager.call('관리자용 분할 송장 삭제', 'purchased-info-admin.delete.split-invoice', payload, param, { isErrorThrowing: true });
|
|
74
|
+
}
|
|
60
75
|
};
|
|
61
76
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService;
|
|
62
77
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService = __decorate([
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { UpsertSplitInvoicePayload, RegisterSplitInvoiceBulkPayload, RegisterSplitInvoiceBulkResult } from '../../dto/purchased-info.modules/purchased-info-split-delivery';
|
|
4
|
+
export declare class AmqpPurchasedInfoSplitDeliveryService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
/** 분할 송장 등록/수정 */
|
|
9
|
+
upsertSplitInvoice(payload: UpsertSplitInvoicePayload, param: AbstractParam): Promise<void>;
|
|
10
|
+
/** 엑셀 분할 송장 일괄 등록 */
|
|
11
|
+
registerSplitInvoiceBulk(payload: RegisterSplitInvoiceBulkPayload, param: AbstractParam): Promise<RegisterSplitInvoiceBulkResult>;
|
|
12
|
+
}
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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.AmqpPurchasedInfoSplitDeliveryService = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* @author sj
|
|
18
|
+
* @description 셀러용 분할 송장 AMQP 서비스
|
|
19
|
+
* @process order-server의 purchased-info-split-delivery 모듈과 통신
|
|
20
|
+
*/
|
|
21
|
+
const common_1 = require("@nestjs/common");
|
|
22
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
23
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
24
|
+
let AmqpPurchasedInfoSplitDeliveryService = class AmqpPurchasedInfoSplitDeliveryService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
/** 분할 송장 등록/수정 */
|
|
30
|
+
async upsertSplitInvoice(payload, param) {
|
|
31
|
+
return this.amqpManager.call('분할 송장 등록/수정', 'purchased-info-split-delivery.upsert.invoice', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
/** 엑셀 분할 송장 일괄 등록 */
|
|
34
|
+
async registerSplitInvoiceBulk(payload, param) {
|
|
35
|
+
return this.amqpManager.call('엑셀 분할 송장 일괄 등록', 'purchased-info-split-delivery.register.invoice-bulk', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.AmqpPurchasedInfoSplitDeliveryService = AmqpPurchasedInfoSplitDeliveryService;
|
|
39
|
+
exports.AmqpPurchasedInfoSplitDeliveryService = AmqpPurchasedInfoSplitDeliveryService = __decorate([
|
|
40
|
+
(0, common_1.Injectable)(),
|
|
41
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
42
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
43
|
+
], AmqpPurchasedInfoSplitDeliveryService);
|
|
@@ -3,3 +3,4 @@ export * from './amqp.purchased-info-analytics-aggregation.service';
|
|
|
3
3
|
export * from './amqp.purchased-info-coupon.service';
|
|
4
4
|
export * from './amqp.purchased-info-sabang.service';
|
|
5
5
|
export * from './amqp.purchased-info-reservation.service';
|
|
6
|
+
export * from './amqp.purchased-info-split-delivery.service';
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./amqp.purchased-info-analytics-aggregation.service"), exp
|
|
|
19
19
|
__exportStar(require("./amqp.purchased-info-coupon.service"), exports);
|
|
20
20
|
__exportStar(require("./amqp.purchased-info-sabang.service"), exports);
|
|
21
21
|
__exportStar(require("./amqp.purchased-info-reservation.service"), exports);
|
|
22
|
+
__exportStar(require("./amqp.purchased-info-split-delivery.service"), exports);
|
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.71-sj1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nestjs/common": "^10.3.10",
|
|
21
21
|
"@yolo-croket-dev/core": "^1.9.3",
|
|
22
|
-
"@yolo-croket-dev/domain": "^0.2.
|
|
22
|
+
"@yolo-croket-dev/domain": "^0.2.29-sj",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.2.15",
|
|
24
|
-
"@yolo-croket-dev/entity": "^0.2.
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.2.
|
|
24
|
+
"@yolo-croket-dev/entity": "^0.2.68-sj",
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "0.2.136-sj",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -37,5 +37,7 @@ export declare enum CreatePartialRefundErrorTypeEnum {
|
|
|
37
37
|
/** @description 반품비가 오버됨 */
|
|
38
38
|
LIMIT_OVER_RETURN_FEE = "LIMIT_OVER_RETURN_FEE",
|
|
39
39
|
/** @description 환불사유 기타 누락 */
|
|
40
|
-
REFUND_REASON_ETC_EMPTY = "REFUND_REASON_ETC_EMPTY"
|
|
40
|
+
REFUND_REASON_ETC_EMPTY = "REFUND_REASON_ETC_EMPTY",
|
|
41
|
+
/** @description 분할 배송 건은 부분환불 신청 불가 */
|
|
42
|
+
SPLIT_DELIVERY_NOT_ALLOWED = "SPLIT_DELIVERY_NOT_ALLOWED"
|
|
41
43
|
}
|
|
@@ -99,4 +99,6 @@ var CreatePartialRefundErrorTypeEnum;
|
|
|
99
99
|
CreatePartialRefundErrorTypeEnum["LIMIT_OVER_RETURN_FEE"] = "LIMIT_OVER_RETURN_FEE";
|
|
100
100
|
/** @description 환불사유 기타 누락 */
|
|
101
101
|
CreatePartialRefundErrorTypeEnum["REFUND_REASON_ETC_EMPTY"] = "REFUND_REASON_ETC_EMPTY";
|
|
102
|
+
/** @description 분할 배송 건은 부분환불 신청 불가 */
|
|
103
|
+
CreatePartialRefundErrorTypeEnum["SPLIT_DELIVERY_NOT_ALLOWED"] = "SPLIT_DELIVERY_NOT_ALLOWED";
|
|
102
104
|
})(CreatePartialRefundErrorTypeEnum || (exports.CreatePartialRefundErrorTypeEnum = CreatePartialRefundErrorTypeEnum = {}));
|
|
@@ -12,3 +12,4 @@ export * from './redis-db.app-batch-push.set-data-auto-change-waiting-receive-pr
|
|
|
12
12
|
export * from './delete-app-batch-push-data-by-key.dto';
|
|
13
13
|
export * from './redis-db.app-batch-push.set-data-change-purchased-options.dto';
|
|
14
14
|
export * from './set-list-redis-db.dto';
|
|
15
|
+
export * from './redis-db.app-batch-push.set-data-split-delivery-shipping.dto';
|
|
@@ -28,3 +28,4 @@ __exportStar(require("./redis-db.app-batch-push.set-data-auto-change-waiting-rec
|
|
|
28
28
|
__exportStar(require("./delete-app-batch-push-data-by-key.dto"), exports);
|
|
29
29
|
__exportStar(require("./redis-db.app-batch-push.set-data-change-purchased-options.dto"), exports);
|
|
30
30
|
__exportStar(require("./set-list-redis-db.dto"), exports);
|
|
31
|
+
__exportStar(require("./redis-db.app-batch-push.set-data-split-delivery-shipping.dto"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare class SplitDeliveryShippingActivityData {
|
|
2
|
+
otherUserId: string;
|
|
3
|
+
relatePInfoId: string;
|
|
4
|
+
previewImg?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SetDataSplitDeliveryShippingAppBatchPushData {
|
|
7
|
+
purchaseReceiptId?: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
itemName: string;
|
|
10
|
+
isAbroadShipping: boolean;
|
|
11
|
+
activityData: SplitDeliveryShippingActivityData;
|
|
12
|
+
/** modify 시 PInfoId 추가 */
|
|
13
|
+
PInfoId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class SetDataSplitDeliveryShippingAppBatchPushPayload {
|
|
16
|
+
data: SetDataSplitDeliveryShippingAppBatchPushData;
|
|
17
|
+
ttl: number;
|
|
18
|
+
}
|
|
19
|
+
export interface SetDataSplitDeliveryShippingAppBatchPushResult {
|
|
20
|
+
result: string | null;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
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.SetDataSplitDeliveryShippingAppBatchPushPayload = exports.SetDataSplitDeliveryShippingAppBatchPushData = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class SplitDeliveryShippingActivityData {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SplitDeliveryShippingActivityData.prototype, "otherUserId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsMongoId)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SplitDeliveryShippingActivityData.prototype, "relatePInfoId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SplitDeliveryShippingActivityData.prototype, "previewImg", void 0);
|
|
30
|
+
class SetDataSplitDeliveryShippingAppBatchPushData {
|
|
31
|
+
}
|
|
32
|
+
exports.SetDataSplitDeliveryShippingAppBatchPushData = SetDataSplitDeliveryShippingAppBatchPushData;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsMongoId)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SetDataSplitDeliveryShippingAppBatchPushData.prototype, "purchaseReceiptId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsMongoId)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], SetDataSplitDeliveryShippingAppBatchPushData.prototype, "userId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], SetDataSplitDeliveryShippingAppBatchPushData.prototype, "itemName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsBoolean)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], SetDataSplitDeliveryShippingAppBatchPushData.prototype, "isAbroadShipping", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsObject)(),
|
|
52
|
+
(0, class_validator_1.ValidateNested)({}),
|
|
53
|
+
(0, class_transformer_1.Type)(() => SplitDeliveryShippingActivityData),
|
|
54
|
+
__metadata("design:type", SplitDeliveryShippingActivityData)
|
|
55
|
+
], SetDataSplitDeliveryShippingAppBatchPushData.prototype, "activityData", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsMongoId)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], SetDataSplitDeliveryShippingAppBatchPushData.prototype, "PInfoId", void 0);
|
|
61
|
+
class SetDataSplitDeliveryShippingAppBatchPushPayload {
|
|
62
|
+
}
|
|
63
|
+
exports.SetDataSplitDeliveryShippingAppBatchPushPayload = SetDataSplitDeliveryShippingAppBatchPushPayload;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsObject)(),
|
|
66
|
+
(0, class_validator_1.ValidateNested)({}),
|
|
67
|
+
(0, class_transformer_1.Type)(() => SetDataSplitDeliveryShippingAppBatchPushData),
|
|
68
|
+
__metadata("design:type", SetDataSplitDeliveryShippingAppBatchPushData)
|
|
69
|
+
], SetDataSplitDeliveryShippingAppBatchPushPayload.prototype, "data", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsNumber)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], SetDataSplitDeliveryShippingAppBatchPushPayload.prototype, "ttl", void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { DeleteAppBatchPushDataByKeyPayload, DeleteAppBatchPushDataByKeyResult, GetAppBatchPushDataByKeyPayload, GetAppBatchPushDataByKeyResult, GetAppBatchPushKeysResult, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushPayload, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushResult, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushPayload, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushResult, SetDataAutoRecieveToBuyerMethodAppBatchPushPayload, SetDataAutoRecieveToBuyerMethodAppBatchPushResult, SetDataChangePurchasedOptionsMethodAppBatchPushPayload, SetDataChangePurchasedOptionsMethodAppBatchPushResult, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushPayload, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushResult, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushPayload, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushResult, SetDataStoreRefundToBuyerMethodAppBatchPushPayload, SetDataStoreRefundToBuyerMethodAppBatchPushResult, SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload, SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushResult } from '../../dto/redis-db';
|
|
3
|
+
import { DeleteAppBatchPushDataByKeyPayload, DeleteAppBatchPushDataByKeyResult, GetAppBatchPushDataByKeyPayload, GetAppBatchPushDataByKeyResult, GetAppBatchPushKeysResult, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushPayload, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushResult, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushPayload, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushResult, SetDataAutoRecieveToBuyerMethodAppBatchPushPayload, SetDataAutoRecieveToBuyerMethodAppBatchPushResult, SetDataChangePurchasedOptionsMethodAppBatchPushPayload, SetDataChangePurchasedOptionsMethodAppBatchPushResult, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushPayload, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushResult, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushPayload, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushResult, SetDataStoreRefundToBuyerMethodAppBatchPushPayload, SetDataStoreRefundToBuyerMethodAppBatchPushResult, SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload, SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushResult, SetDataSplitDeliveryShippingAppBatchPushPayload, SetDataSplitDeliveryShippingAppBatchPushResult } from '../../dto/redis-db';
|
|
4
4
|
export declare class AmqpRedisDbAppBatchPushService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -20,4 +20,19 @@ export declare class AmqpRedisDbAppBatchPushService {
|
|
|
20
20
|
* @pattern redis-db.set-data.app-batch-push-accept-waiting-order-to-buyer-method
|
|
21
21
|
*/
|
|
22
22
|
setDataAcceptWaitingOrderToBuyerMethod(payload: SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload, param: AbstractParam): Promise<SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushResult>;
|
|
23
|
+
/**
|
|
24
|
+
* @description 분할 배송 부분 발송 알림
|
|
25
|
+
* @pattern redis-db.set-data.app-batch-push-split-delivery-partial-shipping
|
|
26
|
+
*/
|
|
27
|
+
setDataSplitDeliveryPartialShipping(payload: SetDataSplitDeliveryShippingAppBatchPushPayload, param: AbstractParam): Promise<SetDataSplitDeliveryShippingAppBatchPushResult>;
|
|
28
|
+
/**
|
|
29
|
+
* @description 분할 배송 전체 발송 완료 알림
|
|
30
|
+
* @pattern redis-db.set-data.app-batch-push-split-delivery-complete-shipping
|
|
31
|
+
*/
|
|
32
|
+
setDataSplitDeliveryCompleteShipping(payload: SetDataSplitDeliveryShippingAppBatchPushPayload, param: AbstractParam): Promise<SetDataSplitDeliveryShippingAppBatchPushResult>;
|
|
33
|
+
/**
|
|
34
|
+
* @description 분할 배송 송장 수정 알림
|
|
35
|
+
* @pattern redis-db.set-data.app-batch-push-split-delivery-modify-shipping
|
|
36
|
+
*/
|
|
37
|
+
setDataSplitDeliveryModifyShipping(payload: SetDataSplitDeliveryShippingAppBatchPushPayload, param: AbstractParam): Promise<SetDataSplitDeliveryShippingAppBatchPushResult>;
|
|
23
38
|
}
|
|
@@ -58,6 +58,27 @@ let AmqpRedisDbAppBatchPushService = class AmqpRedisDbAppBatchPushService {
|
|
|
58
58
|
async setDataAcceptWaitingOrderToBuyerMethod(payload, param) {
|
|
59
59
|
return this.amqpManager.call('redis에 acceptWaitingOrderToBuyer method 등록 및 수정', 'redis-db.set-data.app-batch-push-accept-waiting-order-to-buyer-method', payload, param, { isErrorThrowing: true });
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @description 분할 배송 부분 발송 알림
|
|
63
|
+
* @pattern redis-db.set-data.app-batch-push-split-delivery-partial-shipping
|
|
64
|
+
*/
|
|
65
|
+
async setDataSplitDeliveryPartialShipping(payload, param) {
|
|
66
|
+
return this.amqpManager.call('redis에 splitDeliveryPartialShipping method 등록 및 수정', 'redis-db.set-data.app-batch-push-split-delivery-partial-shipping', payload, param, { isErrorThrowing: true });
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @description 분할 배송 전체 발송 완료 알림
|
|
70
|
+
* @pattern redis-db.set-data.app-batch-push-split-delivery-complete-shipping
|
|
71
|
+
*/
|
|
72
|
+
async setDataSplitDeliveryCompleteShipping(payload, param) {
|
|
73
|
+
return this.amqpManager.call('redis에 splitDeliveryCompleteShipping method 등록 및 수정', 'redis-db.set-data.app-batch-push-split-delivery-complete-shipping', payload, param, { isErrorThrowing: true });
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @description 분할 배송 송장 수정 알림
|
|
77
|
+
* @pattern redis-db.set-data.app-batch-push-split-delivery-modify-shipping
|
|
78
|
+
*/
|
|
79
|
+
async setDataSplitDeliveryModifyShipping(payload, param) {
|
|
80
|
+
return this.amqpManager.call('redis에 splitDeliveryModifyShipping method 등록 및 수정', 'redis-db.set-data.app-batch-push-split-delivery-modify-shipping', payload, param, { isErrorThrowing: true });
|
|
81
|
+
}
|
|
61
82
|
};
|
|
62
83
|
exports.AmqpRedisDbAppBatchPushService = AmqpRedisDbAppBatchPushService;
|
|
63
84
|
exports.AmqpRedisDbAppBatchPushService = AmqpRedisDbAppBatchPushService = __decorate([
|