@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.
- package/dist/index.d.ts +3 -3
- 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 = '
|
|
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를 `
|
|
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
|
-
|
|
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];
|