@shopby/shop-sdk 1.63.5 → 1.63.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.63.7](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.63.6...v1.63.7) (2023-08-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 마이페이 업데이트 필수 타입 분리 ([0c78689](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/0c786898c5f5282c2aad886143b32f2a00808e0f))
11
+ * 주문시 마이페이 업데이트 타입으로 변경 ([b656247](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/b656247296c5f4dc81429327481560f636dc5fa4))
12
+
13
+ ### [1.63.6](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.63.5...v1.63.6) (2023-08-18)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * 마이페이 업데이트 타입 추가 ([5080065](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/5080065e7a4170fbad7cd8ffc43a7ecdc5b76790))
19
+
5
20
  ### [1.63.5](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.63.4...v1.63.5) (2023-08-17)
6
21
 
7
22
 
@@ -1,2 +1,3 @@
1
1
  export declare type ValueOf<T> = T[keyof T];
2
2
  export declare type Nullable<T> = T | null;
3
+ export declare type PartiallyRequired<T, K extends keyof T> = Partial<T> & Pick<T, K>;
@@ -1,4 +1,4 @@
1
- import { AgreementType, CountryCode, Week, Yn, DateYmdt, DateYmd, PhoneNumberString, NumberString, Nullable } from '../../common';
1
+ import { AgreementType, CountryCode, Week, Yn, DateYmdt, DateYmd, PhoneNumberString, NumberString, Nullable, PartiallyRequired } from '../../common';
2
2
  import { ActionGroupType, AddressType, CashReceiptIssuePurposeType, DefaultOrderStatusType, DeliveryCompanyType, DeliveryConditionType, DeliveryPayType, DeliveryType, GroupDeliveryAmtType, OrderChannelType, OrderOptionType, OrderRequestType, PayType, PgType, ReceiptType, RecurringCycle, RecurringCycleType, ShippingAreaType, TaxType, Bank, BankLabel, Card, CouponTargetType, CouponType } from './unions';
3
3
  import { ClaimClassType, ClaimStatusType, ClaimTypeWithNone, NextActionType, RefundType, ReturnWayType } from '../claim/unions';
4
4
  import { ClaimAddress, ClaimReasonTypeInfo, ExchangePayInfo } from '../../domain/claim';
@@ -601,7 +601,7 @@ export interface PostPaymentsReserveRequest extends OptionalAccessTokenRequest {
601
601
  subPayAmt: number;
602
602
  cashReceipt?: CashReceipt;
603
603
  shippingAddresses?: ShippingAddressesItem[];
604
- myPayInfo: Nullable<MyPayInfo>;
604
+ myPayInfo: Nullable<UpdateMyPayInfo>;
605
605
  };
606
606
  }
607
607
  export interface PostPaymentsReserveResponse {
@@ -1052,28 +1052,39 @@ export interface MyPayMobileInfo {
1052
1052
  flagPin: Nullable<string>;
1053
1053
  hppType: Nullable<string>;
1054
1054
  }
1055
- export interface MyPayAccountInfo {
1055
+ export interface RequiredMyPayAccountInfo {
1056
1056
  bankCardCode: Nullable<string>;
1057
+ }
1058
+ export interface MyPayAccountInfo extends RequiredMyPayAccountInfo {
1057
1059
  cshRecpSave: Nullable<string>;
1058
1060
  cshRecpInfo: Nullable<string>;
1059
1061
  cshRecpCode: Nullable<string>;
1060
1062
  }
1061
- export interface MyPayCardInfo {
1063
+ export interface RequiredMyPayCardInfo {
1062
1064
  cardQuota: Nullable<string>;
1063
1065
  bankCardCode: Nullable<string>;
1066
+ }
1067
+ export interface MyPayCardInfo extends RequiredMyPayCardInfo {
1064
1068
  flagPin: Nullable<string>;
1065
1069
  flagCardPoint: Nullable<string>;
1066
1070
  couponCode: Nullable<string>;
1067
1071
  cardInterest: Nullable<string>;
1068
1072
  }
1069
- export interface MyPayInfo {
1073
+ export interface RequiredMyPayInfo {
1070
1074
  wpayToken: Nullable<string>;
1071
1075
  payMethod: Nullable<string>;
1076
+ }
1077
+ export interface RequiredUpdateMyPayInfo {
1078
+ accountInfo: PartiallyRequired<MyPayAccountInfo, keyof RequiredMyPayAccountInfo>;
1079
+ cardInfo: PartiallyRequired<MyPayCardInfo, keyof RequiredMyPayCardInfo>;
1080
+ }
1081
+ export interface MyPayInfo extends RequiredMyPayInfo {
1072
1082
  ci: Nullable<string>;
1073
1083
  mobileInfo: Nullable<MyPayMobileInfo>;
1074
1084
  accountInfo: Nullable<MyPayAccountInfo>;
1075
1085
  cardInfo: Nullable<MyPayCardInfo>;
1076
1086
  }
1087
+ export declare type UpdateMyPayInfo = Nullable<RequiredMyPayInfo & RequiredUpdateMyPayInfo>;
1077
1088
  export interface FirstOrderAmount {
1078
1089
  totalProductAmt: number;
1079
1090
  additionalDiscountAmt: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/order/index.ts"],"names":[],"mappings":"AAsDA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/order/index.ts"],"names":[],"mappings":"AAuDA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.63.5",
3
+ "version": "1.63.7",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/index.d.ts",