@bootpay/client-js 5.2.0-beta.16 → 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 +984 -917
- package/dist/index.umd.js +34 -17
- 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/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/types/bootpay-interface.d.ts +13 -0
- package/dist/src/types/bootpay-widget-interface.d.ts +6 -1
- package/package.json +1 -1
- package/dist/src/support/widget-store.d.ts +0 -21
|
@@ -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 {};
|
|
@@ -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
|
}
|
|
@@ -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 {
|
|
@@ -110,7 +113,9 @@ export interface RequestBootpayBrandpayLaunchManager {
|
|
|
110
113
|
application_id: string
|
|
111
114
|
widget_key: string
|
|
112
115
|
user_token: string
|
|
116
|
+
el?: string
|
|
113
117
|
sandbox?: boolean
|
|
114
|
-
|
|
118
|
+
use_popup?: boolean
|
|
119
|
+
subscribe_brandpay_type?: 'select' | 'sequential' | null | undefined
|
|
115
120
|
hooks?: WidgetHookFunction
|
|
116
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;
|