@bootpay/client-js 4.0.2 → 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 +7 -2
- package/bootpay-sdk.js +1 -1
- package/bootpay.d.ts +1 -1
- package/bootpay.js +1 -1
- package/lib/analytics.d.ts +7 -1
- package/lib/template/payment.d.ts +1 -0
- package/models/bootpay-interface.d.ts +12 -2
- package/package.json +1 -1
- package/support/logger.d.ts +9 -0
package/lib/analytics.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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,7 @@ 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>;
|
|
115
124
|
}
|
|
116
125
|
export interface BootpayAnalyticsBaseModel {
|
|
117
126
|
uuid: string;
|
|
@@ -166,6 +175,7 @@ export interface ExtraModel {
|
|
|
166
175
|
ad_id?: string;
|
|
167
176
|
sim_operator?: string;
|
|
168
177
|
installer_package_name?: string;
|
|
178
|
+
timeout?: number;
|
|
169
179
|
}
|
|
170
180
|
export interface ConfirmModel {
|
|
171
181
|
event: string;
|
package/package.json
CHANGED
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 {};
|