@bootpay/client-js 5.0.0-rc.6 → 5.0.0
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/README.md +3 -1
- package/dist/index.es.js +3921 -356
- package/dist/index.umd.js +19 -2
- package/dist/package.json.d.ts +2 -1
- package/dist/src/bootpay-widget.d.ts +3 -0
- package/dist/src/lib/bootpay-widget.d.ts +2 -98
- package/dist/src/lib/event/payment.d.ts +0 -3
- package/dist/src/lib/template/confirm-modal.d.ts +17 -0
- package/dist/src/lib/template/oopay.d.ts +1 -1
- package/dist/src/lib/template/payment.d.ts +8 -2
- package/dist/src/models/bootpay-widget-interface.d.ts +1 -0
- package/dist/src/support/logger.d.ts +1 -1
- package/dist/src/support/storage.d.ts +4 -4
- package/dist/src/support/template-manager.d.ts +2 -1
- package/dist/src/support/util.d.ts +1 -0
- package/dist/src/support/widget-store.d.ts +5 -0
- package/package.json +2 -1
- package/tsconfig.json +1 -1
package/dist/package.json.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"styles": "dist/index.css",
|
|
@@ -27,6 +27,7 @@ declare const _default: {
|
|
|
27
27
|
"@babel/plugin-transform-runtime": "^7.22.5",
|
|
28
28
|
"@babel/plugin-transform-object-assign": "^7.22.5",
|
|
29
29
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
30
|
+
"@babel/plugin-transform-destructuring": "^7.24.8",
|
|
30
31
|
"@babel/preset-env": "^7.22.5",
|
|
31
32
|
"@babel/preset-typescript": "^7.22.5",
|
|
32
33
|
"@babel/runtime-corejs3": "^7.22.5",
|
|
@@ -14,6 +14,9 @@ interface BootpayWidgetInterface {
|
|
|
14
14
|
selectPayment(data: ExternalBootpaySelectModel): void;
|
|
15
15
|
setLogLevel(level: number): void;
|
|
16
16
|
sendMessage(event: string, data?: any): void;
|
|
17
|
+
setDevice(deviceType: string): number;
|
|
18
|
+
alertConfirm(): void;
|
|
19
|
+
alertCancel(): void;
|
|
17
20
|
}
|
|
18
21
|
declare global {
|
|
19
22
|
interface Window {
|
|
@@ -2,110 +2,14 @@ import { BootpayManager } from '../support/bootpay-manager';
|
|
|
2
2
|
import { ExternalBootpaySelectModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../models/bootpay-widget-interface';
|
|
3
3
|
import { ExtraModel, RequestPaymentModel } from '../models/bootpay-interface';
|
|
4
4
|
export declare class BootpayWidgetWindowManager extends BootpayManager {
|
|
5
|
-
message:
|
|
6
|
-
startProgress: {
|
|
7
|
-
PAYMENT: {
|
|
8
|
-
ko: string;
|
|
9
|
-
en: string;
|
|
10
|
-
};
|
|
11
|
-
CARD_SUBSCRIPTION: {
|
|
12
|
-
ko: string;
|
|
13
|
-
en: string;
|
|
14
|
-
};
|
|
15
|
-
AUTH: {
|
|
16
|
-
ko: string;
|
|
17
|
-
en: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
popupLocaleMessage: {
|
|
21
|
-
message: {
|
|
22
|
-
ko: string;
|
|
23
|
-
en: string;
|
|
24
|
-
};
|
|
25
|
-
button: {
|
|
26
|
-
ko: string;
|
|
27
|
-
en: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
popupMessage: {
|
|
31
|
-
message: {
|
|
32
|
-
PAYMENT: {
|
|
33
|
-
ko: string;
|
|
34
|
-
en: string;
|
|
35
|
-
};
|
|
36
|
-
CARD_SUBSCRIPTION: {
|
|
37
|
-
ko: string;
|
|
38
|
-
en: string;
|
|
39
|
-
};
|
|
40
|
-
AUTH: {
|
|
41
|
-
ko: string;
|
|
42
|
-
en: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
button: {
|
|
46
|
-
PAYMENT: {
|
|
47
|
-
ko: string;
|
|
48
|
-
en: string;
|
|
49
|
-
};
|
|
50
|
-
CARD_SUBSCRIPTION: {
|
|
51
|
-
ko: string;
|
|
52
|
-
en: string;
|
|
53
|
-
};
|
|
54
|
-
AUTH: {
|
|
55
|
-
ko: string;
|
|
56
|
-
en: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
closeMessage: {
|
|
61
|
-
PAYMENT: {
|
|
62
|
-
ko: string;
|
|
63
|
-
en: string;
|
|
64
|
-
};
|
|
65
|
-
CARD_SUBSCRIPTION: {
|
|
66
|
-
ko: string;
|
|
67
|
-
en: string;
|
|
68
|
-
};
|
|
69
|
-
AUTH: {
|
|
70
|
-
ko: string;
|
|
71
|
-
en: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
confirmNotYet: {
|
|
75
|
-
PAYMENT: {
|
|
76
|
-
ko: string;
|
|
77
|
-
en: string;
|
|
78
|
-
};
|
|
79
|
-
CARD_SUBSCRIPTION: {
|
|
80
|
-
ko: string;
|
|
81
|
-
en: string;
|
|
82
|
-
};
|
|
83
|
-
AUTH: {
|
|
84
|
-
ko: string;
|
|
85
|
-
en: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
notSelectPayment: {
|
|
89
|
-
ko: string;
|
|
90
|
-
en: string;
|
|
91
|
-
};
|
|
92
|
-
termsNotAgree: {
|
|
93
|
-
ko: string;
|
|
94
|
-
en: string;
|
|
95
|
-
};
|
|
96
|
-
notSelectOOPay: {
|
|
97
|
-
ko: string;
|
|
98
|
-
en: string;
|
|
99
|
-
};
|
|
100
|
-
getLocaleMessage: (key: string, locale: string) => any;
|
|
101
|
-
};
|
|
5
|
+
message: any;
|
|
102
6
|
constructor();
|
|
103
7
|
initialize(): void;
|
|
104
8
|
render(el: string, data: RequestBootpayWidgetModel): void;
|
|
105
9
|
update(data: RequestBootpayWidgetModel): void;
|
|
106
10
|
rerender(): void;
|
|
107
11
|
destroy(): void;
|
|
108
|
-
selectPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean
|
|
12
|
+
selectPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
109
13
|
currentTermsCondition(): ResponseBootpayWidgetTermsModel[];
|
|
110
14
|
/**
|
|
111
15
|
* 부트페이 결제 요청을 한다
|
|
@@ -19,8 +19,6 @@ declare class BootpayPaymentEventManager extends BootpayWindowEvent {
|
|
|
19
19
|
* 결제 이벤트를 바인딩한다
|
|
20
20
|
* Comment by GOSOMI
|
|
21
21
|
* @date: 2021-05-11
|
|
22
|
-
* @param resolve: Function
|
|
23
|
-
* @param reject: Function
|
|
24
22
|
*/
|
|
25
23
|
bind(resolve: Function, reject: Function): void;
|
|
26
24
|
/**
|
|
@@ -41,7 +39,6 @@ declare class BootpayPaymentEventManager extends BootpayWindowEvent {
|
|
|
41
39
|
* Polling Event를 시작한다
|
|
42
40
|
* Comment by GOSOMI
|
|
43
41
|
* @date: 2021-12-29
|
|
44
|
-
* @param
|
|
45
42
|
*/
|
|
46
43
|
startPollingEvent(): void;
|
|
47
44
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
+
declare class ConfirmModalManager extends TemplateManager {
|
|
3
|
+
$windowId: string;
|
|
4
|
+
$modalWindowId: string;
|
|
5
|
+
$template: string;
|
|
6
|
+
$additionalClass: string;
|
|
7
|
+
$title: string;
|
|
8
|
+
$message: string;
|
|
9
|
+
$confirmButtonText: string;
|
|
10
|
+
$cancelButtonText: string;
|
|
11
|
+
constructor();
|
|
12
|
+
template(): string;
|
|
13
|
+
show(message: string, title?: string, confirmButton?: string, cancelButton?: string): void;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ConfirmModal: ConfirmModalManager;
|
|
17
|
+
export {};
|
|
@@ -10,7 +10,7 @@ declare class OOpayTemplateManager extends TemplateManager {
|
|
|
10
10
|
constructor();
|
|
11
11
|
template(): string;
|
|
12
12
|
createIFrame(url: string): void;
|
|
13
|
-
addWallet(): void;
|
|
13
|
+
addWallet(url: string): void;
|
|
14
14
|
removeWallet(walletId: string): void;
|
|
15
15
|
showCardInterestInformation(data: any): void;
|
|
16
16
|
destroy(): void;
|
|
@@ -46,6 +46,12 @@ declare class TemplatePaymentManager extends TemplateManager {
|
|
|
46
46
|
* @returns void
|
|
47
47
|
*/
|
|
48
48
|
setConfirmFormUrl(url: string): void;
|
|
49
|
+
/**
|
|
50
|
+
* 결제 승인시 redirect 인 경우 _self target으로 설정한다
|
|
51
|
+
* Comment by GOSOMI
|
|
52
|
+
* @date: 2024-06-12
|
|
53
|
+
*/
|
|
54
|
+
setConfirmRedirect(url: string): void;
|
|
49
55
|
/**
|
|
50
56
|
* 결제 승인
|
|
51
57
|
* Comment by GOSOMI
|
|
@@ -85,7 +91,7 @@ declare class TemplatePaymentManager extends TemplateManager {
|
|
|
85
91
|
* @param url: string | undefined
|
|
86
92
|
* @returns string
|
|
87
93
|
*/
|
|
88
|
-
getPopupUrl(url: string | undefined): string
|
|
94
|
+
getPopupUrl(url: string | undefined): string;
|
|
89
95
|
/**
|
|
90
96
|
* Popup 이후 Parent 페이지 이동 관련 이벤트 컨트롤
|
|
91
97
|
* Comment by GOSOMI
|
|
@@ -118,7 +124,7 @@ declare class TemplatePaymentManager extends TemplateManager {
|
|
|
118
124
|
* @date: 2021-05-12
|
|
119
125
|
* @returns void
|
|
120
126
|
*/
|
|
121
|
-
destroy(): void;
|
|
127
|
+
destroy(callCloseEvent?: boolean): void;
|
|
122
128
|
/**
|
|
123
129
|
* IFrame 창을 컨트롤한다
|
|
124
130
|
* Comment by GOSOMI
|
|
@@ -13,7 +13,7 @@ export declare const Logger: {
|
|
|
13
13
|
* @param logLevel: number
|
|
14
14
|
*/
|
|
15
15
|
setLogLevel(logLevel: number): void;
|
|
16
|
-
messageStringify(key: string, message: any): string
|
|
16
|
+
messageStringify(key: string, message: any): string;
|
|
17
17
|
debug(key: string, message: any): void;
|
|
18
18
|
info(key: string, message: any): void;
|
|
19
19
|
warn(key: string, message: any): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BootpayManager } from "./bootpay-manager";
|
|
2
2
|
export interface SessionUserInterface {
|
|
3
|
-
id
|
|
4
|
-
time
|
|
3
|
+
id?: string;
|
|
4
|
+
time?: number;
|
|
5
5
|
}
|
|
6
6
|
declare class StorageManager extends BootpayManager {
|
|
7
7
|
$storage: any;
|
|
@@ -37,7 +37,7 @@ declare class StorageManager extends BootpayManager {
|
|
|
37
37
|
* @param uuid: string
|
|
38
38
|
* @returns string
|
|
39
39
|
*/
|
|
40
|
-
setUUID(uuid: string): string;
|
|
40
|
+
setUUID(uuid: string | undefined): string;
|
|
41
41
|
/**
|
|
42
42
|
* Local Storage 에서 JSON -> Object 변환해서 가져온다
|
|
43
43
|
* Comment by Gosomi
|
|
@@ -86,7 +86,7 @@ export declare class SessionStorageManager extends StorageManager {
|
|
|
86
86
|
* Comment by GOSOMI
|
|
87
87
|
* @date: 2022-03-02 @returns
|
|
88
88
|
*/
|
|
89
|
-
setUser(data: SessionUserInterface | undefined): SessionUserInterface
|
|
89
|
+
setUser(data: SessionUserInterface | undefined): SessionUserInterface;
|
|
90
90
|
/**
|
|
91
91
|
* 사용자 정보를 가져온다
|
|
92
92
|
* Comment by GOSOMI
|
|
@@ -10,6 +10,7 @@ export declare class TemplateManager extends BootpayManager {
|
|
|
10
10
|
* @date: 2022-02-16
|
|
11
11
|
*/
|
|
12
12
|
createTemplateHtml(): void;
|
|
13
|
-
bodyOpen(): void;
|
|
13
|
+
bodyOpen(addClass?: string | undefined): void;
|
|
14
|
+
bodyClose(): void;
|
|
14
15
|
templateResize(el: string, resizeData: any): void;
|
|
15
16
|
}
|
|
@@ -2,3 +2,4 @@ export declare const generateUUID: () => string;
|
|
|
2
2
|
export declare const isBlank: (value: any) => boolean;
|
|
3
3
|
export declare const isPresent: (value: any) => boolean;
|
|
4
4
|
export declare const isType: (value: any, type: string) => boolean;
|
|
5
|
+
export declare const toUrl: (url: string, parameters?: any) => string;
|
|
@@ -16,6 +16,7 @@ export interface WidgetStoreModel {
|
|
|
16
16
|
termsPassed: boolean;
|
|
17
17
|
sandbox: boolean;
|
|
18
18
|
useTerms: boolean;
|
|
19
|
+
useBootpayInAppSdk: boolean;
|
|
19
20
|
externalTerms?: ExternalBootpayWidgetTermsModel[];
|
|
20
21
|
extra: ExtraModel;
|
|
21
22
|
widgetExtra: WidgetExtraModel | undefined;
|
|
@@ -23,6 +24,9 @@ export interface WidgetStoreModel {
|
|
|
23
24
|
setWidgetData(data: WidgetStoreData): void;
|
|
24
25
|
setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
25
26
|
updateOnProcessing(data: WidgetStoreData): void;
|
|
27
|
+
encryptParameters(): string;
|
|
28
|
+
encrypt(data: object | string): string;
|
|
29
|
+
decrypt(data: string): any | string;
|
|
26
30
|
}
|
|
27
31
|
export interface WidgetStoreData {
|
|
28
32
|
el?: string;
|
|
@@ -36,6 +40,7 @@ export interface WidgetStoreData {
|
|
|
36
40
|
method?: string;
|
|
37
41
|
wallet_id?: string;
|
|
38
42
|
use_only_oopay?: boolean;
|
|
43
|
+
use_bootpay_inapp_sdk?: boolean;
|
|
39
44
|
use_terms?: boolean;
|
|
40
45
|
sandbox?: boolean;
|
|
41
46
|
widget_key?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"styles": "dist/index.css",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@babel/plugin-transform-runtime": "^7.22.5",
|
|
28
28
|
"@babel/plugin-transform-object-assign": "^7.22.5",
|
|
29
29
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
30
|
+
"@babel/plugin-transform-destructuring": "^7.24.8",
|
|
30
31
|
"@babel/preset-env": "^7.22.5",
|
|
31
32
|
"@babel/preset-typescript": "^7.22.5",
|
|
32
33
|
"@babel/runtime-corejs3": "^7.22.5",
|