@bootpay/client-js 5.2.0-beta.15 → 5.2.0-beta.17
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.mjs +2201 -2076
- package/dist/index.umd.js +67 -50
- package/dist/src/bootpay-widget.d.ts +2 -1
- package/dist/src/lib/event/hooks/slider/event.d.ts +6 -0
- package/dist/src/lib/event/hooks/widget/message.d.ts +6 -0
- package/dist/src/lib/event/slider.d.ts +7 -0
- package/dist/src/lib/template/brandpay.d.ts +13 -4
- package/dist/src/lib/template/slider.d.ts +21 -0
- package/dist/src/lib/template/user-token.d.ts +9 -0
- package/dist/src/lib/template/widget.d.ts +4 -5
- package/dist/src/support/event.d.ts +2 -0
- package/dist/src/support/hook.d.ts +12 -0
- package/dist/src/support/hooks/widget-hooks.d.ts +9 -0
- package/dist/src/support/stores/bootpay-store.d.ts +4 -0
- package/dist/src/support/stores/widget-store.d.ts +1 -1
- package/dist/src/types/bootpay-interface.d.ts +13 -0
- package/dist/src/types/bootpay-widget-interface.d.ts +14 -0
- package/package.json +1 -1
- package/dist/src/support/widget-store.d.ts +0 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from './types/bootpay-widget-interface';
|
|
1
|
+
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayBrandpayLaunchManager, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from './types/bootpay-widget-interface';
|
|
2
2
|
import { RequestPaymentModel, RequestSubscriptionModel } from './types/bootpay-interface';
|
|
3
3
|
|
|
4
4
|
export interface BootpayWidgetInterface {
|
|
@@ -7,6 +7,7 @@ export interface BootpayWidgetInterface {
|
|
|
7
7
|
setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
|
|
8
8
|
requestPayment(data: RequestPaymentModel): Promise<any>;
|
|
9
9
|
requestSubscription(data: RequestSubscriptionModel): Promise<any>;
|
|
10
|
+
launchBrandpayManager(data: RequestBootpayBrandpayLaunchManager): void;
|
|
10
11
|
update(data: RequestBootpayWidgetModel, rendering?: boolean): void;
|
|
11
12
|
errorHandler(e: any): any;
|
|
12
13
|
currentTermsCondition(): ResponseBootpayWidgetTermsModel[];
|
|
@@ -39,6 +39,12 @@ export declare const WidgetWindowMessage: {
|
|
|
39
39
|
bootpayWidgetPreferenceWindow(data: {
|
|
40
40
|
popup: boolean;
|
|
41
41
|
}): void;
|
|
42
|
+
brandpayManagerWindowReady: (data: any) => void;
|
|
43
|
+
brandpayExternalPassword: (data: {
|
|
44
|
+
popup: boolean;
|
|
45
|
+
url: string;
|
|
46
|
+
}) => void;
|
|
47
|
+
externalPasswordResponse: (data: any) => void;
|
|
42
48
|
};
|
|
43
49
|
export interface SelectPaymentEventData {
|
|
44
50
|
pg?: string;
|
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
-
import {
|
|
2
|
+
import { WidgetStoreManager } from '../../support/stores/widget-store';
|
|
3
3
|
|
|
4
4
|
declare class BrandpayTemplateManager extends TemplateManager {
|
|
5
5
|
$brandpayWindowId: string;
|
|
6
6
|
$iFrameId: string;
|
|
7
7
|
$template: string;
|
|
8
8
|
$windowId: string;
|
|
9
|
-
$widgetStore:
|
|
9
|
+
$widgetStore: WidgetStoreManager;
|
|
10
10
|
$additionalClass: string;
|
|
11
|
-
constructor(
|
|
12
|
-
|
|
11
|
+
constructor(options?: {
|
|
12
|
+
isBackground: boolean;
|
|
13
|
+
});
|
|
14
|
+
template({ isBackground }: {
|
|
15
|
+
isBackground: any;
|
|
16
|
+
}): string;
|
|
13
17
|
createIFrame(url: string): void;
|
|
18
|
+
templateRender(url: string): void;
|
|
14
19
|
addWallet(url: string): void;
|
|
15
20
|
removeWallet(walletId: string): void;
|
|
16
21
|
showCardInterestInformation(data: any): void;
|
|
17
22
|
brandpayPreference(data: {
|
|
18
23
|
popup: boolean;
|
|
19
24
|
}): void;
|
|
25
|
+
externalPassword({ popup, url }: {
|
|
26
|
+
popup: boolean;
|
|
27
|
+
url: string;
|
|
28
|
+
}): void;
|
|
20
29
|
destroy(): void;
|
|
21
30
|
resize(resizeData: any): void;
|
|
22
31
|
postMessage(event: string, data?: any): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
+
import { BootpaySliderOption, BootpaySliderSelectOption } from '../../types/bootpay-interface';
|
|
3
|
+
|
|
4
|
+
declare class SliderTemplateManager extends TemplateManager {
|
|
5
|
+
$windowId: string;
|
|
6
|
+
$template: string;
|
|
7
|
+
$modalWindowId: string;
|
|
8
|
+
$additionalClass: string;
|
|
9
|
+
$title: string;
|
|
10
|
+
$options: BootpaySliderOption | undefined;
|
|
11
|
+
constructor();
|
|
12
|
+
template(sliders: BootpaySliderSelectOption[]): string;
|
|
13
|
+
sliderButtonTemplate(sliders: BootpaySliderSelectOption[]): string;
|
|
14
|
+
sliderButtonId(key: string): string;
|
|
15
|
+
show(event: any, options: BootpaySliderOption): void;
|
|
16
|
+
sliderButtonClickHook(event: any): void;
|
|
17
|
+
sliderButtonClickHookDestroy(): void;
|
|
18
|
+
destroy(): void;
|
|
19
|
+
}
|
|
20
|
+
export declare const SliderTemplate: SliderTemplateManager;
|
|
21
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import { TemplateManager } from '../../support/template-manager';
|
|
|
2
2
|
import { BootpayUserTokenEventManager } from '../event/user-token';
|
|
3
3
|
import { SessionStorageManager } from '../../support/storage';
|
|
4
4
|
import { BiometricDataModel, RequestPaymentWalletModel } from '../../types/bootpay-sdk-interface';
|
|
5
|
+
import { RequestBootpayBrandpayLaunchManager } from '../../types/bootpay-widget-interface';
|
|
5
6
|
|
|
6
7
|
export declare class UserTokenTemplateManager extends TemplateManager {
|
|
7
8
|
$session: SessionStorageManager;
|
|
@@ -11,6 +12,8 @@ export declare class UserTokenTemplateManager extends TemplateManager {
|
|
|
11
12
|
$userWindowId: string;
|
|
12
13
|
$bootpaySdkFormId: string;
|
|
13
14
|
$event: BootpayUserTokenEventManager;
|
|
15
|
+
$popupInstance: Window | null;
|
|
16
|
+
$popupInstanceWatcher: number;
|
|
14
17
|
deviceType: number;
|
|
15
18
|
constructor();
|
|
16
19
|
/**
|
|
@@ -68,6 +71,12 @@ export declare class UserTokenTemplateManager extends TemplateManager {
|
|
|
68
71
|
* @date: 2022-02-25
|
|
69
72
|
*/
|
|
70
73
|
requestWalletPayment(data: RequestPaymentWalletModel): Promise<unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* Brandpay Manager를 실행한다
|
|
76
|
+
* Comment by GOSOMI
|
|
77
|
+
* @date: 2022-02-16
|
|
78
|
+
*/
|
|
79
|
+
launchBrandpayManager(data: RequestBootpayBrandpayLaunchManager): void;
|
|
71
80
|
/**
|
|
72
81
|
* iFrame src로 이동
|
|
73
82
|
* Comment by GOSOMI
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
-
import {
|
|
2
|
+
import { WidgetStoreManager } from '../../support/stores/widget-store';
|
|
3
3
|
|
|
4
|
-
declare class TemplateWidgetManager extends TemplateManager {
|
|
4
|
+
export declare class TemplateWidgetManager extends TemplateManager {
|
|
5
5
|
$iFrameId: string;
|
|
6
6
|
$template: string;
|
|
7
|
-
$widgetStore:
|
|
7
|
+
$widgetStore: WidgetStoreManager;
|
|
8
8
|
constructor();
|
|
9
9
|
/**
|
|
10
10
|
* 첫 Rendering을 진행한다
|
|
@@ -17,7 +17,7 @@ declare class TemplateWidgetManager extends TemplateManager {
|
|
|
17
17
|
* Comment by GOSOMI
|
|
18
18
|
* @date: 2023-06-15
|
|
19
19
|
*/
|
|
20
|
-
templateRender(): void;
|
|
20
|
+
templateRender(url: string): void;
|
|
21
21
|
resize(resizeData: any): void;
|
|
22
22
|
/**
|
|
23
23
|
* widget을 재 렌더링한다
|
|
@@ -33,4 +33,3 @@ declare class TemplateWidgetManager extends TemplateManager {
|
|
|
33
33
|
destroy(): void;
|
|
34
34
|
}
|
|
35
35
|
export declare const TemplateWidget: TemplateWidgetManager;
|
|
36
|
-
export {};
|
|
@@ -43,6 +43,7 @@ export declare class BootpayWindowEvent extends BootpayManager {
|
|
|
43
43
|
$eventHooks: {
|
|
44
44
|
[hookName: string]: any;
|
|
45
45
|
};
|
|
46
|
+
$childInstance: any;
|
|
46
47
|
constructor(options?: {
|
|
47
48
|
messageEventName: string;
|
|
48
49
|
messageEventHooks: {
|
|
@@ -50,6 +51,7 @@ export declare class BootpayWindowEvent extends BootpayManager {
|
|
|
50
51
|
};
|
|
51
52
|
afterBind?: Function;
|
|
52
53
|
});
|
|
54
|
+
setChildInstance(childInstance: any): void;
|
|
53
55
|
bind(resolve?: Function, reject?: Function): void;
|
|
54
56
|
hookFunction(hook: string): any;
|
|
55
57
|
reject(data: any): void;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export declare class BootpayStoreManager {
|
|
2
2
|
data: any;
|
|
3
|
+
hooks: {
|
|
4
|
+
[key: string]: Function;
|
|
5
|
+
};
|
|
3
6
|
constructor();
|
|
4
7
|
encryptKey(): string;
|
|
5
8
|
encrypt(data: object | string): string;
|
|
6
9
|
decrypt(data: string): any | string;
|
|
10
|
+
callHook(name: string, ...args: any[]): any;
|
|
7
11
|
}
|
|
@@ -4,7 +4,7 @@ import { BootpayStoreManager } from './bootpay-store';
|
|
|
4
4
|
|
|
5
5
|
export declare class WidgetStoreManager extends BootpayStoreManager {
|
|
6
6
|
el: string | undefined;
|
|
7
|
-
data:
|
|
7
|
+
data: RequestBootpayWidgetModel;
|
|
8
8
|
termsPassed: boolean;
|
|
9
9
|
widgetExtra: ExtraModel | undefined;
|
|
10
10
|
widgetType: number;
|
|
@@ -296,4 +296,17 @@ export interface PopupDisplayResponseModel {
|
|
|
296
296
|
export interface CommissionKeyModel {
|
|
297
297
|
commerce?: string
|
|
298
298
|
marketer?: string
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export interface BootpaySliderOption {
|
|
302
|
+
title?: string
|
|
303
|
+
responseEvent: string
|
|
304
|
+
sliders: BootpaySliderSelectOption[]
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export interface BootpaySliderSelectOption {
|
|
308
|
+
key: string
|
|
309
|
+
name: string
|
|
310
|
+
hook?: Function
|
|
311
|
+
class?: string
|
|
299
312
|
}
|
|
@@ -10,6 +10,7 @@ export interface RequestBootpayWidgetModel extends Partial<RequestPaymentModel>
|
|
|
10
10
|
sandbox?: boolean
|
|
11
11
|
use_bootpay_inapp_sdk?: boolean
|
|
12
12
|
external_terms?: ExternalBootpayWidgetTermsModel[]
|
|
13
|
+
use_popup?: boolean
|
|
13
14
|
extra?: WidgetExtraModel
|
|
14
15
|
hooks?: WidgetHookFunction
|
|
15
16
|
}
|
|
@@ -73,6 +74,8 @@ export interface WidgetHookFunction {
|
|
|
73
74
|
paymentMethodUpdated?: (data: any) => void
|
|
74
75
|
termsConsentUpdated?: (data: any) => void
|
|
75
76
|
brandpayWalletUpdated?: (data: WidgetBrandpayWalletModel[]) => void
|
|
77
|
+
brandpayManagerWindowClosed?: () => void
|
|
78
|
+
brandpayManagerWindowReady?: (data: any) => void
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
export interface WidgetBrandpayUpdateModel {
|
|
@@ -104,4 +107,15 @@ export interface WidgetBrandpayWalletModel {
|
|
|
104
107
|
card_no?: string
|
|
105
108
|
card_type?: number
|
|
106
109
|
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface RequestBootpayBrandpayLaunchManager {
|
|
113
|
+
application_id: string
|
|
114
|
+
widget_key: string
|
|
115
|
+
user_token: string
|
|
116
|
+
el?: string
|
|
117
|
+
sandbox?: boolean
|
|
118
|
+
use_popup?: boolean
|
|
119
|
+
subscribe_brandpay_type?: 'select' | 'sequential' | null | undefined
|
|
120
|
+
hooks?: WidgetHookFunction
|
|
107
121
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '../types/bootpay-widget-interface';
|
|
2
|
-
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../types/bootpay-interface';
|
|
3
|
-
|
|
4
|
-
export interface WidgetStoreModel {
|
|
5
|
-
el: string | undefined;
|
|
6
|
-
data?: RequestBootpayWidgetModel;
|
|
7
|
-
termsPassed: boolean;
|
|
8
|
-
widgetType: number;
|
|
9
|
-
widgetExtra: WidgetExtraModel | undefined;
|
|
10
|
-
hooks: WidgetHookFunction;
|
|
11
|
-
setWidgetData(element: string, data: RequestBootpayWidgetModel): void;
|
|
12
|
-
setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
13
|
-
updateOnProcessing(data: WidgetStoreData): void;
|
|
14
|
-
encryptParameters(): string;
|
|
15
|
-
encrypt(data: object | string): string;
|
|
16
|
-
decrypt(data: string): any | string;
|
|
17
|
-
getExtra(externalExtra: ExtraModel | undefined): ExtraModel;
|
|
18
|
-
getRequestPaymentData(data: RequestBootpayWidgetModel | RequestSubscriptionModel): RequestBootpayWidgetModel | RequestSubscriptionModel;
|
|
19
|
-
callHook(name: string, data: any): void;
|
|
20
|
-
}
|
|
21
|
-
export declare const WidgetStore: WidgetStoreModel;
|