@bootpay/client-js 4.0.8 → 4.1.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/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;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
- import { BootpayWindowEvent } from "support/event";
3
- import { BootpayPollingEvent } from "lib/event/polling";
2
+ import { BootpayWindowEvent } from "../../support/event";
3
+ import { BootpayPollingEvent } from "./polling";
4
4
  interface PollingDataModel {
5
5
  applicationId: string;
6
6
  receiptId: string;
@@ -1,4 +1,4 @@
1
- import { Resource } from "support/resource";
1
+ import { Resource } from "../../support/resource";
2
2
  export declare class BootpayPollingEvent extends Resource {
3
3
  constructor();
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { BootpayWindowEvent } from "support/event";
1
+ import { BootpayWindowEvent } from "../../support/event";
2
2
  export declare class BootpayUserTokenEventManager extends BootpayWindowEvent {
3
3
  $messageEventName: string;
4
4
  constructor();
@@ -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
@@ -136,12 +136,12 @@ export interface BootpayAnalyticsBaseModel {
136
136
  export interface BootpayAnalyticsUserModel {
137
137
  application_id?: string;
138
138
  id: string;
139
- username: string;
140
- birth: string;
141
- phone: string;
142
- email: string;
143
- gender: string;
144
- area: string;
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;
@@ -194,7 +194,7 @@ export interface ConfirmModel {
194
194
  }
195
195
  export interface ErrorModel {
196
196
  event: string;
197
- pg_error_code: string;
197
+ pg_error_code?: string;
198
198
  error_code: string;
199
199
  message: string;
200
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootpay/client-js",
3
- "version": "4.0.8",
3
+ "version": "4.1.0",
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.6.2"
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.26.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",
@@ -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;
@@ -49,7 +49,7 @@ export declare class EventLoggerManager extends Resource {
49
49
  setTokenKey(tokenKey: string): void;
50
50
  setReceiptId(receiptId: string): void;
51
51
  clearInstance(): void;
52
- send(eventData: EventDataModel): Promise<import("axios").AxiosResponse<any, any>> | undefined;
52
+ send(eventData: EventDataModel): Promise<any> | undefined;
53
53
  sendError(eventData: EventDataModel): void;
54
54
  setApplicationId(key: string | undefined): void;
55
55
  /**
@@ -57,7 +57,7 @@ export declare class EventLoggerManager extends Resource {
57
57
  * Comment by GOSOMI
58
58
  * @date: 2022-05-13
59
59
  */
60
- sendCloseEvent(): Promise<import("axios").AxiosResponse<any, any>> | undefined;
60
+ sendCloseEvent(): Promise<any> | undefined;
61
61
  }
62
62
  export declare const EventLogger: EventLoggerManager;
63
63
  export {};