@bootpay/client-js 4.2.9 → 4.3.0

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/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
@@ -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
@@ -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
@@ -28,6 +28,10 @@ export interface RequestPaymentModel {
28
28
  env?: EnvironmentModel;
29
29
  locale?: string;
30
30
  }
31
+ export interface RequestPaymentUrlModel {
32
+ application_id?: string;
33
+ url?: string;
34
+ }
31
35
  export interface RequestSubscriptionModel {
32
36
  ver?: string;
33
37
  sdk?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootpay/client-js",
3
- "version": "4.2.9",
3
+ "version": "4.3.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {