@yolo-croket-dev/amqp-access 0.7.86 → 0.7.87-hj-2

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.
@@ -0,0 +1,17 @@
1
+ import { StoreItemSellingInfo } from '@yolo-croket-dev/entity-v2';
2
+ export declare class GetCalculatePriceInfosPayload {
3
+ itemPrice: number;
4
+ pNums: number;
5
+ insurancePrice?: number;
6
+ DType: 'shipping' | 'bundle' | 'direct';
7
+ sellingInfo: StoreItemSellingInfo;
8
+ }
9
+ export interface CalculatePriceInfo {
10
+ totalPrice: number;
11
+ totalShippingFee: number;
12
+ originPrice: number;
13
+ originPriceForBuyer: number;
14
+ isBundleParent: boolean;
15
+ baseSettleAmount: number;
16
+ legacyShippingFee: number;
17
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetCalculatePriceInfosPayload = void 0;
4
+ class GetCalculatePriceInfosPayload {
5
+ }
6
+ exports.GetCalculatePriceInfosPayload = GetCalculatePriceInfosPayload;
@@ -2,3 +2,4 @@ export * from './get-direct-tosspayments-json.dto';
2
2
  export * from './store-item-payment';
3
3
  export * from './get-pay-try-log-for-issued-receipt-coupon.dto';
4
4
  export * from './get-pay-try-log-store-item-ids-for-event-banner.dto';
5
+ export * from './get-calculate-price-infos.dto';
@@ -18,3 +18,4 @@ __exportStar(require("./get-direct-tosspayments-json.dto"), exports);
18
18
  __exportStar(require("./store-item-payment"), exports);
19
19
  __exportStar(require("./get-pay-try-log-for-issued-receipt-coupon.dto"), exports);
20
20
  __exportStar(require("./get-pay-try-log-store-item-ids-for-event-banner.dto"), exports);
21
+ __exportStar(require("./get-calculate-price-infos.dto"), exports);
@@ -2,7 +2,7 @@ import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { GetPayTryLogsForEsPayload, GetPayTryLogsForEsResult, GetPayTryLogsForEsByIdsPayload, GetPayTryLogsForEsByIdsResult } from '@yolo-croket-dev/dto-v2/order-server/pay-try-log';
4
4
  import { BindIssuedReceiptCouponForPayment } from '@yolo-croket-dev/domain';
5
- import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult, GetPayTryLogStoreItemIdsForEventBannerPayload, UpdateGuestUserAuthorPayload } from '../dto/pay-try-log';
5
+ import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult, GetPayTryLogStoreItemIdsForEventBannerPayload, UpdateGuestUserAuthorPayload, GetCalculatePriceInfosPayload, CalculatePriceInfo } from '../dto/pay-try-log';
6
6
  export declare class AmqpPayTryLogService {
7
7
  private readonly client;
8
8
  private readonly amqpManager;
@@ -25,4 +25,5 @@ export declare class AmqpPayTryLogService {
25
25
  updateMaxDiscountCoupons(payload: UpdateMaxDiscountCouponsPayload, param: AbstractParam): Promise<UpdateMaxDiscountCouponsResult>;
26
26
  getPayTryLogStoreItemIdsByEventBanner(payload: GetPayTryLogStoreItemIdsForEventBannerPayload, param: AbstractParam): Promise<string[]>;
27
27
  updateGuestUserAuthor(payload: UpdateGuestUserAuthorPayload, param: AbstractParam): Promise<void>;
28
+ getCalculatePriceInfos(payload: GetCalculatePriceInfosPayload, param: AbstractParam): Promise<CalculatePriceInfo[]>;
28
29
  }
@@ -79,6 +79,9 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
79
79
  async updateGuestUserAuthor(payload, param) {
80
80
  return this.amqpManager.call('결제 시도 로그의 게스트 유저 작성자 업데이트', 'pay-try-log.update.guest-user-author', payload, param, { isErrorThrowing: true });
81
81
  }
82
+ async getCalculatePriceInfos(payload, param) {
83
+ return this.amqpManager.call('결제 시도 로그의 계산 가격 정보 조회', 'pay-try-log.get.calculate-price-infos', payload, param, { isErrorThrowing: true });
84
+ }
82
85
  };
83
86
  exports.AmqpPayTryLogService = AmqpPayTryLogService;
84
87
  exports.AmqpPayTryLogService = AmqpPayTryLogService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.86",
3
+ "version": "0.7.87-hj-2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -7,3 +7,4 @@ export * from './get-seller-email.dto';
7
7
  export * from './get-duplicate-users-by-phone-number.dto';
8
8
  export * from './get-user-ids-for-time-deal-push.dto';
9
9
  export * from './get-marketing-receive-by-phone-numbers.dto';
10
+ export * from './is-unlimited-benefit-user-id.dto';
@@ -23,3 +23,4 @@ __exportStar(require("./get-seller-email.dto"), exports);
23
23
  __exportStar(require("./get-duplicate-users-by-phone-number.dto"), exports);
24
24
  __exportStar(require("./get-user-ids-for-time-deal-push.dto"), exports);
25
25
  __exportStar(require("./get-marketing-receive-by-phone-numbers.dto"), exports);
26
+ __exportStar(require("./is-unlimited-benefit-user-id.dto"), exports);
@@ -0,0 +1,3 @@
1
+ export declare class IsUnlimitedBenefitUserIdPayload {
2
+ userId: string;
3
+ }
@@ -0,0 +1,20 @@
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.IsUnlimitedBenefitUserIdPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class IsUnlimitedBenefitUserIdPayload {
15
+ }
16
+ exports.IsUnlimitedBenefitUserIdPayload = IsUnlimitedBenefitUserIdPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], IsUnlimitedBenefitUserIdPayload.prototype, "userId", void 0);
@@ -3,7 +3,7 @@ import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  /** @dto -v2 */
4
4
  import { DecodePhoneNumbersPayload, PhoneDecodedData } from '@yolo-croket-dev/dto-v2/user-service';
5
5
  import { SaveShippingAddressPayload } from '../dto/user/command/save-shipping-address.dto';
6
- import { GetDuplicateUsersByPhoneNumberPayload, GetDuplicateUsersByPhoneNumberResult, GetUserIdsByUsernamePayload, GetUserIdsByUsernameResult, GetUserInfosForPartialRefundPayload, GetUserInfosForPartialRefundResult, IssueSignupRewardPayload, IssueSignupRewardResult, PatchGenderAndBirthdayPayload, SaveSystemAppPushAcceptPayload, IssueInflowSignupRewardResult, VerificationPhoneForSnsUserPayload, SignInGuestUserPayload, SignInGuestUserResult, UpdateGuestUsernamePayload, AppSwitchingRewardPayload, AppSwitchingRewardResult, GetUserIdsForTimeDealPushPayload, GetUserIdsForTimeDealPushResult, GetMarketingReceiveByPhoneNumbersResult, GetMarketingReceiveByPhoneNumbersPayload } from '../dto';
6
+ import { GetDuplicateUsersByPhoneNumberPayload, GetDuplicateUsersByPhoneNumberResult, GetUserIdsByUsernamePayload, GetUserIdsByUsernameResult, GetUserInfosForPartialRefundPayload, GetUserInfosForPartialRefundResult, IssueSignupRewardPayload, IssueSignupRewardResult, PatchGenderAndBirthdayPayload, SaveSystemAppPushAcceptPayload, IssueInflowSignupRewardResult, VerificationPhoneForSnsUserPayload, SignInGuestUserPayload, SignInGuestUserResult, UpdateGuestUsernamePayload, AppSwitchingRewardPayload, AppSwitchingRewardResult, GetUserIdsForTimeDealPushPayload, GetUserIdsForTimeDealPushResult, GetMarketingReceiveByPhoneNumbersResult, GetMarketingReceiveByPhoneNumbersPayload, IsUnlimitedBenefitUserIdPayload } from '../dto';
7
7
  /** 기존 userService 와 이름이 겹쳐 userEntityService로 임시 사용 */
8
8
  export declare class AmqpUserEntityService {
9
9
  private readonly client;
@@ -24,4 +24,5 @@ export declare class AmqpUserEntityService {
24
24
  appSwitchingReward(payload: AppSwitchingRewardPayload, param: AbstractParam): Promise<AppSwitchingRewardResult>;
25
25
  getUserIdsForTimeDealPush(payload: GetUserIdsForTimeDealPushPayload, param: AbstractParam): Promise<GetUserIdsForTimeDealPushResult>;
26
26
  getMarketingReceiveByPhoneNumbers(payload: GetMarketingReceiveByPhoneNumbersPayload, param: AbstractParam): Promise<GetMarketingReceiveByPhoneNumbersResult[]>;
27
+ isUnlimitedBenefitUserId(payload: IsUnlimitedBenefitUserIdPayload, param: AbstractParam): Promise<boolean>;
27
28
  }
@@ -67,6 +67,9 @@ let AmqpUserEntityService = class AmqpUserEntityService {
67
67
  async getMarketingReceiveByPhoneNumbers(payload, param) {
68
68
  return this.amqpManager.call('유저 - 마케팅 수신 동의 여부 조회', 'user.get.marketing-receive-by-phone-numbers', payload, param, { isErrorThrowing: true });
69
69
  }
70
+ async isUnlimitedBenefitUserId(payload, param) {
71
+ return this.amqpManager.call('유저 - 크레딧, 쿠폰 제한 없는 유저 여부 조회', 'user.get.is-unlimited-benefit-user-id', payload, param, { isErrorThrowing: true });
72
+ }
70
73
  };
71
74
  exports.AmqpUserEntityService = AmqpUserEntityService;
72
75
  exports.AmqpUserEntityService = AmqpUserEntityService = __decorate([
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Read(//Users/jun/Desktop/code/work/monorepo/**)",
5
- "Bash(npm ls:*)",
6
- "Bash(cd:*)",
7
- "WebFetch(domain:developers.nicepay.co.kr)",
8
- "Bash(npx lerna:*)"
9
- ]
10
- }
11
- }