@bootpay/client-js 4.2.9 → 4.3.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/README.md +12 -3
- package/bootpay-sdk.js +1 -1
- package/bootpay.d.ts +2 -1
- package/bootpay.js +1 -1
- package/lib/bootpay.d.ts +2 -1
- package/lib/event/payment.d.ts +9 -3
- package/lib/event/polling.d.ts +1 -1
- package/lib/template/payment.d.ts +6 -0
- package/models/bootpay-interface.d.ts +5 -0
- package/package.json +1 -1
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, RequestPaymentUrlModel, RequestSubscriptionModel } from "../models/bootpay-interface";
|
|
4
4
|
import { EventLoggerManager } from "../support/logger";
|
|
5
5
|
export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
6
6
|
$session: SessionStorageManager;
|
|
@@ -53,6 +53,7 @@ export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
|
53
53
|
* @param data: RequestAuthenticationModel
|
|
54
54
|
*/
|
|
55
55
|
requestAuthentication(data: RequestAuthenticationModel): Promise<ConfirmModel>;
|
|
56
|
+
requestPaymentUrl(data: RequestPaymentUrlModel): Promise<any>;
|
|
56
57
|
getUserDeviceEnvironment(): EnvironmentModel;
|
|
57
58
|
/**
|
|
58
59
|
* display result
|
package/lib/event/payment.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { BootpayWindowEvent } from "../../support/event";
|
|
3
3
|
import { BootpayPollingEvent } from "./polling";
|
|
4
4
|
interface PollingDataModel {
|
|
5
|
-
applicationId: string;
|
|
5
|
+
applicationId: string | null;
|
|
6
6
|
receiptId: string;
|
|
7
7
|
gatewayUrl: string;
|
|
8
|
-
transactionKey: string;
|
|
8
|
+
transactionKey: string | null;
|
|
9
9
|
}
|
|
10
10
|
declare class BootpayPaymentEventManager extends BootpayWindowEvent {
|
|
11
11
|
$eventPrefix: string;
|
|
@@ -29,7 +29,7 @@ declare class BootpayPaymentEventManager extends BootpayWindowEvent {
|
|
|
29
29
|
* Comment by GOSOMI
|
|
30
30
|
* @date: 2021-12-29
|
|
31
31
|
*/
|
|
32
|
-
setDefaultPaymentData(applicationId: string, transactionKey: string): void;
|
|
32
|
+
setDefaultPaymentData(applicationId: string | null, transactionKey: string | null): void;
|
|
33
33
|
/**
|
|
34
34
|
* bootpay dom custom 이벤트 호출
|
|
35
35
|
* Comment by GOSOMI
|
|
@@ -51,6 +51,12 @@ declare class BootpayPaymentEventManager extends BootpayWindowEvent {
|
|
|
51
51
|
* @date: 2021-12-29
|
|
52
52
|
*/
|
|
53
53
|
clearPollingEvent(): void;
|
|
54
|
+
/**
|
|
55
|
+
* PostMessage bind 이벤트 모두 삭제하기
|
|
56
|
+
* Comment by GOSOMI
|
|
57
|
+
* @date: 2023-04-18
|
|
58
|
+
*/
|
|
59
|
+
allClearEvent(): void;
|
|
54
60
|
}
|
|
55
61
|
export declare const BootpayPaymentEvent: BootpayPaymentEventManager;
|
|
56
62
|
export {};
|
package/lib/event/polling.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export declare class BootpayPollingEvent extends Resource {
|
|
|
6
6
|
* Comment by GOSOMI
|
|
7
7
|
* @date: 2021-12-29
|
|
8
8
|
*/
|
|
9
|
-
pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string, transactionKey: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
10
|
}
|
|
11
11
|
export declare const BootpayPolling: BootpayPollingEvent;
|
|
@@ -53,6 +53,12 @@ declare class TemplatePaymentManager extends TemplateManager {
|
|
|
53
53
|
* @date: 2021-05-20
|
|
54
54
|
*/
|
|
55
55
|
confirm(): Promise<any>;
|
|
56
|
+
/**
|
|
57
|
+
* REST API 받은 결제 URL을 실행한다
|
|
58
|
+
* Comment by GOSOMI
|
|
59
|
+
* @date: 2023-04-13
|
|
60
|
+
*/
|
|
61
|
+
startPaymentUrl(url: string, mode?: string): Promise<ConfirmModel>;
|
|
56
62
|
/**
|
|
57
63
|
* 팝업창을 띄우기 위한 준비
|
|
58
64
|
* Comment by GOSOMI
|
|
@@ -15,6 +15,7 @@ export interface RequestPaymentModel {
|
|
|
15
15
|
price: number;
|
|
16
16
|
tax_free?: number;
|
|
17
17
|
platform_type?: number;
|
|
18
|
+
currency?: string;
|
|
18
19
|
order_id: string;
|
|
19
20
|
uuid?: string;
|
|
20
21
|
sk?: string;
|
|
@@ -28,6 +29,10 @@ export interface RequestPaymentModel {
|
|
|
28
29
|
env?: EnvironmentModel;
|
|
29
30
|
locale?: string;
|
|
30
31
|
}
|
|
32
|
+
export interface RequestPaymentUrlModel {
|
|
33
|
+
application_id?: string;
|
|
34
|
+
url?: string;
|
|
35
|
+
}
|
|
31
36
|
export interface RequestSubscriptionModel {
|
|
32
37
|
ver?: string;
|
|
33
38
|
sdk?: boolean;
|