@yolo-croket-dev/amqp-access 0.7.47-jun.4 → 0.7.47-jun.41
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/.claude/settings.local.json +11 -0
- package/order-server/amqp.order-server.module.js +6 -0
- package/order-server/dto/index.d.ts +1 -0
- package/order-server/dto/index.js +1 -0
- package/order-server/dto/nicepay/command/index.d.ts +2 -0
- package/order-server/dto/nicepay/command/index.js +18 -0
- package/order-server/dto/nicepay/command/issue-billing-key.dto.d.ts +33 -0
- package/order-server/dto/nicepay/command/issue-billing-key.dto.js +51 -0
- package/order-server/dto/nicepay/command/register-billing-card.dto.d.ts +29 -0
- package/order-server/dto/nicepay/command/register-billing-card.dto.js +41 -0
- package/order-server/dto/nicepay/index.d.ts +2 -0
- package/order-server/dto/nicepay/index.js +18 -0
- package/order-server/dto/nicepay/query/get-nicepay-billing-auth-form.dto.d.ts +23 -0
- package/order-server/dto/nicepay/query/get-nicepay-billing-auth-form.dto.js +15 -0
- package/order-server/dto/nicepay/query/index.d.ts +1 -0
- package/order-server/dto/nicepay/query/index.js +17 -0
- package/order-server/dto/pay-try-log.modules/index.d.ts +1 -0
- package/order-server/dto/pay-try-log.modules/index.js +17 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/approve-reservation-billing-payment-bulk.dto.d.ts +21 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/approve-reservation-billing-payment-bulk.dto.js +26 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/index.d.ts +4 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/index.js +20 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/update-issued-coupon-reservation.dto.d.ts +5 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/update-issued-coupon-reservation.dto.js +30 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-after.dto.d.ts +68 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-after.dto.js +132 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-done.dto.d.ts +40 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-done.dto.js +63 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-init.dto.d.ts +58 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/command/write-store-item-reservation-pay-try-log-init.dto.js +106 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/index.d.ts +1 -0
- package/order-server/dto/pay-try-log.modules/pay-try-log-reservation/index.js +17 -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-reservation/command/approve-reservation-billing-payment-bulk.dto.d.ts +21 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/approve-reservation-billing-payment-bulk.dto.js +26 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-admin-bulk.dto.d.ts +13 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-admin-bulk.dto.js +29 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-admin.dto.d.ts +6 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-admin.dto.js +26 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-buyer.dto.d.ts +10 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/cancel-reservation-by-buyer.dto.js +21 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/index.d.ts +4 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/index.js +20 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/index.js +17 -0
- package/order-server/dto/user-card-billing/command/delete-user-card-billing.dto.d.ts +7 -0
- package/order-server/dto/user-card-billing/command/delete-user-card-billing.dto.js +24 -0
- package/order-server/dto/user-card-billing/command/index.d.ts +2 -0
- package/order-server/dto/user-card-billing/command/index.js +18 -0
- package/order-server/dto/user-card-billing/command/register-user-card-billing.dto.d.ts +16 -0
- package/order-server/dto/user-card-billing/command/register-user-card-billing.dto.js +44 -0
- package/order-server/dto/user-card-billing/index.d.ts +2 -0
- package/order-server/dto/user-card-billing/index.js +18 -0
- package/order-server/dto/user-card-billing/query/get-user-card-billing-list.dto.d.ts +19 -0
- package/order-server/dto/user-card-billing/query/get-user-card-billing-list.dto.js +33 -0
- package/order-server/dto/user-card-billing/query/index.d.ts +1 -0
- package/order-server/dto/user-card-billing/query/index.js +17 -0
- package/order-server/services/amqp.nicepay.service.d.ts +19 -0
- package/order-server/services/amqp.nicepay.service.js +47 -0
- package/order-server/services/amqp.pay-try-log-reservation.service.d.ts +21 -0
- package/order-server/services/amqp.pay-try-log-reservation.service.js +55 -0
- package/order-server/services/amqp.user-card-billing.service.d.ts +19 -0
- package/order-server/services/amqp.user-card-billing.service.js +47 -0
- package/order-server/services/index.d.ts +3 -0
- package/order-server/services/index.js +3 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts +16 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js +51 -0
- package/order-server/services/purchased-info.modules/index.d.ts +1 -1
- package/order-server/services/purchased-info.modules/index.js +1 -1
- package/package.json +3 -3
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/store-item-server/dto/reservation-store-item/command/index.d.ts +5 -0
- package/store-item-server/dto/reservation-store-item/command/index.js +5 -0
- package/store-item-server/dto/reservation-store-item/command/update-reservation-item-selling.dto.d.ts +4 -0
- package/store-item-server/dto/reservation-store-item/command/update-reservation-item-selling.dto.js +24 -0
- package/store-item-server/dto/reservation-store-item/command/update-reservation-period.dto.d.ts +5 -0
- package/store-item-server/dto/reservation-store-item/command/update-reservation-period.dto.js +28 -0
- package/store-item-server/dto/reservation-store-item/command/update-shipping-period.dto.d.ts +5 -0
- package/store-item-server/dto/reservation-store-item/command/update-shipping-period.dto.js +28 -0
- package/store-item-server/dto/reservation-store-item/command/update-stock-mode.dto.d.ts +6 -0
- package/store-item-server/dto/reservation-store-item/command/update-stock-mode.dto.js +30 -0
- package/store-item-server/dto/reservation-store-item/command/update-stock-securing-period.dto.d.ts +5 -0
- package/store-item-server/dto/reservation-store-item/command/update-stock-securing-period.dto.js +28 -0
- package/store-item-server/dto/reservation-store-item/query/get-reservation-item-detail-for-admin.dto.d.ts +52 -0
- package/store-item-server/dto/reservation-store-item/query/get-reservation-item-detail-for-admin.dto.js +43 -0
- package/store-item-server/dto/reservation-store-item/query/get-reservation-items-for-admin.dto.d.ts +5 -1
- package/store-item-server/dto/reservation-store-item/query/index.d.ts +1 -0
- package/store-item-server/dto/reservation-store-item/query/index.js +1 -0
- package/store-item-server/services/amqp.reservation-store-item.service.d.ts +13 -1
- package/store-item-server/services/amqp.reservation-store-item.service.js +24 -0
|
@@ -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("./command"), exports);
|
|
18
|
+
__exportStar(require("./query"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UserCardBillingEntity } from '@yolo-croket-dev/entity-v2/user';
|
|
2
|
+
/**
|
|
3
|
+
* @description 유저 카드 정보 목록 조회 요청 Payload
|
|
4
|
+
*/
|
|
5
|
+
export declare class GetUserCardBillingListPayload {
|
|
6
|
+
/** 페이지 번호 */
|
|
7
|
+
page: number;
|
|
8
|
+
/** 페이지당 개수 */
|
|
9
|
+
limit: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @description 유저 카드 정보 목록 조회 응답 Result
|
|
13
|
+
*/
|
|
14
|
+
export declare class GetUserCardBillingListResult {
|
|
15
|
+
/** 유저 카드 빌링 정보 목록 */
|
|
16
|
+
userCardBilling: UserCardBillingEntity[];
|
|
17
|
+
/** 전체 개수 */
|
|
18
|
+
allCount: number;
|
|
19
|
+
}
|
|
@@ -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.GetUserCardBillingListResult = exports.GetUserCardBillingListPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @description 유저 카드 정보 목록 조회 요청 Payload
|
|
16
|
+
*/
|
|
17
|
+
class GetUserCardBillingListPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.GetUserCardBillingListPayload = GetUserCardBillingListPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsNumber)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], GetUserCardBillingListPayload.prototype, "page", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], GetUserCardBillingListPayload.prototype, "limit", void 0);
|
|
28
|
+
/**
|
|
29
|
+
* @description 유저 카드 정보 목록 조회 응답 Result
|
|
30
|
+
*/
|
|
31
|
+
class GetUserCardBillingListResult {
|
|
32
|
+
}
|
|
33
|
+
exports.GetUserCardBillingListResult = GetUserCardBillingListResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-user-card-billing-list.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("./get-user-card-billing-list.dto"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult, RegisterBillingCardPayload, RegisterBillingCardResult } from '../dto/nicepay';
|
|
4
|
+
/**
|
|
5
|
+
* @author jun
|
|
6
|
+
* @description NicePay 관련 AMQP 서비스
|
|
7
|
+
* @process order-server의 nicepay 컨트롤러와 RabbitMQ를 통해 통신
|
|
8
|
+
*/
|
|
9
|
+
export declare class AmqpNicepayService {
|
|
10
|
+
private readonly client;
|
|
11
|
+
private readonly amqpManager;
|
|
12
|
+
constructor(client: ClientProxy);
|
|
13
|
+
/** NicePay 빌키 발급 인증창 form 데이터 조회 */
|
|
14
|
+
getNicepayBillingAuthForm(payload: GetNicepayBillingAuthFormPayload, param: AbstractParam): Promise<GetNicepayBillingAuthFormResult>;
|
|
15
|
+
/** NicePay 빌링키 발급(인증) */
|
|
16
|
+
issueBillingKey(payload: IssueBillingKeyPayload, param: AbstractParam): Promise<IssueBillingKeyResult>;
|
|
17
|
+
/** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
|
|
18
|
+
registerBillingCard(payload: RegisterBillingCardPayload, param: AbstractParam): Promise<RegisterBillingCardResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.AmqpNicepayService = 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
|
+
/**
|
|
20
|
+
* @author jun
|
|
21
|
+
* @description NicePay 관련 AMQP 서비스
|
|
22
|
+
* @process order-server의 nicepay 컨트롤러와 RabbitMQ를 통해 통신
|
|
23
|
+
*/
|
|
24
|
+
let AmqpNicepayService = class AmqpNicepayService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
/** NicePay 빌키 발급 인증창 form 데이터 조회 */
|
|
30
|
+
async getNicepayBillingAuthForm(payload, param) {
|
|
31
|
+
return this.amqpManager.call('NicePay 빌키 발급 인증창 form 데이터 조회', 'nicepay.get.billing-auth-form', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
/** NicePay 빌링키 발급(인증) */
|
|
34
|
+
async issueBillingKey(payload, param) {
|
|
35
|
+
return this.amqpManager.call('NicePay 빌링키 발급', 'nicepay.issue.billing-key', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
37
|
+
/** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
|
|
38
|
+
async registerBillingCard(payload, param) {
|
|
39
|
+
return this.amqpManager.call('NicePay 빌링키 발급 + 유저 카드 등록', 'nicepay.register.billing-card', payload, param, { isErrorThrowing: true });
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.AmqpNicepayService = AmqpNicepayService;
|
|
43
|
+
exports.AmqpNicepayService = AmqpNicepayService = __decorate([
|
|
44
|
+
(0, common_1.Injectable)(),
|
|
45
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
46
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
47
|
+
], AmqpNicepayService);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { WriteStoreItemReservationPayTryLogInitPayload, WriteStoreItemReservationPayTryLogInitResult, WriteStoreItemReservationPayTryLogAfterPayload, WriteStoreItemReservationPayTryLogDonePayload, UpdateIssuedCouponReservationPayload } from '../dto/pay-try-log.modules/pay-try-log-reservation';
|
|
4
|
+
/**
|
|
5
|
+
* @author jun
|
|
6
|
+
* @description 예약 상품 결제 시도 로그 AMQP 서비스
|
|
7
|
+
* @process RabbitMQ를 통해 order-server의 예약 상품 결제 시도 로그 관련 메시지 패턴을 호출
|
|
8
|
+
*/
|
|
9
|
+
export declare class AmqpPayTryLogReservationService {
|
|
10
|
+
private readonly client;
|
|
11
|
+
private readonly amqpManager;
|
|
12
|
+
constructor(client: ClientProxy);
|
|
13
|
+
/** 예약 상품 결제 시도 로그 초기화 */
|
|
14
|
+
writeStoreItemReservationPayTryLogInit(payload: WriteStoreItemReservationPayTryLogInitPayload, param: AbstractParam): Promise<WriteStoreItemReservationPayTryLogInitResult>;
|
|
15
|
+
/** 예약 상품 결제 시도 로그 after 작성 */
|
|
16
|
+
writeStoreItemReservationPayTryLogAfter(payload: WriteStoreItemReservationPayTryLogAfterPayload, param: AbstractParam): Promise<void>;
|
|
17
|
+
/** 예약 상품 결제 시도 로그 완료 처리 */
|
|
18
|
+
writeStoreItemReservationPayTryLogDone(payload: WriteStoreItemReservationPayTryLogDonePayload, param: AbstractParam): Promise<void>;
|
|
19
|
+
/** 예약 상품 결제 사용할 쿠폰 적용 */
|
|
20
|
+
updateIssuedCouponReservation(payload: UpdateIssuedCouponReservationPayload, param: AbstractParam): Promise<void>;
|
|
21
|
+
}
|
|
@@ -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
|
+
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.AmqpPayTryLogReservationService = 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
|
+
/**
|
|
20
|
+
* @author jun
|
|
21
|
+
* @description 예약 상품 결제 시도 로그 AMQP 서비스
|
|
22
|
+
* @process RabbitMQ를 통해 order-server의 예약 상품 결제 시도 로그 관련 메시지 패턴을 호출
|
|
23
|
+
*/
|
|
24
|
+
let AmqpPayTryLogReservationService = class AmqpPayTryLogReservationService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
/** 예약 상품 결제 시도 로그 초기화 */
|
|
30
|
+
async writeStoreItemReservationPayTryLogInit(payload, param) {
|
|
31
|
+
// eslint-disable-next-line max-len
|
|
32
|
+
return this.amqpManager.call('예약 상품 결제 시도 로그 초기화', 'pay-try-log.create.store-item-reservation-init', payload, param, { isErrorThrowing: true });
|
|
33
|
+
}
|
|
34
|
+
/** 예약 상품 결제 시도 로그 after 작성 */
|
|
35
|
+
async writeStoreItemReservationPayTryLogAfter(payload, param) {
|
|
36
|
+
// eslint-disable-next-line max-len
|
|
37
|
+
return this.amqpManager.call('예약 상품 결제 시도 로그 after 작성', 'pay-try-log.create.store-item-reservation-after', payload, param, { isErrorThrowing: true });
|
|
38
|
+
}
|
|
39
|
+
/** 예약 상품 결제 시도 로그 완료 처리 */
|
|
40
|
+
async writeStoreItemReservationPayTryLogDone(payload, param) {
|
|
41
|
+
// eslint-disable-next-line max-len
|
|
42
|
+
return this.amqpManager.call('예약 상품 결제 시도 로그 완료 처리', 'pay-try-log.create.store-item-reservation-done', payload, param, { isErrorThrowing: true });
|
|
43
|
+
}
|
|
44
|
+
/** 예약 상품 결제 사용할 쿠폰 적용 */
|
|
45
|
+
async updateIssuedCouponReservation(payload, param) {
|
|
46
|
+
// eslint-disable-next-line max-len
|
|
47
|
+
return this.amqpManager.call('예약 상품 결제 사용할 쿠폰 적용', 'pay-try-log.update.issued-coupon-reservation', payload, param, { isErrorThrowing: true });
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.AmqpPayTryLogReservationService = AmqpPayTryLogReservationService;
|
|
51
|
+
exports.AmqpPayTryLogReservationService = AmqpPayTryLogReservationService = __decorate([
|
|
52
|
+
(0, common_1.Injectable)(),
|
|
53
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
54
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
55
|
+
], AmqpPayTryLogReservationService);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { RegisterUserCardBillingPayload, DeleteUserCardBillingPayload, GetUserCardBillingListPayload, GetUserCardBillingListResult } from '../dto/user-card-billing';
|
|
4
|
+
/**
|
|
5
|
+
* @author jun
|
|
6
|
+
* @description 유저 카드 빌링 정보 AMQP 서비스
|
|
7
|
+
* @process order-server의 user-card-billing 컨트롤러와 RabbitMQ를 통해 통신
|
|
8
|
+
*/
|
|
9
|
+
export declare class AmqpUserCardBillingService {
|
|
10
|
+
private readonly client;
|
|
11
|
+
private readonly amqpManager;
|
|
12
|
+
constructor(client: ClientProxy);
|
|
13
|
+
/** 유저 카드 정보 등록 */
|
|
14
|
+
registerUserCardBilling(payload: RegisterUserCardBillingPayload, param: AbstractParam): Promise<void>;
|
|
15
|
+
/** 유저 카드 정보 삭제 */
|
|
16
|
+
deleteUserCardBilling(payload: DeleteUserCardBillingPayload, param: AbstractParam): Promise<void>;
|
|
17
|
+
/** 유저 카드 정보 목록 조회 */
|
|
18
|
+
getUserCardBillingList(payload: GetUserCardBillingListPayload, param: AbstractParam): Promise<GetUserCardBillingListResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.AmqpUserCardBillingService = 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
|
+
/**
|
|
20
|
+
* @author jun
|
|
21
|
+
* @description 유저 카드 빌링 정보 AMQP 서비스
|
|
22
|
+
* @process order-server의 user-card-billing 컨트롤러와 RabbitMQ를 통해 통신
|
|
23
|
+
*/
|
|
24
|
+
let AmqpUserCardBillingService = class AmqpUserCardBillingService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
/** 유저 카드 정보 등록 */
|
|
30
|
+
async registerUserCardBilling(payload, param) {
|
|
31
|
+
return this.amqpManager.call('유저 카드 정보 등록', 'user-card-billing.register.card', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
/** 유저 카드 정보 삭제 */
|
|
34
|
+
async deleteUserCardBilling(payload, param) {
|
|
35
|
+
return this.amqpManager.call('유저 카드 정보 삭제', 'user-card-billing.delete.card', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
37
|
+
/** 유저 카드 정보 목록 조회 */
|
|
38
|
+
async getUserCardBillingList(payload, param) {
|
|
39
|
+
return this.amqpManager.call('유저 카드 정보 목록 조회', 'user-card-billing.get.list', payload, param, { isErrorThrowing: true });
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.AmqpUserCardBillingService = AmqpUserCardBillingService;
|
|
43
|
+
exports.AmqpUserCardBillingService = AmqpUserCardBillingService = __decorate([
|
|
44
|
+
(0, common_1.Injectable)(),
|
|
45
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
46
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
47
|
+
], AmqpUserCardBillingService);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './amqp.pay-try-log.service';
|
|
2
|
+
export * from './amqp.pay-try-log-reservation.service';
|
|
2
3
|
export * from './amqp.port-one.service';
|
|
3
4
|
export * from './amqp.yolo-deposit-history-by-pg.service';
|
|
4
5
|
export * from './amqp.bundle-p-info.service';
|
|
@@ -11,3 +12,5 @@ export * from './purchased-info.modules';
|
|
|
11
12
|
export * from './amqp-changed-purchased-option-log.service';
|
|
12
13
|
export * from './amqp.purchase-receipt-sabang.service';
|
|
13
14
|
export * from './naver-search-ad.modules';
|
|
15
|
+
export * from './amqp.nicepay.service';
|
|
16
|
+
export * from './amqp.user-card-billing.service';
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./amqp.pay-try-log.service"), exports);
|
|
18
|
+
__exportStar(require("./amqp.pay-try-log-reservation.service"), exports);
|
|
18
19
|
__exportStar(require("./amqp.port-one.service"), exports);
|
|
19
20
|
__exportStar(require("./amqp.yolo-deposit-history-by-pg.service"), exports);
|
|
20
21
|
__exportStar(require("./amqp.bundle-p-info.service"), exports);
|
|
@@ -27,3 +28,5 @@ __exportStar(require("./purchased-info.modules"), exports);
|
|
|
27
28
|
__exportStar(require("./amqp-changed-purchased-option-log.service"), exports);
|
|
28
29
|
__exportStar(require("./amqp.purchase-receipt-sabang.service"), exports);
|
|
29
30
|
__exportStar(require("./naver-search-ad.modules"), exports);
|
|
31
|
+
__exportStar(require("./amqp.nicepay.service"), exports);
|
|
32
|
+
__exportStar(require("./amqp.user-card-billing.service"), exports);
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult } from '../../dto/purchased-info.modules/purchased-info-reservation';
|
|
4
|
+
export declare class AmqpPurchasedInfoReservationService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
/** 예약 상품 일괄 빌링 결제 승인 (확보 처리) */
|
|
9
|
+
approveReservationBillingPaymentBulk(payload: ApproveReservationBillingPaymentBulkPayload, param: AbstractParam): Promise<ApproveReservationBillingPaymentBulkResult>;
|
|
10
|
+
/** 구매자의 예약 취소 */
|
|
11
|
+
cancelReservationByBuyer(payload: CancelReservationByBuyerPayload, param: AbstractParam): Promise<CancelReservationResult>;
|
|
12
|
+
/** 관리자의 예약 취소 */
|
|
13
|
+
cancelReservationByAdmin(payload: CancelReservationByAdminPayload, param: AbstractParam): Promise<CancelReservationResult>;
|
|
14
|
+
/** 관리자의 일괄 예약 취소 */
|
|
15
|
+
cancelReservationByAdminBulk(payload: CancelReservationByAdminBulkPayload, param: AbstractParam): Promise<CancelReservationByAdminBulkResult>;
|
|
16
|
+
}
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
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.AmqpPurchasedInfoReservationService = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* @author jun
|
|
18
|
+
* @description 예약 상품 구매 정보 AMQP 서비스
|
|
19
|
+
* @process order-server의 purchased-info-reservation 모듈과 통신
|
|
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 AmqpPurchasedInfoReservationService = class AmqpPurchasedInfoReservationService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
/** 예약 상품 일괄 빌링 결제 승인 (확보 처리) */
|
|
30
|
+
async approveReservationBillingPaymentBulk(payload, param) {
|
|
31
|
+
return this.amqpManager.call('예약 상품 일괄 빌링 결제 승인', 'purchased-info-reservation.approve.billing-payment-bulk', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
/** 구매자의 예약 취소 */
|
|
34
|
+
async cancelReservationByBuyer(payload, param) {
|
|
35
|
+
return this.amqpManager.call('구매자의 예약 취소', 'purchased-info-reservation.cancel.reservation.by-buyer', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
37
|
+
/** 관리자의 예약 취소 */
|
|
38
|
+
async cancelReservationByAdmin(payload, param) {
|
|
39
|
+
return this.amqpManager.call('관리자의 예약 취소', 'purchased-info-reservation.cancel.reservation.by-admin', payload, param, { isErrorThrowing: true });
|
|
40
|
+
}
|
|
41
|
+
/** 관리자의 일괄 예약 취소 */
|
|
42
|
+
async cancelReservationByAdminBulk(payload, param) {
|
|
43
|
+
return this.amqpManager.call('관리자의 일괄 예약 취소', 'purchased-info-reservation.cancel.reservation.by-admin-bulk', payload, param, { isErrorThrowing: true });
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService;
|
|
47
|
+
exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService = __decorate([
|
|
48
|
+
(0, common_1.Injectable)(),
|
|
49
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
50
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
51
|
+
], AmqpPurchasedInfoReservationService);
|
|
@@ -2,4 +2,4 @@ export * from './amqp.purchased-info-admin.service';
|
|
|
2
2
|
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
|
-
export * from './amqp.purchased-info-
|
|
5
|
+
export * from './amqp.purchased-info-reservation.service';
|
|
@@ -18,4 +18,4 @@ __exportStar(require("./amqp.purchased-info-admin.service"), exports);
|
|
|
18
18
|
__exportStar(require("./amqp.purchased-info-analytics-aggregation.service"), exports);
|
|
19
19
|
__exportStar(require("./amqp.purchased-info-coupon.service"), exports);
|
|
20
20
|
__exportStar(require("./amqp.purchased-info-sabang.service"), exports);
|
|
21
|
-
__exportStar(require("./amqp.purchased-info-
|
|
21
|
+
__exportStar(require("./amqp.purchased-info-reservation.service"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.47-jun.
|
|
3
|
+
"version": "0.7.47-jun.41",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@yolo-croket-dev/core": "^1.9.3",
|
|
22
22
|
"@yolo-croket-dev/domain": "^0.2.27",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "0.2.15",
|
|
24
|
-
"@yolo-croket-dev/entity": "0.2.66-jun.
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.2.124-jun.
|
|
24
|
+
"@yolo-croket-dev/entity": "0.2.66-jun.8",
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "0.2.124-jun.15",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.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" | "
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "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: {
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export * from './convert-to-normal-item.dto';
|
|
2
2
|
export * from './convert-to-reservation-item.dto';
|
|
3
|
+
export * from './update-reservation-period.dto';
|
|
4
|
+
export * from './update-stock-securing-period.dto';
|
|
5
|
+
export * from './update-shipping-period.dto';
|
|
6
|
+
export * from './update-reservation-item-selling.dto';
|
|
7
|
+
export * from './update-stock-mode.dto';
|
|
@@ -16,3 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./convert-to-normal-item.dto"), exports);
|
|
18
18
|
__exportStar(require("./convert-to-reservation-item.dto"), exports);
|
|
19
|
+
__exportStar(require("./update-reservation-period.dto"), exports);
|
|
20
|
+
__exportStar(require("./update-stock-securing-period.dto"), exports);
|
|
21
|
+
__exportStar(require("./update-shipping-period.dto"), exports);
|
|
22
|
+
__exportStar(require("./update-reservation-item-selling.dto"), exports);
|
|
23
|
+
__exportStar(require("./update-stock-mode.dto"), exports);
|
package/store-item-server/dto/reservation-store-item/command/update-reservation-item-selling.dto.js
ADDED
|
@@ -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.UpdateReservationItemSellingPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdateReservationItemSellingPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpdateReservationItemSellingPayload = UpdateReservationItemSellingPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpdateReservationItemSellingPayload.prototype, "itemId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsBoolean)(),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], UpdateReservationItemSellingPayload.prototype, "isSelling", void 0);
|
|
@@ -0,0 +1,28 @@
|
|
|
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.UpdateReservationPeriodPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdateReservationPeriodPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpdateReservationPeriodPayload = UpdateReservationPeriodPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpdateReservationPeriodPayload.prototype, "itemId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpdateReservationPeriodPayload.prototype, "reservationStartDate", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateReservationPeriodPayload.prototype, "reservationEndDate", void 0);
|
|
@@ -0,0 +1,28 @@
|
|
|
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.UpdateShippingPeriodPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdateShippingPeriodPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpdateShippingPeriodPayload = UpdateShippingPeriodPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpdateShippingPeriodPayload.prototype, "itemId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpdateShippingPeriodPayload.prototype, "shippingStartDate", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateShippingPeriodPayload.prototype, "shippingEndDate", void 0);
|
|
@@ -0,0 +1,30 @@
|
|
|
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.UpdateStockModePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const store_item_1 = require("@yolo-croket-dev/entity/src/store-item");
|
|
15
|
+
class UpdateStockModePayload {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateStockModePayload = UpdateStockModePayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UpdateStockModePayload.prototype, "itemId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(store_item_1.ReservationStockModeEnum),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UpdateStockModePayload.prototype, "stockMode", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], UpdateStockModePayload.prototype, "totalQuantity", void 0);
|