@yolo-croket-dev/amqp-access 0.7.387 → 0.7.388-beta.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/order-server/dto/buyma-order/command/buyma-order.dto.d.ts +6 -2
- package/order-server/dto/buyma-order/command/buyma-order.dto.js +16 -2
- package/order-server/dto/buyma-order/query/buyma-order.dto.d.ts +7 -0
- package/package.json +2 -2
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/user-service/services/amqp.signup-certification.service.d.ts +1 -0
- package/user-service/services/amqp.signup-certification.service.js +2 -0
- package/user-service/services/amqp.store-business.service.d.ts +4 -1
- package/user-service/services/amqp.store-business.service.js +7 -0
|
@@ -63,12 +63,15 @@ export declare class BuymaOrderCommandPayload {
|
|
|
63
63
|
expectedRevision: number;
|
|
64
64
|
/** Gateway가 인증된 관리자에서 채운다. HTTP body의 값은 사용하지 않는다. */
|
|
65
65
|
actorId: string;
|
|
66
|
-
|
|
66
|
+
/** 상태 선택은 서버가 변경 내용을 자동 기록한다. 다른 업무의 근거 요구는 서비스가 검증한다. */
|
|
67
|
+
reason?: string;
|
|
67
68
|
}
|
|
68
69
|
export declare class UpdateBuymaOrderPayload extends BuymaOrderCommandPayload {
|
|
69
70
|
fields: BuymaManualFieldsPayload;
|
|
70
71
|
}
|
|
71
72
|
export declare class ConfirmBuymaPaymentPayload extends BuymaOrderCommandPayload {
|
|
73
|
+
operation?: 'CONFIRM' | 'REVOKE';
|
|
74
|
+
confirmationEventId?: string;
|
|
72
75
|
paidAt?: string | null;
|
|
73
76
|
}
|
|
74
77
|
export declare class ConnectBuymaProcurementPayload extends BuymaOrderCommandPayload {
|
|
@@ -84,7 +87,8 @@ export declare class ConnectBuymaProcurementPayload extends BuymaOrderCommandPay
|
|
|
84
87
|
purchaseCost?: BuymaMoneyPayload | null;
|
|
85
88
|
}
|
|
86
89
|
export declare class ChangeBuymaOrderStatusPayload extends BuymaOrderCommandPayload {
|
|
87
|
-
orderStatus:
|
|
90
|
+
orderStatus: BuymaOrderStatus;
|
|
91
|
+
/** 이전 클라이언트 호환용. 상태 선택은 별도 수량 확인 없이 기록한다. */
|
|
88
92
|
fullQuantityDelivered?: boolean;
|
|
89
93
|
deliveredAt?: string | null;
|
|
90
94
|
}
|
|
@@ -324,6 +324,7 @@ __decorate([
|
|
|
324
324
|
__metadata("design:type", String)
|
|
325
325
|
], BuymaOrderCommandPayload.prototype, "actorId", void 0);
|
|
326
326
|
__decorate([
|
|
327
|
+
(0, class_validator_1.IsOptional)(),
|
|
327
328
|
(0, class_validator_1.IsString)(),
|
|
328
329
|
(0, class_validator_1.MaxLength)(2000),
|
|
329
330
|
__metadata("design:type", String)
|
|
@@ -340,6 +341,19 @@ __decorate([
|
|
|
340
341
|
class ConfirmBuymaPaymentPayload extends BuymaOrderCommandPayload {
|
|
341
342
|
}
|
|
342
343
|
exports.ConfirmBuymaPaymentPayload = ConfirmBuymaPaymentPayload;
|
|
344
|
+
__decorate([
|
|
345
|
+
(0, class_validator_1.IsOptional)(),
|
|
346
|
+
(0, class_validator_1.IsIn)([
|
|
347
|
+
'CONFIRM',
|
|
348
|
+
'REVOKE',
|
|
349
|
+
]),
|
|
350
|
+
__metadata("design:type", String)
|
|
351
|
+
], ConfirmBuymaPaymentPayload.prototype, "operation", void 0);
|
|
352
|
+
__decorate([
|
|
353
|
+
(0, class_validator_1.IsOptional)(),
|
|
354
|
+
(0, class_validator_1.IsMongoId)(),
|
|
355
|
+
__metadata("design:type", String)
|
|
356
|
+
], ConfirmBuymaPaymentPayload.prototype, "confirmationEventId", void 0);
|
|
343
357
|
__decorate([
|
|
344
358
|
(0, class_validator_1.IsOptional)(),
|
|
345
359
|
(0, class_validator_1.IsString)(),
|
|
@@ -411,8 +425,8 @@ class ChangeBuymaOrderStatusPayload extends BuymaOrderCommandPayload {
|
|
|
411
425
|
}
|
|
412
426
|
exports.ChangeBuymaOrderStatusPayload = ChangeBuymaOrderStatusPayload;
|
|
413
427
|
__decorate([
|
|
414
|
-
(0, class_validator_1.IsIn)(entity_v2_1.BUYMA_ORDER_STATUSES
|
|
415
|
-
__metadata("design:type",
|
|
428
|
+
(0, class_validator_1.IsIn)(entity_v2_1.BUYMA_ORDER_STATUSES),
|
|
429
|
+
__metadata("design:type", String)
|
|
416
430
|
], ChangeBuymaOrderStatusPayload.prototype, "orderStatus", void 0);
|
|
417
431
|
__decorate([
|
|
418
432
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -63,6 +63,13 @@ export interface BuymaSharedProcurementOrder extends Pick<BuymaOrderEntity, '_id
|
|
|
63
63
|
procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'allocationStatus' | 'croketOptionName'> | null;
|
|
64
64
|
}
|
|
65
65
|
export interface GetBuymaOrderResult {
|
|
66
|
+
/** 수기 확인 전후 기록으로 계산하는 취소 가능 여부. 주문에 저장하지 않는다. */
|
|
67
|
+
paymentConfirmationReversal?: {
|
|
68
|
+
eventId: string | null;
|
|
69
|
+
previousStatus: 'PENDING_PAYMENT' | 'UNVERIFIED' | null;
|
|
70
|
+
canRevoke: boolean;
|
|
71
|
+
blockedReason: string | null;
|
|
72
|
+
} | null;
|
|
66
73
|
/** 조회 시 연결된 Croket 구매 건에서 읽은 process. 주문에 저장하지 않는다. */
|
|
67
74
|
croketPurchaseProcess?: string | null;
|
|
68
75
|
/** 활성 크로켓 연결이 없으면 null. 연결 원천이 없으면 객체의 각 값이 null이다. */
|
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.388-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nestjs/mapped-types": "2.0.2",
|
|
23
23
|
"@yolo-croket-dev/core": "1.10.2",
|
|
24
24
|
"@yolo-croket-dev/domain": "0.2.50",
|
|
25
|
-
"@yolo-croket-dev/dto-v2": "0.2.35",
|
|
25
|
+
"@yolo-croket-dev/dto-v2": "0.2.35-beta.1",
|
|
26
26
|
"@yolo-croket-dev/entity": "0.2.110",
|
|
27
27
|
"@yolo-croket-dev/entity-v2": "0.3.61",
|
|
28
28
|
"class-transformer": "^0.5.1",
|
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" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").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: {
|
|
@@ -10,5 +10,6 @@ export declare class AmqpSignupCertificationService {
|
|
|
10
10
|
private readonly client;
|
|
11
11
|
private readonly amqpManager;
|
|
12
12
|
constructor(client: ClientProxy);
|
|
13
|
+
/** @param payload - 가입 인증 귀속 요청. @param param - 기존 인증·추적 문맥. @returns 발행된 계약과 동일한 귀속 결과. */
|
|
13
14
|
claim(payload: ClaimSignupCertificationPayload, param: AbstractParam): Promise<ClaimSignupCertificationResult>;
|
|
14
15
|
}
|
|
@@ -13,6 +13,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.AmqpSignupCertificationService = void 0;
|
|
16
|
+
/** @author jun @description 기존 발행본의 가입 인증 client 원본 복구. @process amqp-access 0.7.387의 공개 경로와 호출 동작을 유지한다. */
|
|
16
17
|
const common_1 = require("@nestjs/common");
|
|
17
18
|
const microservices_1 = require("@nestjs/microservices");
|
|
18
19
|
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
@@ -26,6 +27,7 @@ let AmqpSignupCertificationService = class AmqpSignupCertificationService {
|
|
|
26
27
|
this.client = client;
|
|
27
28
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
29
|
}
|
|
30
|
+
/** @param payload - 가입 인증 귀속 요청. @param param - 기존 인증·추적 문맥. @returns 발행된 계약과 동일한 귀속 결과. */
|
|
29
31
|
async claim(payload, param) {
|
|
30
32
|
return this.amqpManager.call('가입 전 본인인증 사용자 귀속', 'signup-certification.claim', payload, param, { isErrorThrowing: true });
|
|
31
33
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
|
|
3
|
-
|
|
3
|
+
/** @author jun @description 사업자정보 RPC client. @process 공용 계약과 추적 정보를 user-service로 전달한다. */
|
|
4
|
+
import { GetZeroRateVatSellersPayload, GetZeroRateVatSellersResult, GetStoreBusinessTaxBillingRequiredSellersPayload } from '@yolo-croket-dev/dto-v2/user-service/store/business-info/query';
|
|
4
5
|
import { GetStoreBusinessInfoChangeHistoryPayload, GetStoreBusinessInfoChangeHistoryResult } from '../dto/store-business';
|
|
5
6
|
export declare class AmqpStoreBusinessService {
|
|
6
7
|
private readonly client;
|
|
7
8
|
private readonly amqpManager;
|
|
8
9
|
constructor(client: ClientProxy);
|
|
10
|
+
/** @description 결산 영세율 셀러 JSON을 조회한다. @param payload 한국 날짜 범위 @param param 요청 문맥 @returns 셀러와 확인 필요 목록 */
|
|
11
|
+
getZeroRateVatSellers(payload: GetZeroRateVatSellersPayload, param: AbstractParam): Promise<GetZeroRateVatSellersResult>;
|
|
9
12
|
getStoreBusinessTaxBillingRequiredSellers(payload: GetStoreBusinessTaxBillingRequiredSellersPayload, param: AbstractParam): Promise<any>;
|
|
10
13
|
getStoreBusinessInfoChangeHistory(payload: GetStoreBusinessInfoChangeHistoryPayload, param: AbstractParam): Promise<GetStoreBusinessInfoChangeHistoryResult>;
|
|
11
14
|
}
|
|
@@ -21,6 +21,13 @@ let AmqpStoreBusinessService = class AmqpStoreBusinessService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
+
/** @description 결산 영세율 셀러 JSON을 조회한다. @param payload 한국 날짜 범위 @param param 요청 문맥 @returns 셀러와 확인 필요 목록 */
|
|
25
|
+
async getZeroRateVatSellers(payload, param) {
|
|
26
|
+
return this.amqpManager.call('getZeroRateVatSellers', 'store-business.get.zero-rate-vat-sellers', payload, {
|
|
27
|
+
...param,
|
|
28
|
+
timeout: 200000,
|
|
29
|
+
}, { isErrorThrowing: true });
|
|
30
|
+
}
|
|
24
31
|
async getStoreBusinessTaxBillingRequiredSellers(payload, param) {
|
|
25
32
|
return this.amqpManager.call('getStoreBusinessTaxBillingRequiredSellers', 'store-business.get.tax-billing-required-sellers', payload, param, { isErrorThrowing: true });
|
|
26
33
|
}
|