@bootpay/client-js 5.0.3-beta.1 → 5.0.3-rc.2
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 +2 -0
- package/dist/index.es.js +3669 -6488
- package/dist/index.umd.js +137 -19
- package/dist/package.json.d.ts +1 -1
- package/dist/src/bootpay-wallet.d.ts +15 -0
- package/dist/src/index.d.ts +3 -3
- package/dist/src/lib/bootpay-wallet.d.ts +7 -0
- package/dist/src/lib/event/ex.d.ts +0 -32
- package/dist/src/lib/event/hooks/wallet/message.d.ts +22 -0
- package/dist/src/lib/event/hooks/widget/message.d.ts +46 -0
- package/dist/src/lib/event/wallet.d.ts +6 -0
- package/dist/src/lib/event/widget.d.ts +0 -32
- package/dist/src/lib/template/confirm-modal.d.ts +4 -1
- package/dist/src/lib/template/wallet.d.ts +15 -0
- package/dist/src/lib/template/widget.d.ts +1 -13
- package/dist/src/support/event.d.ts +14 -1
- package/dist/src/support/ex-store.d.ts +12 -1
- package/dist/src/support/stores/bootpay-store.d.ts +7 -0
- package/dist/src/support/stores/ex-store.d.ts +1 -0
- package/dist/src/support/stores/wallet-store.d.ts +10 -0
- package/dist/src/support/stores/widget-store.d.ts +23 -0
- package/dist/src/support/template-manager.d.ts +14 -0
- package/dist/src/support/widget-store.d.ts +1 -22
- package/package.json +1 -1
- package/vite.config.ts +2 -3
- package/dist/src/models/bootpay-interface.d.ts +0 -246
- package/dist/src/models/bootpay-sdk-interface.d.ts +0 -13
- package/dist/src/models/bootpay-widget-interface.d.ts +0 -36
package/dist/package.json.d.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RequestPaymentWalletModel } from './models/bootpay-wallet-interface';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
BootpayWallet: BootpayWalletInterface;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export interface BootpayWalletInterface {
|
|
8
|
+
render(el: string, data: RequestPaymentWalletModel): void;
|
|
9
|
+
rerender(): void;
|
|
10
|
+
setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
|
|
11
|
+
isRendered(): boolean;
|
|
12
|
+
synchronizedFromBootpay(data: any): void;
|
|
13
|
+
}
|
|
14
|
+
declare const BootpayWallet: BootpayWalletInterface;
|
|
15
|
+
export default BootpayWallet;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -33,6 +33,6 @@ declare global {
|
|
|
33
33
|
CustomEvent: any;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export * from './models/bootpay-interface';
|
|
37
|
-
export * from './models/bootpay-widget-interface';
|
|
38
|
-
export * from './models/bootpay-sdk-interface';
|
|
36
|
+
export * from './models/bootpay-interface.d';
|
|
37
|
+
export * from './models/bootpay-widget-interface.d';
|
|
38
|
+
export * from './models/bootpay-sdk-interface.d';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BootpayManager } from '../support/bootpay-manager';
|
|
2
|
+
import { RequestPaymentWalletModel } from '../models/bootpay-wallet-interface';
|
|
3
|
+
export declare class BootpayWalletWindowManger extends BootpayManager {
|
|
4
|
+
constructor();
|
|
5
|
+
render(el: string, data: RequestPaymentWalletModel): void;
|
|
6
|
+
}
|
|
7
|
+
export declare const BootpayWalletWindow: BootpayWalletWindowManger;
|
|
@@ -1,38 +1,6 @@
|
|
|
1
1
|
import { BootpayWindowEvent } from '../../support/event';
|
|
2
2
|
declare class BootpayExEventManager extends BootpayWindowEvent {
|
|
3
|
-
$eventPrefix: string;
|
|
4
|
-
$messageEventName: string;
|
|
5
|
-
$routerEventName: string;
|
|
6
|
-
$exStore: ExStoreModel;
|
|
7
3
|
constructor();
|
|
8
|
-
bind(): void;
|
|
9
|
-
hookFunction(hook: string): {
|
|
10
|
-
parameterPrefix: string;
|
|
11
|
-
updateParameters({ parameters, replace }: {
|
|
12
|
-
parameters: any;
|
|
13
|
-
replace: any;
|
|
14
|
-
}): void;
|
|
15
|
-
} | {
|
|
16
|
-
resize: (data: ExResizeData) => void;
|
|
17
|
-
showAlert({ message, title, options }: {
|
|
18
|
-
message: any;
|
|
19
|
-
title: any;
|
|
20
|
-
options: any;
|
|
21
|
-
}): void;
|
|
22
|
-
hideAlert(): void;
|
|
23
|
-
showOverlayiFrame({ url, options }: {
|
|
24
|
-
url: any;
|
|
25
|
-
options: any;
|
|
26
|
-
}): void;
|
|
27
|
-
hideOverlayiFrame(): void;
|
|
28
|
-
responseOverlayiFrame({ event, data }: {
|
|
29
|
-
event: any;
|
|
30
|
-
data: any;
|
|
31
|
-
}): void;
|
|
32
|
-
addFavicon({ url }: {
|
|
33
|
-
url: any;
|
|
34
|
-
}): void;
|
|
35
|
-
};
|
|
36
4
|
}
|
|
37
5
|
export declare const BootpayExWindowEvent: BootpayExEventManager;
|
|
38
6
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const WalletWindowMessage: {
|
|
2
|
+
resize: (data: ExResizeData) => void;
|
|
3
|
+
showModal: (data: {
|
|
4
|
+
url: string;
|
|
5
|
+
}) => void;
|
|
6
|
+
resizeModal: (data: ExResizeData) => void;
|
|
7
|
+
closeModal: () => void;
|
|
8
|
+
confirmModal: (data: {
|
|
9
|
+
message: string;
|
|
10
|
+
title: string;
|
|
11
|
+
confirmButtonText: string;
|
|
12
|
+
cancelButtonText: string;
|
|
13
|
+
confirm: boolean;
|
|
14
|
+
}) => void;
|
|
15
|
+
/**
|
|
16
|
+
* 결제수단정보 추가가 완료된 경우
|
|
17
|
+
* Comment by GOSOMI
|
|
18
|
+
* @date: 2025-01-17
|
|
19
|
+
*/
|
|
20
|
+
addedSuccess: (data: any) => void;
|
|
21
|
+
synchronize: (data: any) => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ResponseBootpayWidgetTermsModel } from '../../../../models/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel } from '../../../../models/bootpay-interface';
|
|
3
|
+
import { BootpayWindowEvent } from '../../../../support/event';
|
|
4
|
+
export declare const WidgetWindowMessage: {
|
|
5
|
+
$eventPrefix: string;
|
|
6
|
+
bootpayWidgetSelectMethod(data: SelectPaymentEventData): void;
|
|
7
|
+
bootpayWidgetResponseGetEnvironmentWidget(data: any): void;
|
|
8
|
+
bootpayWidgetResponseCurrentStores(data: any): void;
|
|
9
|
+
bootpayWidgetError(data: any, event: BootpayWindowEvent): void;
|
|
10
|
+
bootpayWidgetOOpayReload(data: any): void;
|
|
11
|
+
bootpayWidgetResize(data: any): void;
|
|
12
|
+
bootpayWidgetShowInterestInformation(data: any): void;
|
|
13
|
+
bootpayWidgetAddWallet(data: any): void;
|
|
14
|
+
bootpayWidgetRemoveWallet(data: any): void;
|
|
15
|
+
bootpayWidgetPaymentWindowResize(data: any): void;
|
|
16
|
+
bootpayWidgetOOpayWindowClose(): void;
|
|
17
|
+
bootpayWidgetModalOpen(data: any): void;
|
|
18
|
+
bootpayWidgetModalClose(): void;
|
|
19
|
+
bootpayRequestModalCurrentStores(data: any): void;
|
|
20
|
+
bootpayRequestGetEnvironmentModalWidget(data: any): void;
|
|
21
|
+
bootpayWidgetResponseGetEnvironmentModalWidget(data: any): void;
|
|
22
|
+
bootpayWidgetModalResize(data: any): void;
|
|
23
|
+
bootpayWidgetPaymentGetStoreData(): void;
|
|
24
|
+
bootpayWidgetTermAllAgree(data: any): void;
|
|
25
|
+
bootpayWidgetSelectPayment(data: any): void;
|
|
26
|
+
bootpayWidgetReady(data: any): void;
|
|
27
|
+
bootpayWidgetUpdateStore(data: any): void;
|
|
28
|
+
bootpayWidgetToUrl(data: any): void;
|
|
29
|
+
bootpayWidgetShowModal(data: any): void;
|
|
30
|
+
/**
|
|
31
|
+
* 결제 선택시 global 이벤트를 분리하여 호출한다
|
|
32
|
+
* Comment by GOSOMI
|
|
33
|
+
* @date: 2024-04-24
|
|
34
|
+
*/
|
|
35
|
+
triggerGlobalChangeEvent(data: SelectPaymentEventData): void;
|
|
36
|
+
callBootpayDOMEvent(eventName: string, data?: any): void;
|
|
37
|
+
};
|
|
38
|
+
export interface SelectPaymentEventData {
|
|
39
|
+
pg?: string;
|
|
40
|
+
method?: string;
|
|
41
|
+
wallet_id?: string;
|
|
42
|
+
term_passed?: boolean;
|
|
43
|
+
select_terms?: ResponseBootpayWidgetTermsModel[];
|
|
44
|
+
extra?: ExtraModel;
|
|
45
|
+
completed?: boolean;
|
|
46
|
+
}
|
|
@@ -1,38 +1,6 @@
|
|
|
1
1
|
import { BootpayWindowEvent } from '../../support/event';
|
|
2
|
-
import { ResponseBootpayWidgetTermsModel } from '../../models/bootpay-widget-interface';
|
|
3
|
-
import { ExtraModel } from '../../models/bootpay-interface';
|
|
4
|
-
export interface SelectPaymentEventData {
|
|
5
|
-
pg?: string;
|
|
6
|
-
method?: string;
|
|
7
|
-
wallet_id?: string;
|
|
8
|
-
term_passed?: boolean;
|
|
9
|
-
select_terms?: ResponseBootpayWidgetTermsModel[];
|
|
10
|
-
extra?: ExtraModel;
|
|
11
|
-
completed?: boolean;
|
|
12
|
-
}
|
|
13
2
|
declare class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
14
|
-
$messageEventName: string;
|
|
15
|
-
$eventPrefix: string;
|
|
16
3
|
constructor();
|
|
17
|
-
/**
|
|
18
|
-
* Widget 창과 통신하기 위한 이벤트 처리
|
|
19
|
-
* Comment by GOSOMI
|
|
20
|
-
* @date: 2023-06-15
|
|
21
|
-
*/
|
|
22
|
-
bind(): void;
|
|
23
|
-
callBootpayDOMEvent(eventName: string, data?: any): void;
|
|
24
|
-
/**
|
|
25
|
-
* 관련된 모든 이벤트를 삭제
|
|
26
|
-
* Comment by GOSOMI
|
|
27
|
-
* @date: 2023-06-15
|
|
28
|
-
*/
|
|
29
|
-
destroyAllEvent(): void;
|
|
30
|
-
/**
|
|
31
|
-
* 결제 선택시 global 이벤트를 분리하여 호출한다
|
|
32
|
-
* Comment by GOSOMI
|
|
33
|
-
* @date: 2024-04-24
|
|
34
|
-
*/
|
|
35
|
-
triggerGlobalChangeEvent(data: SelectPaymentEventData): void;
|
|
36
4
|
}
|
|
37
5
|
export declare const BootpayWidgetEvent: BootpayWidgetEventManager;
|
|
38
6
|
export {};
|
|
@@ -6,11 +6,14 @@ declare class ConfirmModalManager extends TemplateManager {
|
|
|
6
6
|
$additionalClass: string;
|
|
7
7
|
$title: string;
|
|
8
8
|
$message: string;
|
|
9
|
+
$hookConfirmButtonId: string;
|
|
10
|
+
$hookCancelButtonId: string;
|
|
11
|
+
$hookCloseButtonId: string;
|
|
9
12
|
$confirmButtonText: string;
|
|
10
13
|
$cancelButtonText: string;
|
|
11
14
|
constructor();
|
|
12
15
|
template(): string;
|
|
13
|
-
show(message: string, title
|
|
16
|
+
show(message: string, title: string, confirmButton: string, cancelButton: string, confirmHook: Function, cancelHook: Function, confirm?: boolean): void;
|
|
14
17
|
destroy(): void;
|
|
15
18
|
}
|
|
16
19
|
export declare const ConfirmModal: ConfirmModalManager;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
+
import { WalletStoreManager } from '../../support/stores/wallet-store';
|
|
3
|
+
declare class TemplateWalletManager extends TemplateManager {
|
|
4
|
+
el: string;
|
|
5
|
+
$template: string;
|
|
6
|
+
$walletStore: WalletStoreManager;
|
|
7
|
+
$iFrameId: string;
|
|
8
|
+
constructor();
|
|
9
|
+
render(el: string): void;
|
|
10
|
+
templateRender(): void;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
resize(resizeData: any): void;
|
|
13
|
+
}
|
|
14
|
+
export declare const BootpayWalletTemplate: TemplateWalletManager;
|
|
15
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TemplateManager } from '../../support/template-manager';
|
|
2
2
|
import { WidgetStoreModel } from '../../support/widget-store';
|
|
3
3
|
declare class TemplateWidgetManager extends TemplateManager {
|
|
4
|
-
$template: string;
|
|
5
4
|
$iFrameId: string;
|
|
5
|
+
$template: string;
|
|
6
6
|
$widgetStore: WidgetStoreModel;
|
|
7
7
|
constructor();
|
|
8
8
|
/**
|
|
@@ -30,18 +30,6 @@ declare class TemplateWidgetManager extends TemplateManager {
|
|
|
30
30
|
* @date: 2023-06-15
|
|
31
31
|
*/
|
|
32
32
|
destroy(): void;
|
|
33
|
-
/**
|
|
34
|
-
* child iframe에 PostMessage를 보낸다
|
|
35
|
-
* Comment by GOSOMI
|
|
36
|
-
* @date: 2023-06-15
|
|
37
|
-
*/
|
|
38
|
-
postMessage(event: string, data?: any): void;
|
|
39
|
-
/**
|
|
40
|
-
* render가 되었는지 체크한다
|
|
41
|
-
* Comment by GOSOMI
|
|
42
|
-
* @date: 2024-02-22
|
|
43
|
-
*/
|
|
44
|
-
isRendered(): boolean;
|
|
45
33
|
}
|
|
46
34
|
export declare const TemplateWidget: TemplateWidgetManager;
|
|
47
35
|
export {};
|
|
@@ -37,7 +37,20 @@ export declare const EventListener: BootpayEventListener;
|
|
|
37
37
|
export declare class BootpayWindowEvent extends BootpayManager {
|
|
38
38
|
$resolve: Function | null;
|
|
39
39
|
$reject: Function | null;
|
|
40
|
-
|
|
40
|
+
afterBind: Function | undefined;
|
|
41
|
+
$messageEventName: string;
|
|
42
|
+
$eventHooks: {
|
|
43
|
+
[hookName: string]: any;
|
|
44
|
+
};
|
|
45
|
+
constructor(options?: {
|
|
46
|
+
messageEventName: string;
|
|
47
|
+
messageEventHooks: {
|
|
48
|
+
[hookName: string]: any;
|
|
49
|
+
};
|
|
50
|
+
afterBind?: Function;
|
|
51
|
+
});
|
|
52
|
+
bind(resolve?: Function, reject?: Function): void;
|
|
53
|
+
hookFunction(hook: string): any;
|
|
41
54
|
reject(data: any): void;
|
|
42
55
|
resolve(data: any): void;
|
|
43
56
|
/**
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { BootpayStoreManager } from './stores/bootpay-store';
|
|
2
|
+
export declare class ExStoreManager extends BootpayStoreManager {
|
|
3
|
+
el: string | undefined;
|
|
4
|
+
data: any | undefined;
|
|
5
|
+
path: string | undefined;
|
|
6
|
+
constructor();
|
|
7
|
+
setExData(el: string, data: RequestExModel): void;
|
|
8
|
+
encryptParameters(): string;
|
|
9
|
+
encryptKey(): string;
|
|
10
|
+
currentBootpayExtraParameters(): string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ExStore: ExStoreManager;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ExStore: ExStoreModel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BootpayStoreManager } from './bootpay-store';
|
|
2
|
+
import { RequestPaymentWalletModel } from '../../models/bootpay-wallet-interface';
|
|
3
|
+
export declare class WalletStoreManager extends BootpayStoreManager {
|
|
4
|
+
data: RequestPaymentWalletModel;
|
|
5
|
+
constructor();
|
|
6
|
+
encryptKey(): string;
|
|
7
|
+
set(data: RequestPaymentWalletModel): void;
|
|
8
|
+
encryptParameters(): string;
|
|
9
|
+
}
|
|
10
|
+
export declare const WalletStore: WalletStoreManager;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../models/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../models/bootpay-interface';
|
|
3
|
+
import { BootpayStoreManager } from './bootpay-store';
|
|
4
|
+
export declare class WidgetStoreManager extends BootpayStoreManager {
|
|
5
|
+
el: string | undefined;
|
|
6
|
+
data: any;
|
|
7
|
+
termsPassed: boolean;
|
|
8
|
+
widgetExtra: ExtraModel | undefined;
|
|
9
|
+
widgetType: number;
|
|
10
|
+
setWidgetData(element: string, data: RequestBootpayWidgetModel): void;
|
|
11
|
+
setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
12
|
+
updateOnProcessing(data: WidgetStoreData): void;
|
|
13
|
+
encryptParameters(): string;
|
|
14
|
+
encryptKey(): string;
|
|
15
|
+
/**
|
|
16
|
+
* 결제 요청시 가져올 extra 값
|
|
17
|
+
* Comment by GOSOMI
|
|
18
|
+
* @date: 2024-08-19
|
|
19
|
+
*/
|
|
20
|
+
getExtra(externalExtra?: ExtraModel | undefined): ExtraModel;
|
|
21
|
+
getRequestPaymentData(data?: RequestPaymentModel | RequestSubscriptionModel): RequestPaymentModel | RequestSubscriptionModel;
|
|
22
|
+
}
|
|
23
|
+
export declare const WidgetStore: WidgetStoreManager;
|
|
@@ -2,7 +2,9 @@ import { BootpayManager } from "./bootpay-manager";
|
|
|
2
2
|
export declare class TemplateManager extends BootpayManager {
|
|
3
3
|
$windowId: string;
|
|
4
4
|
$template: string;
|
|
5
|
+
$iFrameId: string;
|
|
5
6
|
constructor();
|
|
7
|
+
defaultIframeHtml(): string;
|
|
6
8
|
byId(id: string): HTMLElement | null;
|
|
7
9
|
/**
|
|
8
10
|
* Template body append
|
|
@@ -13,4 +15,16 @@ export declare class TemplateManager extends BootpayManager {
|
|
|
13
15
|
bodyOpen(addClass?: string | undefined): void;
|
|
14
16
|
bodyClose(): void;
|
|
15
17
|
templateResize(el: string, resizeData: any): void;
|
|
18
|
+
/**
|
|
19
|
+
* render가 되었는지 체크한다
|
|
20
|
+
* Comment by GOSOMI
|
|
21
|
+
* @date: 2024-02-22
|
|
22
|
+
*/
|
|
23
|
+
isRendered(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* child iframe에 PostMessage를 보낸다
|
|
26
|
+
* Comment by GOSOMI
|
|
27
|
+
* @date: 2023-06-15
|
|
28
|
+
*/
|
|
29
|
+
postMessage(event: string, data?: any): void;
|
|
16
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../models/bootpay-widget-interface';
|
|
2
2
|
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../models/bootpay-interface';
|
|
3
3
|
export interface WidgetStoreModel {
|
|
4
4
|
el: string | undefined;
|
|
@@ -15,25 +15,4 @@ export interface WidgetStoreModel {
|
|
|
15
15
|
getExtra(externalExtra: ExtraModel | undefined): ExtraModel;
|
|
16
16
|
getRequestPaymentData(data: RequestBootpayWidgetModel | RequestSubscriptionModel): RequestBootpayWidgetModel | RequestSubscriptionModel;
|
|
17
17
|
}
|
|
18
|
-
export interface WidgetStoreData {
|
|
19
|
-
el?: string;
|
|
20
|
-
application_id?: string;
|
|
21
|
-
order_name?: string;
|
|
22
|
-
price?: number;
|
|
23
|
-
tax_free?: number;
|
|
24
|
-
deposit_price?: number;
|
|
25
|
-
currency?: string;
|
|
26
|
-
user_token?: string;
|
|
27
|
-
pg?: string;
|
|
28
|
-
method?: string;
|
|
29
|
-
wallet_id?: string;
|
|
30
|
-
use_only_oopay?: boolean;
|
|
31
|
-
use_bootpay_inapp_sdk?: boolean;
|
|
32
|
-
use_terms?: boolean;
|
|
33
|
-
sandbox?: boolean;
|
|
34
|
-
widget_key?: string;
|
|
35
|
-
widget_type?: number;
|
|
36
|
-
external_terms?: ExternalBootpayWidgetTermsModel[];
|
|
37
|
-
extra?: ExtraModel;
|
|
38
|
-
}
|
|
39
18
|
export declare const WidgetStore: WidgetStoreModel;
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -6,9 +6,8 @@ const path = require('path')
|
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
build: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
lib: {
|
|
9
|
+
minify: 'esbuild',
|
|
10
|
+
lib: {
|
|
12
11
|
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
13
12
|
name: 'Bootpay',
|
|
14
13
|
fileName: (format) => `index.${ format }.js`
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { ResponseBootpayWidgetTermsModel } from './bootpay-widget-interface';
|
|
2
|
-
interface RequestPaymentBaseModel {
|
|
3
|
-
ver?: string;
|
|
4
|
-
sdk?: boolean;
|
|
5
|
-
sdk_version?: string;
|
|
6
|
-
sdk_type?: number;
|
|
7
|
-
application_id?: string;
|
|
8
|
-
pg?: string;
|
|
9
|
-
method?: string | string[];
|
|
10
|
-
order_name: string;
|
|
11
|
-
price: number;
|
|
12
|
-
tax_free?: number;
|
|
13
|
-
deposit_price?: number;
|
|
14
|
-
platform_type?: number;
|
|
15
|
-
currency?: string;
|
|
16
|
-
uuid?: string;
|
|
17
|
-
sk?: string;
|
|
18
|
-
ti?: number;
|
|
19
|
-
tk?: string;
|
|
20
|
-
user_token?: string;
|
|
21
|
-
wallet_id?: string;
|
|
22
|
-
widget_key?: string;
|
|
23
|
-
commission_keys?: CommissionKeyModel;
|
|
24
|
-
redirect_url?: string;
|
|
25
|
-
metadata?: any;
|
|
26
|
-
user?: UserModel;
|
|
27
|
-
items?: ItemModel[];
|
|
28
|
-
extra?: ExtraModel;
|
|
29
|
-
env?: EnvironmentModel;
|
|
30
|
-
terms?: ResponseBootpayWidgetTermsModel[];
|
|
31
|
-
widget_sandbox?: boolean;
|
|
32
|
-
widget?: 1 | 0;
|
|
33
|
-
locale?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* 결제 요청 모델
|
|
37
|
-
* Comment by GOSOMI
|
|
38
|
-
* @date: 2021-04-13
|
|
39
|
-
*/
|
|
40
|
-
export interface RequestPaymentModel extends RequestPaymentBaseModel {
|
|
41
|
-
order_id: string;
|
|
42
|
-
}
|
|
43
|
-
export interface RequestPaymentUrlModel {
|
|
44
|
-
application_id?: string;
|
|
45
|
-
url?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface RequestSubscriptionModel extends RequestPaymentBaseModel {
|
|
48
|
-
subscription_id: string;
|
|
49
|
-
}
|
|
50
|
-
export interface RequestAuthenticationModel {
|
|
51
|
-
ver?: string;
|
|
52
|
-
sdk?: boolean;
|
|
53
|
-
application_id: string;
|
|
54
|
-
authentication_id: string;
|
|
55
|
-
metadata?: any;
|
|
56
|
-
pg: string;
|
|
57
|
-
method?: string;
|
|
58
|
-
order_name: string;
|
|
59
|
-
redirect_url?: string;
|
|
60
|
-
platform_type?: number;
|
|
61
|
-
uuid?: string;
|
|
62
|
-
sk?: string;
|
|
63
|
-
ti?: number;
|
|
64
|
-
tk?: string;
|
|
65
|
-
user: UserModel;
|
|
66
|
-
extra: ExtraModel;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* User Model
|
|
70
|
-
* Comment by GOSOMI
|
|
71
|
-
* @date: 2021-04-13
|
|
72
|
-
*/
|
|
73
|
-
export interface UserModel {
|
|
74
|
-
id?: string | undefined;
|
|
75
|
-
username?: string;
|
|
76
|
-
email?: string;
|
|
77
|
-
addr?: string;
|
|
78
|
-
phone?: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Item Model
|
|
82
|
-
* Comment by GOSOMI
|
|
83
|
-
* @date: 2021-04-13
|
|
84
|
-
*/
|
|
85
|
-
export interface ItemModel {
|
|
86
|
-
id: string;
|
|
87
|
-
code?: string;
|
|
88
|
-
name: string;
|
|
89
|
-
price: number;
|
|
90
|
-
img?: string;
|
|
91
|
-
qty: number;
|
|
92
|
-
cat1?: string;
|
|
93
|
-
cat2?: string;
|
|
94
|
-
cat3?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface ItemAnalyticsModel {
|
|
97
|
-
cat1?: string;
|
|
98
|
-
cat2?: string;
|
|
99
|
-
cat3?: string;
|
|
100
|
-
img?: string;
|
|
101
|
-
name?: string;
|
|
102
|
-
id: string;
|
|
103
|
-
price: number;
|
|
104
|
-
}
|
|
105
|
-
export interface ItemAnalyticsLegacyModel {
|
|
106
|
-
cat1?: string;
|
|
107
|
-
cat2?: string;
|
|
108
|
-
cat3?: string;
|
|
109
|
-
item_img?: string;
|
|
110
|
-
item_name?: string;
|
|
111
|
-
unique: string;
|
|
112
|
-
price: number;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* 통계 일반 common model
|
|
116
|
-
* Comment by GOSOMI
|
|
117
|
-
* @date: 2022-03-02
|
|
118
|
-
*/
|
|
119
|
-
export interface BootpayAnalyticsModel {
|
|
120
|
-
application_id?: string;
|
|
121
|
-
uuid?: string;
|
|
122
|
-
time?: number;
|
|
123
|
-
url?: string;
|
|
124
|
-
referer?: string;
|
|
125
|
-
sk?: string;
|
|
126
|
-
user_id?: string;
|
|
127
|
-
page_type?: string;
|
|
128
|
-
items?: Array<ItemAnalyticsModel> | Array<ItemAnalyticsLegacyModel>;
|
|
129
|
-
}
|
|
130
|
-
export interface BootpayAnalyticsBaseModel {
|
|
131
|
-
uuid: string;
|
|
132
|
-
time: number;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* 통계 User Model
|
|
136
|
-
* Comment by GOSOMI
|
|
137
|
-
* @date: 2022-03-02
|
|
138
|
-
*/
|
|
139
|
-
export interface BootpayAnalyticsUserModel {
|
|
140
|
-
application_id?: string;
|
|
141
|
-
id: string;
|
|
142
|
-
username?: string;
|
|
143
|
-
birth?: string;
|
|
144
|
-
phone?: string;
|
|
145
|
-
email?: string;
|
|
146
|
-
gender?: string;
|
|
147
|
-
area?: string;
|
|
148
|
-
}
|
|
149
|
-
interface OpenTypeFilterModel {
|
|
150
|
-
browser: string;
|
|
151
|
-
open_type: 'iframe' | 'popup' | 'redirect';
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Extra Model
|
|
155
|
-
* Comment by GOSOMI
|
|
156
|
-
* @date: 2021-04-13
|
|
157
|
-
*/
|
|
158
|
-
export interface ExtraModel {
|
|
159
|
-
open_type?: string;
|
|
160
|
-
browser_open_type?: Array<OpenTypeFilterModel>;
|
|
161
|
-
escrow?: boolean;
|
|
162
|
-
redirect_url?: string;
|
|
163
|
-
card_quota?: string | string[] | number[];
|
|
164
|
-
seller_name?: string;
|
|
165
|
-
delivery_day?: number;
|
|
166
|
-
locale?: string;
|
|
167
|
-
offer_period?: string;
|
|
168
|
-
display_cash_receipt?: boolean;
|
|
169
|
-
deposit_expiration?: string;
|
|
170
|
-
app_scheme?: string;
|
|
171
|
-
use_card_point?: boolean;
|
|
172
|
-
direct_card?: string;
|
|
173
|
-
use_order_id?: boolean;
|
|
174
|
-
separately_confirmed?: boolean;
|
|
175
|
-
confirm_message?: string;
|
|
176
|
-
display_success_result?: boolean;
|
|
177
|
-
display_error_result?: boolean;
|
|
178
|
-
test_deposit?: boolean;
|
|
179
|
-
ad_id?: string;
|
|
180
|
-
sim_operator?: string;
|
|
181
|
-
installer_package_name?: string;
|
|
182
|
-
timeout?: number;
|
|
183
|
-
common_event_webhook?: boolean;
|
|
184
|
-
first_subscription_comment?: string;
|
|
185
|
-
subscription_comment?: string;
|
|
186
|
-
subscribe_test_payment?: boolean;
|
|
187
|
-
enable_easy_payments?: Array<string>;
|
|
188
|
-
except_card_companies?: Array<string>;
|
|
189
|
-
enable_card_companies?: Array<string>;
|
|
190
|
-
direct_card_company?: string;
|
|
191
|
-
direct_card_quota?: string;
|
|
192
|
-
minimum_price_limit?: boolean;
|
|
193
|
-
confirm_grace_seconds?: number;
|
|
194
|
-
automatic_tax?: boolean;
|
|
195
|
-
dynamic_tax_rates?: number;
|
|
196
|
-
tax_rates?: number;
|
|
197
|
-
show_close_button?: boolean;
|
|
198
|
-
select_phone_carrier?: string;
|
|
199
|
-
phone_editable?: boolean;
|
|
200
|
-
age_limit?: number;
|
|
201
|
-
easy_payment_method?: 'card' | '카드' | 'point' | '포인트';
|
|
202
|
-
cash_receipt_type?: '소득공제' | '지출증빙';
|
|
203
|
-
identity_no?: string;
|
|
204
|
-
override_global_event?: boolean;
|
|
205
|
-
cash_receipt_not_published?: boolean;
|
|
206
|
-
}
|
|
207
|
-
export interface WidgetExtraModel extends Partial<ExtraModel> {
|
|
208
|
-
card_quota?: string | string[] | number[];
|
|
209
|
-
direct_card_company?: string;
|
|
210
|
-
direct_card_quota?: string;
|
|
211
|
-
hide_title?: boolean;
|
|
212
|
-
hide_divider_line?: boolean;
|
|
213
|
-
}
|
|
214
|
-
export interface ConfirmModel {
|
|
215
|
-
event: string;
|
|
216
|
-
receipt_id: string;
|
|
217
|
-
gateway_url: string;
|
|
218
|
-
data?: any;
|
|
219
|
-
}
|
|
220
|
-
export interface ErrorModel {
|
|
221
|
-
event: string;
|
|
222
|
-
pg_error_code?: string;
|
|
223
|
-
error_code: string;
|
|
224
|
-
message: string;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* 사용자 환경 설정 관련 environment
|
|
228
|
-
* Comment by GOSOMI
|
|
229
|
-
* @date: 2021-12-09
|
|
230
|
-
*/
|
|
231
|
-
export interface EnvironmentModel {
|
|
232
|
-
width: number;
|
|
233
|
-
height: number;
|
|
234
|
-
}
|
|
235
|
-
export interface PopupDisplayResponseModel {
|
|
236
|
-
gatewayUrl: string;
|
|
237
|
-
receiptId: string;
|
|
238
|
-
name: string;
|
|
239
|
-
message?: string;
|
|
240
|
-
price: number;
|
|
241
|
-
}
|
|
242
|
-
export interface CommissionKeyModel {
|
|
243
|
-
commerce?: string;
|
|
244
|
-
marketer?: string;
|
|
245
|
-
}
|
|
246
|
-
export {};
|