@bootpay/client-js 5.2.0-beta.3 → 5.2.0-beta.4
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.es.js +1985 -2116
- package/dist/index.umd.js +26 -26
- package/dist/package.json.d.ts +1 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/lib/event/hooks/widget/message.d.ts +3 -0
- package/dist/src/lib/locale/message.d.ts +1 -1
- package/dist/src/lib/template/brandpay.d.ts +3 -0
- package/dist/src/support/template-manager.d.ts +6 -1
- package/package.json +1 -1
- package/dist/src/bootpay-wallet.d.ts +0 -15
- package/dist/src/lib/bootpay-wallet.d.ts +0 -7
- package/dist/src/lib/event/hooks/wallet/message.d.ts +0 -24
- package/dist/src/lib/event/wallet.d.ts +0 -6
- package/dist/src/lib/template/wallet.d.ts +0 -15
- package/dist/src/support/stores/wallet-store.d.ts +0 -11
package/dist/package.json.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ import BootpaySDK from './bootpay-sdk';
|
|
|
3
3
|
import BootpayEnvironment from "./bootpay-environment";
|
|
4
4
|
import BootpayStore from './bootpay-store';
|
|
5
5
|
import BootpayWidget, { BootpayWidgetInterface } from './bootpay-widget';
|
|
6
|
-
|
|
7
|
-
export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore, BootpayWallet };
|
|
6
|
+
export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore };
|
|
8
7
|
export default Bootpay;
|
|
9
8
|
import { UserTokenTemplateManager } from './lib/template/user-token';
|
|
10
9
|
import { BiometricDataModel, RequestPaymentWalletModel } from './models/bootpay-sdk-interface';
|
|
@@ -34,6 +34,9 @@ export declare const WidgetWindowMessage: {
|
|
|
34
34
|
*/
|
|
35
35
|
triggerGlobalChangeEvent(data: SelectPaymentEventData): void;
|
|
36
36
|
callBootpayDOMEvent(eventName: string, data?: any): void;
|
|
37
|
+
bootpayWidgetPreferenceWindow(data: {
|
|
38
|
+
popup: boolean;
|
|
39
|
+
}): void;
|
|
37
40
|
};
|
|
38
41
|
export interface SelectPaymentEventData {
|
|
39
42
|
pg?: string;
|
|
@@ -13,6 +13,9 @@ declare class BrandpayTemplateManager extends TemplateManager {
|
|
|
13
13
|
addWallet(url: string): void;
|
|
14
14
|
removeWallet(walletId: string): void;
|
|
15
15
|
showCardInterestInformation(data: any): void;
|
|
16
|
+
brandpayPreference(data: {
|
|
17
|
+
popup: boolean;
|
|
18
|
+
}): void;
|
|
16
19
|
destroy(): void;
|
|
17
20
|
resize(resizeData: any): void;
|
|
18
21
|
postMessage(event: string, data?: any): void;
|
|
@@ -3,7 +3,11 @@ export declare class TemplateManager extends BootpayManager {
|
|
|
3
3
|
$windowId: string;
|
|
4
4
|
$template: string;
|
|
5
5
|
$iFrameId: string;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(data?: {
|
|
7
|
+
iframeId?: string;
|
|
8
|
+
template?: string;
|
|
9
|
+
el?: string;
|
|
10
|
+
});
|
|
7
11
|
defaultIframeHtml(): string;
|
|
8
12
|
byId(id: string): HTMLElement | null;
|
|
9
13
|
/**
|
|
@@ -27,4 +31,5 @@ export declare class TemplateManager extends BootpayManager {
|
|
|
27
31
|
* @date: 2023-06-15
|
|
28
32
|
*/
|
|
29
33
|
postMessage(event: string, data?: any): void;
|
|
34
|
+
defaultRender(url: string): void;
|
|
30
35
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RequestPaymentWalletModel } from './models/bootpay-wallet-interface';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
BootpayWallet: BootpayWalletInterface;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export interface BootpayWalletInterface {
|
|
8
|
-
render(el: string, data: RequestPaymentWalletModel): void;
|
|
9
|
-
rerender(): void;
|
|
10
|
-
setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
|
|
11
|
-
isRendered(): boolean;
|
|
12
|
-
synchronizedFromBootpay(data: any): void;
|
|
13
|
-
}
|
|
14
|
-
declare const BootpayWallet: BootpayWalletInterface;
|
|
15
|
-
export default BootpayWallet;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BootpayManager } from '../support/bootpay-manager';
|
|
2
|
-
import { RequestPaymentWalletModel } from '../models/bootpay-wallet-interface';
|
|
3
|
-
export declare class BootpayWalletWindowManger extends BootpayManager {
|
|
4
|
-
constructor();
|
|
5
|
-
render(el: string, data: RequestPaymentWalletModel): void;
|
|
6
|
-
}
|
|
7
|
-
export declare const BootpayWalletWindow: BootpayWalletWindowManger;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const WalletWindowMessage: {
|
|
2
|
-
resize: (data: ExResizeData) => void;
|
|
3
|
-
showModal: (data: {
|
|
4
|
-
url: string;
|
|
5
|
-
}) => void;
|
|
6
|
-
resizeModal: (data: ExResizeData) => void;
|
|
7
|
-
closeModal: () => void;
|
|
8
|
-
confirmModal: (data: {
|
|
9
|
-
message: string;
|
|
10
|
-
title: string;
|
|
11
|
-
confirmButtonText: string;
|
|
12
|
-
cancelButtonText: string;
|
|
13
|
-
confirm: boolean;
|
|
14
|
-
}) => void;
|
|
15
|
-
/**
|
|
16
|
-
* 결제수단정보 추가가 완료된 경우
|
|
17
|
-
* Comment by GOSOMI
|
|
18
|
-
* @date: 2025-01-17
|
|
19
|
-
*/
|
|
20
|
-
addedSuccess: (data: any) => void;
|
|
21
|
-
synchronize: (data: any) => void;
|
|
22
|
-
onReady: (data: any) => void;
|
|
23
|
-
onChange: (data: any) => void;
|
|
24
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
-
import { WalletStoreManager } from '../../support/stores/wallet-store';
|
|
3
|
-
declare class TemplateWalletManager extends TemplateManager {
|
|
4
|
-
el: string;
|
|
5
|
-
$template: string;
|
|
6
|
-
$walletStore: WalletStoreManager;
|
|
7
|
-
$iFrameId: string;
|
|
8
|
-
constructor();
|
|
9
|
-
render(el: string): void;
|
|
10
|
-
templateRender(): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
resize(resizeData: any): void;
|
|
13
|
-
}
|
|
14
|
-
export declare const BootpayWalletTemplate: TemplateWalletManager;
|
|
15
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BootpayStoreManager } from './bootpay-store';
|
|
2
|
-
import { RequestPaymentWalletModel } from '../../models/bootpay-wallet-interface';
|
|
3
|
-
export declare class WalletStoreManager extends BootpayStoreManager {
|
|
4
|
-
data: RequestPaymentWalletModel;
|
|
5
|
-
constructor();
|
|
6
|
-
encryptKey(): string;
|
|
7
|
-
set(data: RequestPaymentWalletModel): void;
|
|
8
|
-
callHook(name: string, data: any): void;
|
|
9
|
-
encryptParameters(): string;
|
|
10
|
-
}
|
|
11
|
-
export declare const WalletStore: WalletStoreManager;
|