@bootpay/client-js 4.0.0-beta.8 → 4.0.3
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 +27 -0
- package/bootpay-sdk.d.ts +2 -1
- package/bootpay-sdk.js +1 -1
- package/bootpay.d.ts +3 -2
- package/bootpay.js +1 -1
- package/index.d.ts +2 -0
- package/lib/analytics.d.ts +13 -1
- package/lib/bootpay.d.ts +8 -1
- package/lib/event/payment.d.ts +1 -0
- package/lib/template/payment.d.ts +1 -0
- package/models/bootpay-interface.d.ts +29 -2
- package/package.json +10 -10
- package/support/bootpay-manager.d.ts +1 -0
- package/support/logger.d.ts +9 -0
- package/support/storage.d.ts +1 -0
- package/test/index.d.ts +1 -0
package/index.d.ts
CHANGED
package/lib/analytics.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { Resource } from '../support/resource';
|
|
2
2
|
import { SessionStorageManager } from '../support/storage';
|
|
3
|
-
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel } from '../models/bootpay-interface';
|
|
3
|
+
import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../models/bootpay-interface';
|
|
4
4
|
export declare class BootpayAnalyticsManager extends Resource {
|
|
5
5
|
$session: SessionStorageManager;
|
|
6
6
|
constructor();
|
|
7
|
+
/**
|
|
8
|
+
* 인앱을 위한 통계 정보 추가
|
|
9
|
+
* Comment by GOSOMI
|
|
10
|
+
* @date: 2022-05-09
|
|
11
|
+
*/
|
|
12
|
+
setAnalyticsData(data: BootpayAnalyticsBaseModel): void;
|
|
7
13
|
/**
|
|
8
14
|
* 일반적인 통계 데이터를 전송
|
|
9
15
|
* Comment by GOSOMI
|
|
@@ -22,5 +28,11 @@ export declare class BootpayAnalyticsManager extends Resource {
|
|
|
22
28
|
* @date: 2022-03-02
|
|
23
29
|
*/
|
|
24
30
|
logout(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Analytics Key to V1 Filter
|
|
33
|
+
* Comment by GOSOMI
|
|
34
|
+
* @date: 2022-05-09
|
|
35
|
+
*/
|
|
36
|
+
generateItemKeyToVersion1(items: Array<ItemAnalyticsModel>): Array<ItemAnalyticsLegacyModel> | undefined;
|
|
25
37
|
}
|
|
26
38
|
export declare const BootpayAnalytics: BootpayAnalyticsManager;
|
package/lib/bootpay.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
|
9
9
|
platformType: number;
|
|
10
10
|
$transactionKey: string;
|
|
11
11
|
extra: ExtraModel | undefined;
|
|
12
|
+
browserBootpayFilter: any;
|
|
12
13
|
static invalidRequestParams: any;
|
|
13
14
|
constructor();
|
|
14
15
|
/**
|
|
@@ -30,7 +31,7 @@ export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
|
30
31
|
* Comment by GOSOMI
|
|
31
32
|
* @date: 2021-07-12
|
|
32
33
|
*/
|
|
33
|
-
eventDone(response: any): void;
|
|
34
|
+
eventDone(response: any, displaySuccessResult?: boolean): void;
|
|
34
35
|
/**
|
|
35
36
|
* 오류를 처리한다
|
|
36
37
|
* Comment by GOSOMI
|
|
@@ -72,6 +73,12 @@ export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
|
72
73
|
* @date: 2022-01-12
|
|
73
74
|
*/
|
|
74
75
|
displayResultErrorView(e: ErrorModel): void;
|
|
76
|
+
/**
|
|
77
|
+
* OpenTypeUserAgent Filter
|
|
78
|
+
* Comment by GOSOMI
|
|
79
|
+
* @date: 2022-05-09
|
|
80
|
+
*/
|
|
81
|
+
openTypeFilter(extra: ExtraModel): ExtraModel;
|
|
75
82
|
/**
|
|
76
83
|
* 요청 데이터 필수 값 체크
|
|
77
84
|
* Comment by GOSOMI
|
package/lib/event/payment.d.ts
CHANGED
|
@@ -89,11 +89,20 @@ export interface ItemModel {
|
|
|
89
89
|
cat3?: string;
|
|
90
90
|
}
|
|
91
91
|
export interface ItemAnalyticsModel {
|
|
92
|
+
cat1?: string;
|
|
93
|
+
cat2?: string;
|
|
94
|
+
cat3?: string;
|
|
95
|
+
img?: string;
|
|
96
|
+
name?: string;
|
|
97
|
+
id: string;
|
|
98
|
+
price: number;
|
|
99
|
+
}
|
|
100
|
+
export interface ItemAnalyticsLegacyModel {
|
|
92
101
|
cat1?: string;
|
|
93
102
|
cat2?: string;
|
|
94
103
|
cat3?: string;
|
|
95
104
|
item_img?: string;
|
|
96
|
-
item_name
|
|
105
|
+
item_name?: string;
|
|
97
106
|
unique: string;
|
|
98
107
|
price: number;
|
|
99
108
|
}
|
|
@@ -111,7 +120,11 @@ export interface BootpayAnalyticsModel {
|
|
|
111
120
|
sk?: string;
|
|
112
121
|
user_id?: string;
|
|
113
122
|
page_type?: string;
|
|
114
|
-
items?: Array<ItemAnalyticsModel>;
|
|
123
|
+
items?: Array<ItemAnalyticsModel> | Array<ItemAnalyticsLegacyModel>;
|
|
124
|
+
}
|
|
125
|
+
export interface BootpayAnalyticsBaseModel {
|
|
126
|
+
uuid: string;
|
|
127
|
+
time: number;
|
|
115
128
|
}
|
|
116
129
|
/**
|
|
117
130
|
* 통계 User Model
|
|
@@ -128,12 +141,20 @@ export interface BootpayAnalyticsUserModel {
|
|
|
128
141
|
gender: string;
|
|
129
142
|
area: string;
|
|
130
143
|
}
|
|
144
|
+
interface OpenTypeFilterModel {
|
|
145
|
+
browser: string;
|
|
146
|
+
open_type: 'iframe' | 'popup' | 'redirect';
|
|
147
|
+
}
|
|
131
148
|
/**
|
|
132
149
|
* Extra Model
|
|
133
150
|
* Comment by GOSOMI
|
|
134
151
|
* @date: 2021-04-13
|
|
135
152
|
*/
|
|
136
153
|
export interface ExtraModel {
|
|
154
|
+
open_type?: string;
|
|
155
|
+
browser_open_type?: Array<OpenTypeFilterModel>;
|
|
156
|
+
escrow?: boolean;
|
|
157
|
+
redirect_url?: string;
|
|
137
158
|
card_quota?: string;
|
|
138
159
|
seller_name?: string;
|
|
139
160
|
delivery_day?: number;
|
|
@@ -150,6 +171,11 @@ export interface ExtraModel {
|
|
|
150
171
|
display_success_result?: boolean;
|
|
151
172
|
display_error_result?: boolean;
|
|
152
173
|
subscription_comment?: string;
|
|
174
|
+
test_deposit?: boolean;
|
|
175
|
+
ad_id?: string;
|
|
176
|
+
sim_operator?: string;
|
|
177
|
+
installer_package_name?: string;
|
|
178
|
+
timeout?: number;
|
|
153
179
|
}
|
|
154
180
|
export interface ConfirmModel {
|
|
155
181
|
event: string;
|
|
@@ -172,3 +198,4 @@ export interface EnvironmentModel {
|
|
|
172
198
|
width: number;
|
|
173
199
|
height: number;
|
|
174
200
|
}
|
|
201
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"build": "rm -rf ./dist && NODE_ENV=build ./node_modules/.bin/webpack --output-path=./dist --mode=production && tsc --declaration && cp ./package.json dist/package.json && cp ./src/index.js ./dist/index.js && mv ./dist/src/* ./dist && rm -rf ./dist/src",
|
|
8
|
+
"build": "rm -rf ./dist && NODE_ENV=build ./node_modules/.bin/webpack --output-path=./dist --mode=production && tsc --declaration && cp ./package.json dist/package.json && cp ./src/index.js ./dist/index.js && mv ./dist/src/* ./dist && rm -rf ./dist/src && cp ./README.md dist/",
|
|
9
9
|
"deploy": "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
+
"typescript": "^4.6.2"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@webpack-cli/serve": "^1.6.1",
|
|
16
|
+
"webpack-dev-server": "^4.7.4",
|
|
17
|
+
"webpack": "^5.69.1",
|
|
18
|
+
"webpack-cli": "^4.9.2",
|
|
12
19
|
"axios": "^0.26.0",
|
|
13
20
|
"crypto-js": "^3.3.0",
|
|
14
21
|
"@types/crypto-js": "^4.0.1",
|
|
@@ -24,14 +31,7 @@
|
|
|
24
31
|
"css-loader": "^6.6.0",
|
|
25
32
|
"sass": "^1.49.9",
|
|
26
33
|
"sass-loader": "^12.6.0",
|
|
27
|
-
"style-loader": "^3.3.1"
|
|
28
|
-
"typescript": "^4.6.2",
|
|
29
|
-
"webpack": "^5.69.1",
|
|
30
|
-
"webpack-cli": "^4.9.2"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@webpack-cli/serve": "^1.6.1",
|
|
34
|
-
"webpack-dev-server": "^4.7.4"
|
|
34
|
+
"style-loader": "^3.3.1"
|
|
35
35
|
},
|
|
36
36
|
"resolutions": {
|
|
37
37
|
"@webpack-cli/serve": "^1.3.1"
|
package/support/logger.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export declare class EventLoggerManager extends Resource {
|
|
|
37
37
|
$tk?: string;
|
|
38
38
|
$application_id?: string;
|
|
39
39
|
$platformType?: number;
|
|
40
|
+
$receiptId?: string;
|
|
40
41
|
constructor();
|
|
41
42
|
/**
|
|
42
43
|
* Token키를 설정
|
|
@@ -46,9 +47,17 @@ export declare class EventLoggerManager extends Resource {
|
|
|
46
47
|
* @returns void
|
|
47
48
|
*/
|
|
48
49
|
setTokenKey(tokenKey: string): void;
|
|
50
|
+
setReceiptId(receiptId: string): void;
|
|
51
|
+
clearInstance(): void;
|
|
49
52
|
send(eventData: EventDataModel): Promise<import("axios").AxiosResponse<any, any>> | undefined;
|
|
50
53
|
sendError(eventData: EventDataModel): void;
|
|
51
54
|
setApplicationId(key: string | undefined): void;
|
|
55
|
+
/**
|
|
56
|
+
* 결제창 닫기 이벤트를 전송한다
|
|
57
|
+
* Comment by GOSOMI
|
|
58
|
+
* @date: 2022-05-13
|
|
59
|
+
*/
|
|
60
|
+
sendCloseEvent(): Promise<import("axios").AxiosResponse<any, any>> | undefined;
|
|
52
61
|
}
|
|
53
62
|
export declare const EventLogger: EventLoggerManager;
|
|
54
63
|
export {};
|
package/support/storage.d.ts
CHANGED
package/test/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|