@bootpay/client-js 5.0.1-rc.2 → 5.0.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/dist/index.es.js +488 -522
- package/dist/index.umd.js +4 -4
- package/dist/package.json.d.ts +2 -2
- package/dist/src/bootpay-widget.d.ts +5 -2
- package/dist/src/bootpay.d.ts +1 -1
- package/dist/src/index.d.ts +2 -43
- package/dist/src/lib/bootpay-widget.d.ts +5 -5
- package/dist/src/lib/locale/message.d.ts +8 -0
- package/dist/src/lib/template/payment.d.ts +0 -3
- package/dist/src/models/bootpay-interface.d.ts +3 -20
- package/dist/src/models/bootpay-widget-interface.d.ts +4 -10
- package/dist/src/support/util.d.ts +1 -0
- package/dist/src/support/widget-store.d.ts +9 -20
- package/package.json +2 -2
package/dist/package.json.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.0.1
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"styles": "dist/index.css",
|
|
@@ -38,7 +38,7 @@ declare const _default: {
|
|
|
38
38
|
"sass": "^1.63.4",
|
|
39
39
|
"sass-loader": "^13.3.2",
|
|
40
40
|
"style-loader": "^3.3.3",
|
|
41
|
-
"vite": "^5.
|
|
41
|
+
"vite": "^5.4.3",
|
|
42
42
|
"vite-plugin-dts": "^3.6.4",
|
|
43
43
|
"vite-plugin-tsconfig": "^1.0.4",
|
|
44
44
|
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from './models/bootpay-widget-interface';
|
|
2
|
-
import { RequestPaymentModel } from './models/bootpay-interface';
|
|
3
|
-
interface BootpayWidgetInterface {
|
|
2
|
+
import { RequestPaymentModel, RequestSubscriptionModel } from './models/bootpay-interface';
|
|
3
|
+
export interface BootpayWidgetInterface {
|
|
4
4
|
render(el: string, data: RequestBootpayWidgetModel): void;
|
|
5
5
|
rerender(): void;
|
|
6
6
|
setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
|
|
7
7
|
requestPayment(data: RequestPaymentModel): Promise<any>;
|
|
8
|
+
requestSubscription(data: RequestSubscriptionModel): Promise<any>;
|
|
8
9
|
update(data: RequestBootpayWidgetModel, rendering?: boolean): void;
|
|
9
10
|
errorHandler(e: any): any;
|
|
10
11
|
currentTermsCondition(): ResponseBootpayWidgetTermsModel[];
|
|
@@ -18,6 +19,8 @@ interface BootpayWidgetInterface {
|
|
|
18
19
|
alertConfirm(): void;
|
|
19
20
|
alertCancel(): void;
|
|
20
21
|
currentPaymentParameters(): PaymentParametersModel;
|
|
22
|
+
isWidgetTypeSubscription(): boolean;
|
|
23
|
+
isWidgetTypePayment(): boolean;
|
|
21
24
|
}
|
|
22
25
|
declare global {
|
|
23
26
|
interface Window {
|
package/dist/src/bootpay.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthentication
|
|
|
2
2
|
import { EnvironmentInterface } from "./support/environment";
|
|
3
3
|
import { BootpayRequestPaymentManager } from "./lib/bootpay";
|
|
4
4
|
import { BootpayAnalyticsManager } from './lib/analytics';
|
|
5
|
-
interface BootpayInterface {
|
|
5
|
+
export interface BootpayInterface {
|
|
6
6
|
$payment: BootpayRequestPaymentManager;
|
|
7
7
|
$analytics: BootpayAnalyticsManager;
|
|
8
8
|
$environment: EnvironmentInterface;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,52 +1,11 @@
|
|
|
1
|
-
import Bootpay from './bootpay';
|
|
1
|
+
import Bootpay, { BootpayInterface } from './bootpay';
|
|
2
2
|
import BootpaySDK from './bootpay-sdk';
|
|
3
3
|
import BootpayEnvironment from "./bootpay-environment";
|
|
4
|
-
import BootpayWidget from './bootpay-widget';
|
|
4
|
+
import BootpayWidget, { BootpayWidgetInterface } from './bootpay-widget';
|
|
5
5
|
export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget };
|
|
6
6
|
export default Bootpay;
|
|
7
|
-
import { BootpayRequestPaymentManager } from './lib/bootpay';
|
|
8
|
-
import { BootpayAnalyticsManager } from './lib/analytics';
|
|
9
|
-
import { EnvironmentInterface } from './support/environment';
|
|
10
|
-
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from './models/bootpay-interface';
|
|
11
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from './models/bootpay-widget-interface';
|
|
12
7
|
import { UserTokenTemplateManager } from './lib/template/user-token';
|
|
13
8
|
import { BiometricDataModel, RequestPaymentWalletModel } from './models/bootpay-sdk-interface';
|
|
14
|
-
interface BootpayInterface {
|
|
15
|
-
$payment: BootpayRequestPaymentManager;
|
|
16
|
-
$analytics: BootpayAnalyticsManager;
|
|
17
|
-
$environment: EnvironmentInterface;
|
|
18
|
-
requestPayment(data: RequestPaymentModel): Promise<any>;
|
|
19
|
-
requestSubscription(data: RequestSubscriptionModel): Promise<any>;
|
|
20
|
-
requestAuthentication(data: RequestAuthenticationModel): Promise<any>;
|
|
21
|
-
requestPaymentUrl(data: RequestPaymentUrlModel): Promise<any>;
|
|
22
|
-
confirm(): Promise<any>;
|
|
23
|
-
errorHandler(data: any): any;
|
|
24
|
-
setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
|
|
25
|
-
setApplicationId(applicationId: string | undefined): string | undefined;
|
|
26
|
-
setVersion(version: string, name: string): void;
|
|
27
|
-
setLogLevel(level: number): void;
|
|
28
|
-
setUUID(uuid: string): void;
|
|
29
|
-
setDevice(deviceType: string): number;
|
|
30
|
-
send(data: BootpayAnalyticsModel): Promise<any>;
|
|
31
|
-
login(data: BootpayAnalyticsUserModel): Promise<any>;
|
|
32
|
-
logout(): void;
|
|
33
|
-
readyToPopup(): void;
|
|
34
|
-
getCurrentUUID(): string | undefined;
|
|
35
|
-
setLocale(locale: string): void;
|
|
36
|
-
dismiss(closedEvent: boolean): void;
|
|
37
|
-
destroy(): void;
|
|
38
|
-
}
|
|
39
|
-
interface BootpayWidgetInterface {
|
|
40
|
-
render(el: string, data: RequestBootpayWidgetModel): void;
|
|
41
|
-
rerender(): void;
|
|
42
|
-
setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
|
|
43
|
-
requestPayment(data: RequestPaymentModel): Promise<any>;
|
|
44
|
-
update(data: RequestBootpayWidgetModel): void;
|
|
45
|
-
errorHandler(e: any): any;
|
|
46
|
-
currentTermsCondition(): ResponseBootpayWidgetTermsModel[];
|
|
47
|
-
destroy(): void;
|
|
48
|
-
isRendered(): boolean;
|
|
49
|
-
}
|
|
50
9
|
interface BootpaySdkInterface {
|
|
51
10
|
$templateUserToken: UserTokenTemplateManager;
|
|
52
11
|
errorHandler(data: any): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BootpayManager } from '../support/bootpay-manager';
|
|
2
2
|
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../models/bootpay-widget-interface';
|
|
3
|
-
import { ExtraModel, RequestPaymentModel } from '../models/bootpay-interface';
|
|
3
|
+
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../models/bootpay-interface';
|
|
4
4
|
export declare class BootpayWidgetWindowManager extends BootpayManager {
|
|
5
5
|
message: any;
|
|
6
6
|
constructor();
|
|
@@ -18,11 +18,11 @@ export declare class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
18
18
|
*/
|
|
19
19
|
requestPayment(data: RequestPaymentModel): Promise<any>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* 부트페이 정기결제 요청
|
|
22
22
|
* Comment by GOSOMI
|
|
23
|
-
* @date:
|
|
23
|
+
* @date: 2024-08-19
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
requestSubscription(data: RequestSubscriptionModel): Promise<any>;
|
|
26
26
|
isRendered(): boolean;
|
|
27
27
|
/**
|
|
28
28
|
* 실시간으로 위젯 정보전송
|
|
@@ -43,6 +43,6 @@ export declare class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
43
43
|
* @date: 2024-07-22
|
|
44
44
|
*/
|
|
45
45
|
currentPaymentParameters(): PaymentParametersModel;
|
|
46
|
-
widgetRequestPaymentValidate(): void;
|
|
46
|
+
widgetRequestPaymentValidate(type?: number): void;
|
|
47
47
|
}
|
|
48
48
|
export declare const BootpayWidgetWindow: BootpayWidgetWindowManager;
|
|
@@ -93,5 +93,13 @@ export declare const BootpayMessage: {
|
|
|
93
93
|
ko: string;
|
|
94
94
|
en: string;
|
|
95
95
|
};
|
|
96
|
+
widgetTypeNotPayment: {
|
|
97
|
+
ko: string;
|
|
98
|
+
en: string;
|
|
99
|
+
};
|
|
100
|
+
widgetTypeNotSubscription: {
|
|
101
|
+
ko: string;
|
|
102
|
+
en: string;
|
|
103
|
+
};
|
|
96
104
|
getLocaleMessage: (key: string, locale: string) => any;
|
|
97
105
|
};
|
|
@@ -16,11 +16,8 @@ declare class TemplatePaymentManager extends TemplateManager {
|
|
|
16
16
|
$env: any;
|
|
17
17
|
$popup?: any;
|
|
18
18
|
$popupWatcher?: any;
|
|
19
|
-
$currentReceiptId?: string;
|
|
20
19
|
mode: string;
|
|
21
|
-
modeToMessage: any;
|
|
22
20
|
modeApiUrl: any;
|
|
23
|
-
popupLocaleMessage: any;
|
|
24
21
|
constructor();
|
|
25
22
|
template(): string;
|
|
26
23
|
/**
|
|
@@ -42,26 +42,8 @@ export interface RequestPaymentUrlModel {
|
|
|
42
42
|
application_id?: string;
|
|
43
43
|
url?: string;
|
|
44
44
|
}
|
|
45
|
-
export interface RequestSubscriptionModel {
|
|
46
|
-
|
|
47
|
-
sdk?: boolean;
|
|
48
|
-
application_id: string;
|
|
49
|
-
subscription_id: string;
|
|
50
|
-
price: number;
|
|
51
|
-
tax_free?: number;
|
|
52
|
-
metadata?: any;
|
|
53
|
-
pg: string;
|
|
54
|
-
method: string | Array<string>;
|
|
55
|
-
order_name: string;
|
|
56
|
-
platform_type?: number;
|
|
57
|
-
uuid?: string;
|
|
58
|
-
redirect_url?: string;
|
|
59
|
-
sk?: string;
|
|
60
|
-
ti?: number;
|
|
61
|
-
tk?: string;
|
|
62
|
-
user_token?: string;
|
|
63
|
-
user: UserModel;
|
|
64
|
-
extra: ExtraModel;
|
|
45
|
+
export interface RequestSubscriptionModel extends RequestPaymentModel {
|
|
46
|
+
subscription_id?: string;
|
|
65
47
|
}
|
|
66
48
|
export interface RequestAuthenticationModel {
|
|
67
49
|
ver?: string;
|
|
@@ -218,6 +200,7 @@ export interface ExtraModel {
|
|
|
218
200
|
cash_receipt_type?: '소득공제' | '지출증빙';
|
|
219
201
|
identity_no?: string;
|
|
220
202
|
override_global_event?: boolean;
|
|
203
|
+
cash_receipt_not_published?: boolean;
|
|
221
204
|
}
|
|
222
205
|
export interface WidgetExtraModel {
|
|
223
206
|
card_quota?: string | string[] | number[];
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface RequestBootpayWidgetModel {
|
|
3
|
-
|
|
4
|
-
price: number;
|
|
5
|
-
tax_free?: number;
|
|
6
|
-
currency?: string;
|
|
7
|
-
key?: string;
|
|
8
|
-
user_token?: string;
|
|
1
|
+
import { ExtraModel, RequestPaymentModel } from './bootpay-interface';
|
|
2
|
+
export interface RequestBootpayWidgetModel extends RequestPaymentModel {
|
|
3
|
+
subscription_id?: string;
|
|
9
4
|
use_only_oopay?: boolean;
|
|
10
5
|
use_terms?: boolean;
|
|
11
6
|
sandbox?: boolean;
|
|
12
7
|
use_bootpay_inapp_sdk?: boolean;
|
|
13
8
|
external_terms?: ExternalBootpayWidgetTermsModel[];
|
|
14
|
-
extra?: WidgetExtraModel;
|
|
15
9
|
}
|
|
16
10
|
export interface ResponseBootpayWidgetTermsModel {
|
|
17
11
|
term_id?: string;
|
|
@@ -37,5 +31,5 @@ export interface PaymentParametersModel {
|
|
|
37
31
|
terms?: ResponseBootpayWidgetTermsModel[];
|
|
38
32
|
widget_key?: string;
|
|
39
33
|
widget_sandbox?: boolean;
|
|
40
|
-
extra?:
|
|
34
|
+
extra?: ExtraModel;
|
|
41
35
|
}
|
|
@@ -3,3 +3,4 @@ export declare const isBlank: (value: any) => boolean;
|
|
|
3
3
|
export declare const isPresent: (value: any) => boolean;
|
|
4
4
|
export declare const isType: (value: any, type: string) => boolean;
|
|
5
5
|
export declare const toUrl: (url: string, parameters?: any) => string;
|
|
6
|
+
export declare const mergeHash: (target: any, source: any) => any;
|
|
@@ -1,36 +1,24 @@
|
|
|
1
|
-
import { ExternalBootpayWidgetTermsModel, ResponseBootpayWidgetTermsModel } from '../models/bootpay-widget-interface';
|
|
1
|
+
import { ExternalBootpayWidgetTermsModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../models/bootpay-widget-interface';
|
|
2
2
|
import { ExtraModel, WidgetExtraModel } from '../models/bootpay-interface';
|
|
3
3
|
export interface WidgetStoreModel {
|
|
4
4
|
el: string | undefined;
|
|
5
|
-
|
|
6
|
-
price: number;
|
|
7
|
-
taxFree: number | undefined;
|
|
8
|
-
depositPrice: number | undefined;
|
|
9
|
-
currency: string | undefined;
|
|
10
|
-
userToken: string | undefined;
|
|
11
|
-
pg: string | undefined;
|
|
12
|
-
method: string | undefined;
|
|
13
|
-
walletId?: string;
|
|
14
|
-
useOnlyOOpay: boolean;
|
|
15
|
-
widgetKey?: string | undefined;
|
|
5
|
+
data?: RequestBootpayWidgetModel;
|
|
16
6
|
termsPassed: boolean;
|
|
17
|
-
|
|
18
|
-
useTerms: boolean;
|
|
19
|
-
useBootpayInAppSdk: boolean;
|
|
20
|
-
externalTerms?: ExternalBootpayWidgetTermsModel[];
|
|
21
|
-
extra: ExtraModel;
|
|
7
|
+
widgetType: number;
|
|
22
8
|
widgetExtra: WidgetExtraModel | undefined;
|
|
23
|
-
|
|
24
|
-
setWidgetData(data: WidgetStoreData): void;
|
|
9
|
+
setWidgetData(element: string, data: RequestBootpayWidgetModel): void;
|
|
25
10
|
setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
26
11
|
updateOnProcessing(data: WidgetStoreData): void;
|
|
27
12
|
encryptParameters(): string;
|
|
28
13
|
encrypt(data: object | string): string;
|
|
29
14
|
decrypt(data: string): any | string;
|
|
15
|
+
getExtra(externalExtra: ExtraModel | undefined): ExtraModel;
|
|
16
|
+
getRequestPaymentData(data: RequestBootpayWidgetModel | {}): RequestBootpayWidgetModel;
|
|
30
17
|
}
|
|
31
18
|
export interface WidgetStoreData {
|
|
32
19
|
el?: string;
|
|
33
20
|
application_id?: string;
|
|
21
|
+
order_name?: string;
|
|
34
22
|
price?: number;
|
|
35
23
|
tax_free?: number;
|
|
36
24
|
deposit_price?: number;
|
|
@@ -44,7 +32,8 @@ export interface WidgetStoreData {
|
|
|
44
32
|
use_terms?: boolean;
|
|
45
33
|
sandbox?: boolean;
|
|
46
34
|
widget_key?: string;
|
|
35
|
+
widget_type?: number;
|
|
47
36
|
external_terms?: ExternalBootpayWidgetTermsModel[];
|
|
48
|
-
|
|
37
|
+
extra?: ExtraModel;
|
|
49
38
|
}
|
|
50
39
|
export declare const WidgetStore: WidgetStoreModel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.0.1
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"styles": "dist/index.css",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"sass": "^1.63.4",
|
|
39
39
|
"sass-loader": "^13.3.2",
|
|
40
40
|
"style-loader": "^3.3.3",
|
|
41
|
-
"vite": "^5.
|
|
41
|
+
"vite": "^5.4.3",
|
|
42
42
|
"vite-plugin-dts": "^3.6.4",
|
|
43
43
|
"vite-plugin-tsconfig": "^1.0.4",
|
|
44
44
|
"vite-plugin-css-injected-by-js": "^3.3.0"
|