@bootpay/client-js 4.0.6 → 4.1.0-beta.1
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 +21 -2
- package/bootpay-sdk.js +1 -1
- package/bootpay.d.ts +1 -0
- package/bootpay.js +1 -1
- package/lib/bootpay.d.ts +1 -1
- package/lib/event/payment.d.ts +2 -2
- package/lib/event/polling.d.ts +1 -1
- package/lib/event/user-token.d.ts +1 -1
- package/lib/locale/message.d.ts +85 -0
- package/lib/template/payment.d.ts +7 -0
- package/models/bootpay-interface.d.ts +23 -17
- package/package.json +4 -3
- package/support/environment.d.ts +2 -0
package/lib/bootpay.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BootpayManager } from "../support/bootpay-manager";
|
|
2
2
|
import { SessionStorageManager } from "../support/storage";
|
|
3
|
-
import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestSubscriptionModel } from "models/bootpay-interface";
|
|
3
|
+
import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestSubscriptionModel } from "../models/bootpay-interface";
|
|
4
4
|
import { EventLoggerManager } from "../support/logger";
|
|
5
5
|
export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
6
6
|
$session: SessionStorageManager;
|
package/lib/event/payment.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { BootpayWindowEvent } from "support/event";
|
|
3
|
-
import { BootpayPollingEvent } from "
|
|
2
|
+
import { BootpayWindowEvent } from "../../support/event";
|
|
3
|
+
import { BootpayPollingEvent } from "./polling";
|
|
4
4
|
interface PollingDataModel {
|
|
5
5
|
applicationId: string;
|
|
6
6
|
receiptId: string;
|
package/lib/event/polling.d.ts
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const BootpayMessage: {
|
|
2
|
+
startProgress: {
|
|
3
|
+
PAYMENT: {
|
|
4
|
+
korean: string;
|
|
5
|
+
english: string;
|
|
6
|
+
};
|
|
7
|
+
CARD_SUBSCRIPTION: {
|
|
8
|
+
korean: string;
|
|
9
|
+
english: string;
|
|
10
|
+
};
|
|
11
|
+
AUTH: {
|
|
12
|
+
korean: string;
|
|
13
|
+
english: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
popupLocaleMessage: {
|
|
17
|
+
message: {
|
|
18
|
+
korean: string;
|
|
19
|
+
english: string;
|
|
20
|
+
};
|
|
21
|
+
button: {
|
|
22
|
+
korean: string;
|
|
23
|
+
english: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
popupMessage: {
|
|
27
|
+
message: {
|
|
28
|
+
PAYMENT: {
|
|
29
|
+
korean: string;
|
|
30
|
+
english: string;
|
|
31
|
+
};
|
|
32
|
+
CARD_SUBSCRIPTION: {
|
|
33
|
+
korean: string;
|
|
34
|
+
english: string;
|
|
35
|
+
};
|
|
36
|
+
AUTH: {
|
|
37
|
+
korean: string;
|
|
38
|
+
english: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
button: {
|
|
42
|
+
PAYMENT: {
|
|
43
|
+
korean: string;
|
|
44
|
+
english: string;
|
|
45
|
+
};
|
|
46
|
+
CARD_SUBSCRIPTION: {
|
|
47
|
+
korean: string;
|
|
48
|
+
english: string;
|
|
49
|
+
};
|
|
50
|
+
AUTH: {
|
|
51
|
+
korean: string;
|
|
52
|
+
english: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
closeMessage: {
|
|
57
|
+
PAYMENT: {
|
|
58
|
+
korean: string;
|
|
59
|
+
english: string;
|
|
60
|
+
};
|
|
61
|
+
CARD_SUBSCRIPTION: {
|
|
62
|
+
korean: string;
|
|
63
|
+
english: string;
|
|
64
|
+
};
|
|
65
|
+
AUTH: {
|
|
66
|
+
korean: string;
|
|
67
|
+
english: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
confirmNotYet: {
|
|
71
|
+
PAYMENT: {
|
|
72
|
+
korean: string;
|
|
73
|
+
english: string;
|
|
74
|
+
};
|
|
75
|
+
CARD_SUBSCRIPTION: {
|
|
76
|
+
korean: string;
|
|
77
|
+
english: string;
|
|
78
|
+
};
|
|
79
|
+
AUTH: {
|
|
80
|
+
korean: string;
|
|
81
|
+
english: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export declare const getLocaleMessage: (key: string, locale: string) => any;
|
|
@@ -21,8 +21,15 @@ declare class TemplatePaymentManager extends TemplateManager {
|
|
|
21
21
|
mode: string;
|
|
22
22
|
modeToMessage: any;
|
|
23
23
|
modeApiUrl: any;
|
|
24
|
+
popupLocaleMessage: any;
|
|
24
25
|
constructor();
|
|
25
26
|
template(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Locale을 설정
|
|
29
|
+
* Comment by GOSOMI
|
|
30
|
+
* @date: 2022-06-09
|
|
31
|
+
*/
|
|
32
|
+
templateReload(): void;
|
|
26
33
|
/**
|
|
27
34
|
* 결제를 시작한다
|
|
28
35
|
* Comment by GOSOMI
|
|
@@ -9,8 +9,8 @@ export interface RequestPaymentModel {
|
|
|
9
9
|
sdk_version?: string;
|
|
10
10
|
sdk_type?: number;
|
|
11
11
|
application_id?: string;
|
|
12
|
-
pg
|
|
13
|
-
method
|
|
12
|
+
pg?: string;
|
|
13
|
+
method?: string | Array<string>;
|
|
14
14
|
order_name: string;
|
|
15
15
|
price: number;
|
|
16
16
|
tax_free?: number;
|
|
@@ -68,11 +68,11 @@ export interface RequestAuthenticationModel {
|
|
|
68
68
|
* @date: 2021-04-13
|
|
69
69
|
*/
|
|
70
70
|
export interface UserModel {
|
|
71
|
-
id
|
|
72
|
-
username
|
|
73
|
-
email
|
|
74
|
-
addr
|
|
75
|
-
phone
|
|
71
|
+
id?: string | undefined;
|
|
72
|
+
username?: string;
|
|
73
|
+
email?: string;
|
|
74
|
+
addr?: string;
|
|
75
|
+
phone?: string;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Item Model
|
|
@@ -80,8 +80,8 @@ export interface UserModel {
|
|
|
80
80
|
* @date: 2021-04-13
|
|
81
81
|
*/
|
|
82
82
|
export interface ItemModel {
|
|
83
|
-
id
|
|
84
|
-
code
|
|
83
|
+
id: string;
|
|
84
|
+
code?: string;
|
|
85
85
|
name: string;
|
|
86
86
|
price: number;
|
|
87
87
|
img?: string;
|
|
@@ -136,12 +136,12 @@ export interface BootpayAnalyticsBaseModel {
|
|
|
136
136
|
export interface BootpayAnalyticsUserModel {
|
|
137
137
|
application_id?: string;
|
|
138
138
|
id: string;
|
|
139
|
-
username
|
|
140
|
-
birth
|
|
141
|
-
phone
|
|
142
|
-
email
|
|
143
|
-
gender
|
|
144
|
-
area
|
|
139
|
+
username?: string;
|
|
140
|
+
birth?: string;
|
|
141
|
+
phone?: string;
|
|
142
|
+
email?: string;
|
|
143
|
+
gender?: string;
|
|
144
|
+
area?: string;
|
|
145
145
|
}
|
|
146
146
|
interface OpenTypeFilterModel {
|
|
147
147
|
browser: string;
|
|
@@ -172,13 +172,19 @@ export interface ExtraModel {
|
|
|
172
172
|
confirm_message?: string;
|
|
173
173
|
display_success_result?: boolean;
|
|
174
174
|
display_error_result?: boolean;
|
|
175
|
-
subscription_comment?: string;
|
|
176
175
|
test_deposit?: boolean;
|
|
177
176
|
ad_id?: string;
|
|
178
177
|
sim_operator?: string;
|
|
179
178
|
installer_package_name?: string;
|
|
180
179
|
timeout?: number;
|
|
181
180
|
common_event_webhook?: boolean;
|
|
181
|
+
first_subscription_comment?: string;
|
|
182
|
+
subscription_comment?: string;
|
|
183
|
+
subscribe_test_payment?: boolean;
|
|
184
|
+
enable_easy_payments?: Array<string>;
|
|
185
|
+
except_card_companies?: Array<string>;
|
|
186
|
+
enable_card_companies?: Array<string>;
|
|
187
|
+
minimum_price_limit?: boolean;
|
|
182
188
|
}
|
|
183
189
|
export interface ConfirmModel {
|
|
184
190
|
event: string;
|
|
@@ -188,7 +194,7 @@ export interface ConfirmModel {
|
|
|
188
194
|
}
|
|
189
195
|
export interface ErrorModel {
|
|
190
196
|
event: string;
|
|
191
|
-
pg_error_code
|
|
197
|
+
pg_error_code?: string;
|
|
192
198
|
error_code: string;
|
|
193
199
|
message: string;
|
|
194
200
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.1.0-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -9,16 +9,17 @@
|
|
|
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.
|
|
12
|
+
"typescript": "^4.7.3"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@webpack-cli/serve": "^1.6.1",
|
|
16
16
|
"webpack-dev-server": "^4.7.4",
|
|
17
17
|
"webpack": "^5.69.1",
|
|
18
18
|
"webpack-cli": "^4.9.2",
|
|
19
|
-
"axios": "^0.
|
|
19
|
+
"axios": "^0.27.2",
|
|
20
20
|
"crypto-js": "^3.3.0",
|
|
21
21
|
"@types/crypto-js": "^4.0.1",
|
|
22
|
+
"@types/axios": "^0.14.0",
|
|
22
23
|
"@babel/core": "^7.13.15",
|
|
23
24
|
"@babel/plugin-transform-regenerator": "^7.13.15",
|
|
24
25
|
"@babel/plugin-transform-runtime": "^7.13.15",
|
package/support/environment.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const Environment: {
|
|
2
2
|
mode: string;
|
|
3
|
+
locale: string;
|
|
3
4
|
applicationId: string;
|
|
4
5
|
API_URL: any;
|
|
5
6
|
ANALYTICS_URL: any;
|
|
@@ -9,6 +10,7 @@ export declare const Environment: {
|
|
|
9
10
|
sdkName: number;
|
|
10
11
|
set(env: string): void;
|
|
11
12
|
setApplicationId(applicationId: string | undefined): string | undefined;
|
|
13
|
+
setLocale(locale: string): void;
|
|
12
14
|
currentApplicationId(applicationId?: string | undefined): string | undefined;
|
|
13
15
|
setDevelopmentHost(host: string): void;
|
|
14
16
|
setVersion(version: string, name: string): void;
|