@yolo-croket-dev/amqp-access 0.7.446 → 0.7.448

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.
@@ -1,4 +1,5 @@
1
1
  import { CreateUserShippingAddressPayload } from '../../../../user-service/dto/user.modules/shipping-address/command';
2
+ import type { BuymaExpectedMargin } from '../query/buyma-order.dto';
2
3
  export declare class PreviewBuymaProcurementPayload {
3
4
  orderId: string;
4
5
  product: string;
@@ -13,6 +14,8 @@ export declare class CreateBuymaProcurementPayload extends PreviewBuymaProcureme
13
14
  remitter: string;
14
15
  }
15
16
  export interface BuymaProcurementPreview {
17
+ /** 조회 실패는 계산 불가 사유로 표시하며 주문 생성 조건에는 사용하지 않는다. */
18
+ expectedMargin?: BuymaExpectedMargin | null;
16
19
  orderId: string;
17
20
  revision: number;
18
21
  previewVersion: string;
@@ -31,6 +34,8 @@ export interface BuymaProcurementPreview {
31
34
  optionNameList: string[];
32
35
  available: boolean;
33
36
  }[];
37
+ /** 등록 매핑으로 확인한 현재 구매 가능 옵션. null이면 직접 선택, 미제공은 이전 서버 응답. */
38
+ matchedOptionNameList?: string[] | null;
34
39
  itemPrice: number;
35
40
  shippingPrice: number;
36
41
  insurancePrice: number;
@@ -1,6 +1,13 @@
1
- import type { BuymaExpectedMargin } from '@yolo-croket-dev/function/src/buyma-order/calculate-buyma-expected-margin';
1
+ import type { BuymaExpectedMargin as CalculatedBuymaExpectedMargin } from '@yolo-croket-dev/function/src/buyma-order/calculate-buyma-expected-margin';
2
2
  import { BuymaMoney, BuymaSettlementInputs, BuymaOrderEntity, BuymaOrderEventEntity, BuymaOrderStatus, BuymaPaymentStatus, BuymaProcurementWorkStatus } from '@yolo-croket-dev/entity-v2';
3
- export type { BuymaExpectedMargin } from '@yolo-croket-dev/function/src/buyma-order/calculate-buyma-expected-margin';
3
+ /** 조회 전용 마진. amount는 쿠폰 셀러 부담 반영 후이며 저장된 실제 정산과 구분한다. */
4
+ export interface BuymaExpectedMargin extends CalculatedBuymaExpectedMargin {
5
+ basis?: 'PRODUCT' | 'PROCUREMENT';
6
+ /** 쿠폰 셀러 부담 반영 전의 마진액이며 셀러 정산금이 아니다. */
7
+ beforeSellerCouponAmount?: BuymaMoney | null;
8
+ /** 해당 Buyma 수량에 배분한 쿠폰 셀러 부담액. */
9
+ sellerCouponBurdenJPY?: number | null;
10
+ }
4
11
  export type BuymaOrderSortBy = 'FIRST_ORDERED_AT_DESC' | 'FIRST_ORDERED_AT_ASC';
5
12
  export declare const BUYMA_ORDER_SEARCH_FIELDS: readonly ["ORDER_NUMBER", "STORE_NAME", "SOURCE_COUNTRY", "CROKET_ITEM_NAME", "CROKET_ITEM_ID", "BUYMA_ITEM_NAME", "BRAND_NAME", "OPTION_NAME", "PROCUREMENT_BUYER_ID", "RECIPIENT_NAME", "RECIPIENT_PHONE"];
6
13
  export type BuymaOrderSearchField = (typeof BUYMA_ORDER_SEARCH_FIELDS)[number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.446",
3
+ "version": "0.7.448",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",