@yolo-croket-dev/amqp-access 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/user-service/dto/cart/query/get-satisfied-cart-receipt-coupon.dto.d.ts +6 -0
- package/user-service/dto/cart/query/get-satisfied-cart-receipt-coupon.dto.js +2 -0
- package/user-service/dto/cart/query/index.d.ts +1 -0
- package/user-service/dto/cart/query/index.js +1 -0
- package/user-service/services/amqp.cart.service.d.ts +2 -1
- package/user-service/services/amqp.cart.service.js +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SatisfiedReceiptCouponInfoForCart, UnSatisfiedReceiptCouponInfoForCart } from '@yolo-croket-dev/entity-v2/receipt-coupon-template';
|
|
2
|
+
export interface CartReceiptCouponProcessorResult {
|
|
3
|
+
satisfiedCartedPrice: number;
|
|
4
|
+
unSatisfiedReceiptCouponInfoForCart?: UnSatisfiedReceiptCouponInfoForCart;
|
|
5
|
+
satisfiedReceiptCouponInfoForCart?: SatisfiedReceiptCouponInfoForCart;
|
|
6
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { GetCartsForWritePayPayload, GetCartsForWritePayResult, } from './get-carts-for-write-pay.dto';
|
|
2
2
|
export * from './get-carts-for-seduce-add-cart.dto';
|
|
3
3
|
export * from './get-my-item-ids-for-seduce-add-cart.dto';
|
|
4
|
+
export * from './get-satisfied-cart-receipt-coupon.dto';
|
|
@@ -20,3 +20,4 @@ Object.defineProperty(exports, "GetCartsForWritePayPayload", { enumerable: true,
|
|
|
20
20
|
Object.defineProperty(exports, "GetCartsForWritePayResult", { enumerable: true, get: function () { return get_carts_for_write_pay_dto_1.GetCartsForWritePayResult; } });
|
|
21
21
|
__exportStar(require("./get-carts-for-seduce-add-cart.dto"), exports);
|
|
22
22
|
__exportStar(require("./get-my-item-ids-for-seduce-add-cart.dto"), exports);
|
|
23
|
+
__exportStar(require("./get-satisfied-cart-receipt-coupon.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetCartsForSeduceAddCartResult, GetCartsForWritePayPayload, GetCartsForWritePayResult, ReAddCartByChangedPayload, GetMyItemIdsForSeduceAddCartResult } from '@yolo-croket-dev/amqp-access/user-service/dto/cart';
|
|
3
|
+
import { GetCartsForSeduceAddCartResult, GetCartsForWritePayPayload, GetCartsForWritePayResult, ReAddCartByChangedPayload, GetMyItemIdsForSeduceAddCartResult, CartReceiptCouponProcessorResult } from '@yolo-croket-dev/amqp-access/user-service/dto/cart';
|
|
4
4
|
export declare class AmqpCartService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -9,4 +9,5 @@ export declare class AmqpCartService {
|
|
|
9
9
|
getCartsForSeduceAddCart(param: AbstractParam): Promise<GetCartsForSeduceAddCartResult>;
|
|
10
10
|
reAddCartByChanged(payload: ReAddCartByChangedPayload, param: AbstractParam): Promise<void>;
|
|
11
11
|
getMyItemIdsForSeduceAddCart(param: AbstractParam): Promise<GetMyItemIdsForSeduceAddCartResult>;
|
|
12
|
+
getSatisfiedCartReceiptCoupon(param: AbstractParam): Promise<CartReceiptCouponProcessorResult>;
|
|
12
13
|
}
|
|
@@ -33,6 +33,9 @@ let AmqpCartService = class AmqpCartService {
|
|
|
33
33
|
async getMyItemIdsForSeduceAddCart(param) {
|
|
34
34
|
return this.amqpManager.call('장바구니 추가 상품 추천을 위한 장바구니 데이터 검색', 'cart.get.my-item-ids-for-seduce-add-cart', {}, param, { isErrorThrowing: true });
|
|
35
35
|
}
|
|
36
|
+
async getSatisfiedCartReceiptCoupon(param) {
|
|
37
|
+
return this.amqpManager.call('장바구니 쿠폰 조회', 'cart.get.satisfied-cart-receipt-coupon', undefined, param, { isErrorThrowing: true });
|
|
38
|
+
}
|
|
36
39
|
};
|
|
37
40
|
AmqpCartService = __decorate([
|
|
38
41
|
(0, common_1.Injectable)(),
|