@danalpay/javascript-sdk 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type Paymethod = 'CARD' | 'NAVERPAY' | 'KAKAOPAY' | 'PAYCO' | 'MOBILE' | 'TRANSFER' | 'VACCOUNT' | 'CULTURELAND' | 'BOOK_AND_LIFE';
1
+ type Paymethod = 'CARD' | 'NAVERPAY' | 'KAKAOPAY' | 'PAYCO' | 'MOBILE' | 'TRANSFER' | 'VACCOUNT' | 'CULTURELAND' | 'BOOK_AND_LIFE' | 'INTEGRATED';
2
2
 
3
3
  /** PayMethod를 `CARD`로 설정하면 카드/간편결제 통합결제창, 카드・간편결제 자체창을 사용할 수 있어요. */
4
4
  type CardPaymentsRequest = {
@@ -65,6 +65,9 @@ type CulturelandPaymentsRequest = {
65
65
  userEmail: string;
66
66
  };
67
67
 
68
+ /** PayMethod를 `INTEGRATED`로 설정하면 컬쳐 결제창을 사용할 수 있어요. */
69
+ type IntegratedPaymetnsRequest = Partial<MobilePaymentRequest & TransferPaymentsRequest & CardPaymentsRequest & CulturelandPaymentsRequest & BookAndLifePaymentsRequest & VirtualAccountPaymentsRequest>;
70
+
68
71
  type CommonBaseParams = {
69
72
  /** 결제수단입니다. 결제수단을 구분하는 값입니다. */
70
73
  paymentsMethod: Paymethod;
@@ -110,6 +113,7 @@ type PaymentRequestMap = {
110
113
  NAVERPAY: CardPaymentsRequest;
111
114
  KAKAOPAY: CardPaymentsRequest;
112
115
  PAYCO: CardPaymentsRequest;
116
+ INTEGRATED: IntegratedPaymetnsRequest;
113
117
  };
114
118
  type RequestPaymentParam<T extends keyof PaymentRequestMap> = CommonBaseParams & OptionParams & PaymentRequestMap[T];
115
119
  interface DanalPayments {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danalpay/javascript-sdk",
3
3
  "description": "Danal ONE API javascript SDK",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",