@bootpay/client-js 4.0.2 → 4.0.5

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.
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../support/resource';
2
2
  import { SessionStorageManager } from '../support/storage';
3
- import { BootpayAnalyticsBaseModel, 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();
@@ -28,5 +28,11 @@ export declare class BootpayAnalyticsManager extends Resource {
28
28
  * @date: 2022-03-02
29
29
  */
30
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;
31
37
  }
32
38
  export declare const BootpayAnalytics: BootpayAnalyticsManager;
@@ -17,6 +17,7 @@ declare class TemplatePaymentManager extends TemplateManager {
17
17
  $env: any;
18
18
  $popup?: any;
19
19
  $popupWatcher?: any;
20
+ $currentReceiptId?: string;
20
21
  mode: string;
21
22
  modeToMessage: any;
22
23
  modeApiUrl: any;
@@ -6,6 +6,8 @@
6
6
  export interface RequestPaymentModel {
7
7
  ver?: string;
8
8
  sdk?: boolean;
9
+ sdk_version?: string;
10
+ sdk_type?: number;
9
11
  application_id?: string;
10
12
  pg: string;
11
13
  method: string | Array<string>;
@@ -89,11 +91,20 @@ export interface ItemModel {
89
91
  cat3?: string;
90
92
  }
91
93
  export interface ItemAnalyticsModel {
94
+ cat1?: string;
95
+ cat2?: string;
96
+ cat3?: string;
97
+ img?: string;
98
+ name?: string;
99
+ id: string;
100
+ price: number;
101
+ }
102
+ export interface ItemAnalyticsLegacyModel {
92
103
  cat1?: string;
93
104
  cat2?: string;
94
105
  cat3?: string;
95
106
  item_img?: string;
96
- item_name: string;
107
+ item_name?: string;
97
108
  unique: string;
98
109
  price: number;
99
110
  }
@@ -111,7 +122,7 @@ export interface BootpayAnalyticsModel {
111
122
  sk?: string;
112
123
  user_id?: string;
113
124
  page_type?: string;
114
- items?: Array<ItemAnalyticsModel>;
125
+ items?: Array<ItemAnalyticsModel> | Array<ItemAnalyticsLegacyModel>;
115
126
  }
116
127
  export interface BootpayAnalyticsBaseModel {
117
128
  uuid: string;
@@ -166,6 +177,8 @@ export interface ExtraModel {
166
177
  ad_id?: string;
167
178
  sim_operator?: string;
168
179
  installer_package_name?: string;
180
+ timeout?: number;
181
+ common_event_webhook?: boolean;
169
182
  }
170
183
  export interface ConfirmModel {
171
184
  event: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootpay/client-js",
3
- "version": "4.0.2",
3
+ "version": "4.0.5",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {
@@ -4,10 +4,14 @@ export declare const Environment: {
4
4
  API_URL: any;
5
5
  ANALYTICS_URL: any;
6
6
  DOOR_URL: any;
7
+ sdkNames: any;
8
+ sdkVersion: string;
9
+ sdkName: number;
7
10
  set(env: string): void;
8
11
  setApplicationId(applicationId: string | undefined): string | undefined;
9
12
  currentApplicationId(applicationId?: string | undefined): string | undefined;
10
13
  setDevelopmentHost(host: string): void;
14
+ setVersion(version: string, name: string): void;
11
15
  toApi(uri: string): string;
12
16
  toDoor(uri: string): string;
13
17
  isMobile(): boolean;
@@ -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 {};