@bootpay/client-js 4.0.0-beta.7 → 4.0.2
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 +22 -0
- package/bootpay-sdk.d.ts +2 -2
- package/bootpay-sdk.js +1 -1
- package/bootpay.d.ts +2 -2
- package/bootpay.js +1 -1
- package/lib/analytics.d.ts +7 -1
- package/lib/bootpay.d.ts +8 -1
- package/lib/event/payment.d.ts +1 -0
- package/models/bootpay-interface.d.ts +17 -0
- package/package.json +10 -10
- package/support/bootpay-manager.d.ts +1 -0
- package/support/storage.d.ts +1 -0
- package/test/index.d.ts +1 -0
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 } 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
|
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
|
@@ -113,6 +113,10 @@ export interface BootpayAnalyticsModel {
|
|
|
113
113
|
page_type?: string;
|
|
114
114
|
items?: Array<ItemAnalyticsModel>;
|
|
115
115
|
}
|
|
116
|
+
export interface BootpayAnalyticsBaseModel {
|
|
117
|
+
uuid: string;
|
|
118
|
+
time: number;
|
|
119
|
+
}
|
|
116
120
|
/**
|
|
117
121
|
* 통계 User Model
|
|
118
122
|
* Comment by GOSOMI
|
|
@@ -128,12 +132,20 @@ export interface BootpayAnalyticsUserModel {
|
|
|
128
132
|
gender: string;
|
|
129
133
|
area: string;
|
|
130
134
|
}
|
|
135
|
+
interface OpenTypeFilterModel {
|
|
136
|
+
browser: string;
|
|
137
|
+
open_type: 'iframe' | 'popup' | 'redirect';
|
|
138
|
+
}
|
|
131
139
|
/**
|
|
132
140
|
* Extra Model
|
|
133
141
|
* Comment by GOSOMI
|
|
134
142
|
* @date: 2021-04-13
|
|
135
143
|
*/
|
|
136
144
|
export interface ExtraModel {
|
|
145
|
+
open_type?: string;
|
|
146
|
+
browser_open_type?: Array<OpenTypeFilterModel>;
|
|
147
|
+
escrow?: boolean;
|
|
148
|
+
redirect_url?: string;
|
|
137
149
|
card_quota?: string;
|
|
138
150
|
seller_name?: string;
|
|
139
151
|
delivery_day?: number;
|
|
@@ -150,6 +162,10 @@ export interface ExtraModel {
|
|
|
150
162
|
display_success_result?: boolean;
|
|
151
163
|
display_error_result?: boolean;
|
|
152
164
|
subscription_comment?: string;
|
|
165
|
+
test_deposit?: boolean;
|
|
166
|
+
ad_id?: string;
|
|
167
|
+
sim_operator?: string;
|
|
168
|
+
installer_package_name?: string;
|
|
153
169
|
}
|
|
154
170
|
export interface ConfirmModel {
|
|
155
171
|
event: string;
|
|
@@ -172,3 +188,4 @@ export interface EnvironmentModel {
|
|
|
172
188
|
width: number;
|
|
173
189
|
height: number;
|
|
174
190
|
}
|
|
191
|
+
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.2",
|
|
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/storage.d.ts
CHANGED
package/test/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|