@tosspayments/tosspayments-sdk 2.3.6 → 2.3.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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.3.7](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.3.6...@tosspayments/tosspayments-sdk@2.3.7) (2025-08-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tosspayments-sdk:** @tosspayments/standard-public-interfaces 버전업 ([#133](https://github.com/tosspayments/browser-sdk/issues/133)) ([1d2a4a6](https://github.com/tosspayments/browser-sdk/commit/1d2a4a6d55192f323f74b1672628b1bf44d1b810))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.3.6](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.3.5...@tosspayments/tosspayments-sdk@2.3.6) (2025-08-13)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tosspayments/tosspayments-sdk",
3
3
  "description": "TossPayments.js Tosspayments SDK.",
4
- "version": "2.3.6",
4
+ "version": "2.3.7",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "types/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "@rollup/plugin-commonjs": "^21.0.1",
22
22
  "@rollup/plugin-typescript": "^8.3.0",
23
23
  "@tosspayments/sdk-loader": "2.0.1",
24
- "@tosspayments/standard-public-interfaces": "2.1.4",
24
+ "@tosspayments/standard-public-interfaces": "2.3.0",
25
25
  "happy-dom": "^14.12.3",
26
26
  "prettier": "^2.0.2",
27
27
  "rollup": "^2.60.0",
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "e1bef43ea888b8474f865a318177cf74087a6d83"
41
+ "gitHead": "3e772ae10d92e36c0605e4e86a2e5a7f32132dab"
42
42
  }
package/types/index.d.ts CHANGED
@@ -148,7 +148,7 @@ interface WidgetPaymentRequest {
148
148
  */
149
149
  pendingUrl?: string | null;
150
150
  /**
151
- * 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 500자의 문자열입니다.
151
+ * 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 2000자의 문자열입니다.
152
152
  */
153
153
  metadata?: Record<string | symbol | number, unknown> | null;
154
154
  /**
@@ -352,6 +352,30 @@ interface WidgetPaymentRequest {
352
352
  } | null;
353
353
  } | null;
354
354
  } | null;
355
+ /**
356
+ * @ignore
357
+ */
358
+ subMerchantSetting?: {
359
+ normalClientKey?: string | null;
360
+ keyinClientKey?: string | null;
361
+ foreignEasyPayClientKey?: string | null;
362
+ brandpayClientKey?: string | null;
363
+ brandpayRedirectUrl?: string | null;
364
+ } | null;
365
+ /**
366
+ * @ignore
367
+ */
368
+ subOrders?: Array<{
369
+ merchantBusinessNumber: string;
370
+ merchantName: string;
371
+ merchantAddress: {
372
+ country: string;
373
+ postalCode: string;
374
+ address: string;
375
+ detailAddress?: string | null;
376
+ };
377
+ orderName: string;
378
+ }> | null;
355
379
  }
356
380
 
357
381
  interface Amount {
@@ -616,7 +640,7 @@ interface BrandpayPaymentRequest {
616
640
  */
617
641
  methodId?: string | null;
618
642
  /**
619
- * 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 500자의 문자열입니다.
643
+ * 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 2000자의 문자열입니다.
620
644
  */
621
645
  metadata?: Record<string | symbol | number, unknown> | null;
622
646
  }
@@ -855,10 +879,6 @@ interface TossPaymentsBrandpay {
855
879
  /**
856
880
  * @ignore
857
881
  */
858
- /**
859
- * 브랜드페이 빌링은 sales 가맹점 중 rm 검토된 곳에만 제한적으로 제공되기 때문에 docs에서 노출하지 않습니다.
860
- * @link https://tossteam.slack.com/archives/C06ENN7PJK1/p1752207105929219
861
- */
862
882
  requestBillingAuth: RequestBillingAuth$1;
863
883
  }
864
884
 
@@ -904,7 +924,7 @@ interface PaymentRequest {
904
924
  */
905
925
  pendingUrl?: string | null;
906
926
  /**
907
- * 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 500자의 문자열입니다.
927
+ * 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 2000자의 문자열입니다.
908
928
  */
909
929
  metadata?: Record<string | symbol | number, unknown> | null;
910
930
  /**
@@ -916,6 +936,20 @@ interface PaymentRequest {
916
936
  */
917
937
  paymentResult: 'SUCCESS' | 'FAIL';
918
938
  };
939
+ /**
940
+ * @ignore
941
+ */
942
+ subOrders?: Array<{
943
+ merchantBusinessNumber: string;
944
+ merchantName: string;
945
+ merchantAddress: {
946
+ country: string;
947
+ postalCode: string;
948
+ address: string;
949
+ detailAddress?: string | null;
950
+ };
951
+ orderName: string;
952
+ }> | null;
919
953
  }
920
954
 
921
955
  interface CardPaymentRequest extends PaymentRequest {
@@ -1349,7 +1383,7 @@ interface BillingAuthRequest {
1349
1383
  */
1350
1384
  windowTarget?: 'iframe' | 'self' | null;
1351
1385
  /**
1352
- * 결제화면에 노출할 카드 타입입니다. `PERSONAL`(개인카드), `CORPORATE`(법인카드), `FOREIGN`(해외카드) 값을 배열 형태로 전달할 수 있습니다. 입력한 순서대로 화면에 노출되며, 첫 번째로 입력한 카드 타입이 기본 선택됩니다.
1386
+ * 결제화면에 노출할 카드 타입입니다. `PERSONAL`(개인카드), `CORPORATE`(법인카드) 값을 배열 형태로 전달할 수 있습니다. 입력한 순서대로 화면에 노출되며, 첫 번째로 입력한 카드 타입이 기본 선택됩니다.
1353
1387
  */
1354
1388
  selectableCardTypes?: Array<'PERSONAL' | 'CORPORATE'> | null;
1355
1389
  }