@danalpay/javascript-sdk 1.1.0 → 1.1.1

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  type Paymethod = 'CARD' | 'NAVERPAY' | 'KAKAOPAY' | 'PAYCO' | 'MOBILE' | 'TRANSFER' | 'VACCOUNT' | 'CULTURELAND' | 'BOOK_AND_LIFE' | 'INTEGRATED';
2
- type BillingMethod = 'CARD_BILLING';
2
+ type BillingMethod = Extract<Paymethod, 'CARD'>;
3
3
 
4
4
  /** PayMethod를 `CARD`로 설정하면 카드/간편결제 통합결제창, 카드・간편결제 자체창을 사용할 수 있어요. */
5
5
  type CardPaymentsRequest = {
@@ -76,7 +76,7 @@ type IntegratedPaymetnsRequest = {
76
76
  };
77
77
 
78
78
  /**
79
- * PayMethod를 `CARD_BILLING`으로 설정하면
79
+ * PayMethod를 `CARD`으로 설정하면
80
80
  * 카드 자동결제(정기결제) 등록창을 호출할 수 있습니다.
81
81
  */
82
82
  type CardBillingRequest = {
@@ -190,7 +190,7 @@ type PaymentRequestMap = {
190
190
  INTEGRATED: IntegratedPaymetnsRequest;
191
191
  };
192
192
  type BillingRequestMap = {
193
- CARD_BILLING: CardBillingRequest;
193
+ CARD: CardBillingRequest;
194
194
  };
195
195
  type RequestPaymentParam<T extends keyof PaymentRequestMap> = CommonBaseParams<Paymethod> & OptionParams & PaymentRequestMap[T];
196
196
  type RequestBillingParam<T extends keyof BillingRequestMap> = CommonBaseParams<BillingMethod> & OptionParams & BillingRequestMap[T];
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.1.0",
4
+ "version": "1.1.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",