@bootpay/client-js 5.2.0-beta.2 → 5.2.0-beta.20

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.
Files changed (59) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.mjs +9524 -0
  3. package/dist/index.umd.js +76 -57
  4. package/dist/src/bootpay-environment.d.ts +1 -0
  5. package/dist/src/bootpay-es5.d.ts +2 -1
  6. package/dist/src/bootpay-sdk.d.ts +3 -2
  7. package/dist/src/bootpay-widget.d.ts +4 -2
  8. package/dist/src/bootpay.d.ts +4 -3
  9. package/dist/src/index.d.ts +12 -12
  10. package/dist/src/lib/analytics.d.ts +2 -1
  11. package/dist/src/lib/bootpay-store.d.ts +1 -0
  12. package/dist/src/lib/bootpay-widget.d.ts +3 -2
  13. package/dist/src/lib/bootpay.d.ts +4 -3
  14. package/dist/src/lib/event/hooks/slider/event.d.ts +6 -0
  15. package/dist/src/lib/event/hooks/widget/message.d.ts +16 -4
  16. package/dist/src/lib/event/payment.d.ts +3 -2
  17. package/dist/src/lib/event/polling.d.ts +3 -2
  18. package/dist/src/lib/event/slider.d.ts +7 -0
  19. package/dist/src/lib/event/store.d.ts +1 -0
  20. package/dist/src/lib/event/user-token.d.ts +2 -1
  21. package/dist/src/lib/event/widget.d.ts +1 -0
  22. package/dist/src/lib/locale/message.d.ts +1 -1
  23. package/dist/src/lib/template/brandpay.d.ts +17 -4
  24. package/dist/src/lib/template/confirm-modal.d.ts +2 -1
  25. package/dist/src/lib/template/modal.d.ts +2 -1
  26. package/dist/src/lib/template/payment.d.ts +4 -3
  27. package/dist/src/lib/template/slider.d.ts +21 -0
  28. package/dist/src/lib/template/store.d.ts +1 -0
  29. package/dist/src/lib/template/user-token.d.ts +14 -4
  30. package/dist/src/lib/template/widget.d.ts +5 -5
  31. package/dist/src/support/alfred-progress/index.d.ts +2 -1
  32. package/dist/src/support/event-logger.d.ts +1 -0
  33. package/dist/src/support/event.d.ts +4 -1
  34. package/dist/src/support/ex-store.d.ts +2 -1
  35. package/dist/src/support/hook.d.ts +12 -0
  36. package/dist/src/support/hooks/widget-hooks.d.ts +9 -0
  37. package/dist/src/support/resource.d.ts +1 -0
  38. package/dist/src/support/session.d.ts +16 -0
  39. package/dist/src/support/storage.d.ts +2 -1
  40. package/dist/src/support/stores/bootpay-store.d.ts +4 -0
  41. package/dist/src/support/stores/widget-store.d.ts +3 -2
  42. package/dist/src/support/template-manager.d.ts +10 -3
  43. package/dist/src/types/bootpay-ex-interface.d.ts +53 -0
  44. package/dist/src/types/bootpay-interface.d.ts +312 -0
  45. package/dist/src/types/bootpay-sdk-interface.d.ts +17 -0
  46. package/dist/src/types/bootpay-widget-interface.d.ts +121 -0
  47. package/package.json +14 -4
  48. package/tsconfig.json +10 -6
  49. package/vite.config.ts +8 -9
  50. package/dist/index.es.js +0 -8387
  51. package/dist/package.json.d.ts +0 -56
  52. package/dist/src/bootpay-wallet.d.ts +0 -15
  53. package/dist/src/lib/bootpay-wallet.d.ts +0 -7
  54. package/dist/src/lib/event/hooks/wallet/message.d.ts +0 -24
  55. package/dist/src/lib/event/wallet.d.ts +0 -6
  56. package/dist/src/lib/template/wallet.d.ts +0 -15
  57. package/dist/src/support/stores/wallet-store.d.ts +0 -11
  58. package/dist/src/support/widget-store.d.ts +0 -20
  59. package/dist/vite.config.d.ts +0 -2
@@ -1,2 +1,3 @@
1
1
  import { Environment } from './support/environment';
2
+
2
3
  export default Environment;
@@ -1,2 +1,3 @@
1
- import Bootpay from './bootpay';
1
+ import { default as Bootpay } from './bootpay';
2
+
2
3
  export default Bootpay;
@@ -1,5 +1,6 @@
1
- import { UserTokenTemplateManager } from "./lib/template/user-token";
2
- import { BiometricDataModel, RequestPaymentWalletModel } from "./models/bootpay-sdk-interface";
1
+ import { UserTokenTemplateManager } from './lib/template/user-token';
2
+ import { BiometricDataModel, RequestPaymentWalletModel } from './types/bootpay-sdk-interface';
3
+
3
4
  interface BootpaySdkInterface {
4
5
  $templateUserToken: UserTokenTemplateManager;
5
6
  errorHandler(data: any): any;
@@ -1,11 +1,13 @@
1
- import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from './models/bootpay-widget-interface';
2
- import { RequestPaymentModel, RequestSubscriptionModel } from './models/bootpay-interface';
1
+ import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayBrandpayLaunchManager, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from './types/bootpay-widget-interface';
2
+ import { RequestPaymentModel, RequestSubscriptionModel } from './types/bootpay-interface';
3
+
3
4
  export interface BootpayWidgetInterface {
4
5
  render(el: string, data: RequestBootpayWidgetModel): void;
5
6
  rerender(): void;
6
7
  setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
7
8
  requestPayment(data: RequestPaymentModel): Promise<any>;
8
9
  requestSubscription(data: RequestSubscriptionModel): Promise<any>;
10
+ launchBrandpayManager(data: RequestBootpayBrandpayLaunchManager): void;
9
11
  update(data: RequestBootpayWidgetModel, rendering?: boolean): void;
10
12
  errorHandler(e: any): any;
11
13
  currentTermsCondition(): ResponseBootpayWidgetTermsModel[];
@@ -1,7 +1,8 @@
1
- import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from "./models/bootpay-interface";
2
- import { EnvironmentInterface } from "./support/environment";
3
- import { BootpayRequestPaymentManager } from "./lib/bootpay";
1
+ import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from './types/bootpay-interface';
2
+ import { EnvironmentInterface } from './support/environment';
3
+ import { BootpayRequestPaymentManager } from './lib/bootpay';
4
4
  import { BootpayAnalyticsManager } from './lib/analytics';
5
+
5
6
  export interface BootpayInterface {
6
7
  $payment: BootpayRequestPaymentManager;
7
8
  $analytics: BootpayAnalyticsManager;
@@ -1,13 +1,16 @@
1
- import Bootpay, { BootpayInterface } from './bootpay';
2
- import BootpaySDK from './bootpay-sdk';
3
- import BootpayEnvironment from "./bootpay-environment";
4
- import BootpayStore from './bootpay-store';
5
- import BootpayWidget, { BootpayWidgetInterface } from './bootpay-widget';
6
- import BootpayWallet from './bootpay-wallet';
7
- export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore, BootpayWallet };
8
- export default Bootpay;
1
+ import { default as Bootpay, BootpayInterface } from './bootpay';
2
+ import { default as BootpaySDK } from './bootpay-sdk';
3
+ import { default as BootpayEnvironment } from './bootpay-environment';
4
+ import { default as BootpayStore } from './bootpay-store';
5
+ import { default as BootpayWidget, BootpayWidgetInterface } from './bootpay-widget';
9
6
  import { UserTokenTemplateManager } from './lib/template/user-token';
10
- import { BiometricDataModel, RequestPaymentWalletModel } from './models/bootpay-sdk-interface';
7
+ import { BiometricDataModel, RequestPaymentWalletModel } from './types/bootpay-sdk-interface';
8
+
9
+ export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore };
10
+ export default Bootpay;
11
+ export * from './types/bootpay-interface';
12
+ export * from './types/bootpay-widget-interface';
13
+ export * from './types/bootpay-sdk-interface';
11
14
  interface BootpaySdkInterface {
12
15
  $templateUserToken: UserTokenTemplateManager;
13
16
  errorHandler(data: any): any;
@@ -34,6 +37,3 @@ declare global {
34
37
  CustomEvent: any;
35
38
  }
36
39
  }
37
- export * from './models/bootpay-interface.d';
38
- export * from './models/bootpay-widget-interface.d';
39
- export * from './models/bootpay-sdk-interface.d';
@@ -1,6 +1,7 @@
1
1
  import { Resource } from '../support/resource';
2
2
  import { SessionStorageManager } from '../support/storage';
3
- import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../models/bootpay-interface';
3
+ import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../types/bootpay-interface';
4
+
4
5
  export declare class BootpayAnalyticsManager extends Resource {
5
6
  $session: SessionStorageManager;
6
7
  constructor();
@@ -1,4 +1,5 @@
1
1
  import { BootpayManager } from '../support/bootpay-manager';
2
+
2
3
  export declare class BootpayStoreWindowManager extends BootpayManager {
3
4
  constructor();
4
5
  initialize(): void;
@@ -1,6 +1,7 @@
1
1
  import { BootpayManager } from '../support/bootpay-manager';
2
- import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../models/bootpay-widget-interface';
3
- import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../models/bootpay-interface';
2
+ import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../types/bootpay-widget-interface';
3
+ import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../types/bootpay-interface';
4
+
4
5
  export declare class BootpayWidgetWindowManager extends BootpayManager {
5
6
  message: any;
6
7
  constructor();
@@ -1,7 +1,8 @@
1
- import { BootpayManager } from "../support/bootpay-manager";
2
- import { SessionStorageManager } from "../support/storage";
3
- import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from "../models/bootpay-interface";
1
+ import { BootpayManager } from '../support/bootpay-manager';
2
+ import { SessionStorageManager } from '../support/storage';
3
+ import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '../types/bootpay-interface';
4
4
  import { EventLoggerManager } from '../support/event-logger';
5
+
5
6
  export declare class BootpayRequestPaymentManager extends BootpayManager {
6
7
  $session: SessionStorageManager;
7
8
  $logger: any;
@@ -0,0 +1,6 @@
1
+ import { BootpaySliderOption } from '../../../../types/bootpay-interface';
2
+
3
+ export declare const StoreSliderEvent: {
4
+ showSliderSelect(sliderOptions: BootpaySliderOption): void;
5
+ selectSliderSelect(sliderKey: string, eventName?: string): void;
6
+ };
@@ -1,19 +1,20 @@
1
- import { ResponseBootpayWidgetTermsModel } from '../../../../models/bootpay-widget-interface';
2
- import { ExtraModel } from '../../../../models/bootpay-interface';
1
+ import { ResponseBootpayWidgetTermsModel } from '../../../../types/bootpay-widget-interface';
2
+ import { ExtraModel } from '../../../../types/bootpay-interface';
3
3
  import { BootpayWindowEvent } from '../../../../support/event';
4
+
4
5
  export declare const WidgetWindowMessage: {
5
6
  $eventPrefix: string;
6
7
  bootpayWidgetSelectMethod(data: SelectPaymentEventData): void;
7
8
  bootpayWidgetResponseGetEnvironmentWidget(data: any): void;
8
9
  bootpayWidgetResponseCurrentStores(data: any): void;
9
10
  bootpayWidgetError(data: any, event: BootpayWindowEvent): void;
10
- bootpayWidgetOOpayReload(data: any): void;
11
+ bootpayWidgetBrandpayReload(data: any): void;
11
12
  bootpayWidgetResize(data: any): void;
12
13
  bootpayWidgetShowInterestInformation(data: any): void;
13
14
  bootpayWidgetAddWallet(data: any): void;
14
15
  bootpayWidgetRemoveWallet(data: any): void;
15
16
  bootpayWidgetPaymentWindowResize(data: any): void;
16
- bootpayWidgetOOpayWindowClose(): void;
17
+ bootpayWidgetBrandpayWindowClose(): void;
17
18
  bootpayWidgetModalOpen(data: any): void;
18
19
  bootpayWidgetModalClose(): void;
19
20
  bootpayRequestModalCurrentStores(data: any): void;
@@ -27,6 +28,7 @@ export declare const WidgetWindowMessage: {
27
28
  bootpayWidgetUpdateStore(data: any): void;
28
29
  bootpayWidgetToUrl(data: any): void;
29
30
  bootpayWidgetShowModal(data: any): void;
31
+ brandpayWalletUpdated(data: any): void;
30
32
  /**
31
33
  * 결제 선택시 global 이벤트를 분리하여 호출한다
32
34
  * Comment by GOSOMI
@@ -34,6 +36,16 @@ export declare const WidgetWindowMessage: {
34
36
  */
35
37
  triggerGlobalChangeEvent(data: SelectPaymentEventData): void;
36
38
  callBootpayDOMEvent(eventName: string, data?: any): void;
39
+ bootpayWidgetPreferenceWindow(data: {
40
+ popup: boolean;
41
+ }): void;
42
+ brandpayManagerWindowReady: (data: any) => void;
43
+ brandpayManagerResize: (data: any) => void;
44
+ brandpayExternalPassword: (data: {
45
+ popup: boolean;
46
+ url: string;
47
+ }) => void;
48
+ externalPasswordResponse: (data: any) => void;
37
49
  };
38
50
  export interface SelectPaymentEventData {
39
51
  pg?: string;
@@ -1,5 +1,6 @@
1
- import { BootpayWindowEvent } from "../../support/event";
2
- import { BootpayPollingEvent } from "./polling";
1
+ import { BootpayWindowEvent } from '../../support/event';
2
+ import { BootpayPollingEvent } from './polling';
3
+
3
4
  interface PollingDataModel {
4
5
  applicationId: string | null;
5
6
  receiptId: string;
@@ -1,4 +1,5 @@
1
- import { Resource } from "../../support/resource";
1
+ import { Resource } from '../../support/resource';
2
+
2
3
  export declare class BootpayPollingEvent extends Resource {
3
4
  constructor();
4
5
  /**
@@ -6,6 +7,6 @@ export declare class BootpayPollingEvent extends Resource {
6
7
  * Comment by GOSOMI
7
8
  * @date: 2021-12-29
8
9
  */
9
- pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import("axios").AxiosResponse<any, any>>;
10
+ pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import('axios').AxiosResponse<any, any>>;
10
11
  }
11
12
  export declare const BootpayPolling: BootpayPollingEvent;
@@ -0,0 +1,7 @@
1
+ import { BootpayWindowEvent } from '../../support/event';
2
+
3
+ declare class BootpaySliderEventManager extends BootpayWindowEvent {
4
+ constructor();
5
+ }
6
+ export declare const BootpaySliderWindowEvent: BootpaySliderEventManager;
7
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { BootpayWindowEvent } from '../../support/event';
2
+
2
3
  declare class BootpayStoreEventManager extends BootpayWindowEvent {
3
4
  constructor();
4
5
  }
@@ -1,4 +1,5 @@
1
- import { BootpayWindowEvent } from "../../support/event";
1
+ import { BootpayWindowEvent } from '../../support/event';
2
+
2
3
  export declare class BootpayUserTokenEventManager extends BootpayWindowEvent {
3
4
  $messageEventName: string;
4
5
  constructor();
@@ -1,4 +1,5 @@
1
1
  import { BootpayWindowEvent } from '../../support/event';
2
+
2
3
  declare class BootpayWidgetEventManager extends BootpayWindowEvent {
3
4
  constructor();
4
5
  }
@@ -89,7 +89,7 @@ export declare const BootpayMessage: {
89
89
  ko: string;
90
90
  en: string;
91
91
  };
92
- notSelectOOPay: {
92
+ notSelectBrandpay: {
93
93
  ko: string;
94
94
  en: string;
95
95
  };
@@ -1,18 +1,31 @@
1
1
  import { TemplateManager } from '../../support/template-manager';
2
- import { WidgetStoreModel } from '../../support/widget-store';
2
+ import { WidgetStoreManager } from '../../support/stores/widget-store';
3
+
3
4
  declare class BrandpayTemplateManager extends TemplateManager {
4
5
  $brandpayWindowId: string;
5
6
  $iFrameId: string;
6
7
  $template: string;
7
8
  $windowId: string;
8
- $widgetStore: WidgetStoreModel;
9
+ $widgetStore: WidgetStoreManager;
9
10
  $additionalClass: string;
10
- constructor();
11
- template(): string;
11
+ constructor(options?: {
12
+ isBackground: boolean;
13
+ });
14
+ template({ isBackground }: {
15
+ isBackground: any;
16
+ }): string;
12
17
  createIFrame(url: string): void;
18
+ templateRender(url: string): void;
13
19
  addWallet(url: string): void;
14
20
  removeWallet(walletId: string): void;
15
21
  showCardInterestInformation(data: any): void;
22
+ brandpayPreference(data: {
23
+ popup: boolean;
24
+ }): void;
25
+ externalPassword({ popup, url }: {
26
+ popup: boolean;
27
+ url: string;
28
+ }): void;
16
29
  destroy(): void;
17
30
  resize(resizeData: any): void;
18
31
  postMessage(event: string, data?: any): void;
@@ -1,8 +1,9 @@
1
1
  import { TemplateManager } from '../../support/template-manager';
2
+
2
3
  declare class ConfirmModalManager extends TemplateManager {
3
4
  $windowId: string;
4
- $modalWindowId: string;
5
5
  $template: string;
6
+ $modalWindowId: string;
6
7
  $additionalClass: string;
7
8
  $title: string;
8
9
  $message: string;
@@ -1,9 +1,10 @@
1
1
  import { TemplateManager } from '../../support/template-manager';
2
+
2
3
  declare class ModalTemplateManager extends TemplateManager {
3
4
  $windowId: string;
4
- $modalWindowId: string;
5
5
  $iFrameId: string;
6
6
  $template: string;
7
+ $modalWindowId: string;
7
8
  $additionalClass: string;
8
9
  constructor();
9
10
  template(): string;
@@ -1,10 +1,11 @@
1
- import { TemplateManager } from "../../support/template-manager";
2
- import { ConfirmModel, PopupDisplayResponseModel } from "../../models/bootpay-interface";
1
+ import { TemplateManager } from '../../support/template-manager';
2
+ import { ConfirmModel, PopupDisplayResponseModel } from '../../types/bootpay-interface';
3
+
3
4
  declare class TemplatePaymentManager extends TemplateManager {
4
5
  $template: string;
5
- $formId: string;
6
6
  $iFrameId: string;
7
7
  $windowId: string;
8
+ $formId: string;
8
9
  $paymentWindowId: string;
9
10
  $popupWindow: string;
10
11
  $confirmFormId: string;
@@ -0,0 +1,21 @@
1
+ import { TemplateManager } from '../../support/template-manager';
2
+ import { BootpaySliderOption, BootpaySliderSelectOption } from '../../types/bootpay-interface';
3
+
4
+ declare class SliderTemplateManager extends TemplateManager {
5
+ $windowId: string;
6
+ $template: string;
7
+ $modalWindowId: string;
8
+ $additionalClass: string;
9
+ $title: string;
10
+ $options: BootpaySliderOption | undefined;
11
+ constructor();
12
+ template(sliders: BootpaySliderSelectOption[]): string;
13
+ sliderButtonTemplate(sliders: BootpaySliderSelectOption[]): string;
14
+ sliderButtonId(key: string): string;
15
+ show(event: any, options: BootpaySliderOption): void;
16
+ sliderButtonClickHook(event: any): void;
17
+ sliderButtonClickHookDestroy(): void;
18
+ destroy(): void;
19
+ }
20
+ export declare const SliderTemplate: SliderTemplateManager;
21
+ export {};
@@ -1,5 +1,6 @@
1
1
  import { TemplateManager } from '../../support/template-manager';
2
2
  import { ExStoreManager } from '../../support/ex-store';
3
+
3
4
  declare class TemplateStoreManager extends TemplateManager {
4
5
  $template: string;
5
6
  $iFrameId: string;
@@ -1,7 +1,9 @@
1
- import { TemplateManager } from "../../support/template-manager";
2
- import { BootpayUserTokenEventManager } from "../event/user-token";
3
- import { SessionStorageManager } from "../../support/storage";
4
- import { BiometricDataModel, RequestPaymentWalletModel } from "../../models/bootpay-sdk-interface";
1
+ import { TemplateManager } from '../../support/template-manager';
2
+ import { BootpayUserTokenEventManager } from '../event/user-token';
3
+ import { SessionStorageManager } from '../../support/storage';
4
+ import { BiometricDataModel, RequestPaymentWalletModel } from '../../types/bootpay-sdk-interface';
5
+ import { RequestBootpayBrandpayLaunchManager } from '../../types/bootpay-widget-interface';
6
+
5
7
  export declare class UserTokenTemplateManager extends TemplateManager {
6
8
  $session: SessionStorageManager;
7
9
  $template: string;
@@ -10,6 +12,8 @@ export declare class UserTokenTemplateManager extends TemplateManager {
10
12
  $userWindowId: string;
11
13
  $bootpaySdkFormId: string;
12
14
  $event: BootpayUserTokenEventManager;
15
+ $popupInstance: Window | null;
16
+ $popupInstanceWatcher: number;
13
17
  deviceType: number;
14
18
  constructor();
15
19
  /**
@@ -67,6 +71,12 @@ export declare class UserTokenTemplateManager extends TemplateManager {
67
71
  * @date: 2022-02-25
68
72
  */
69
73
  requestWalletPayment(data: RequestPaymentWalletModel): Promise<unknown>;
74
+ /**
75
+ * Brandpay Manager를 실행한다
76
+ * Comment by GOSOMI
77
+ * @date: 2022-02-16
78
+ */
79
+ launchBrandpayManager(data: RequestBootpayBrandpayLaunchManager): void;
70
80
  /**
71
81
  * iFrame src로 이동
72
82
  * Comment by GOSOMI
@@ -1,9 +1,10 @@
1
1
  import { TemplateManager } from '../../support/template-manager';
2
- import { WidgetStoreModel } from '../../support/widget-store';
3
- declare class TemplateWidgetManager extends TemplateManager {
2
+ import { WidgetStoreManager } from '../../support/stores/widget-store';
3
+
4
+ export declare class TemplateWidgetManager extends TemplateManager {
4
5
  $iFrameId: string;
5
6
  $template: string;
6
- $widgetStore: WidgetStoreModel;
7
+ $widgetStore: WidgetStoreManager;
7
8
  constructor();
8
9
  /**
9
10
  * 첫 Rendering을 진행한다
@@ -16,7 +17,7 @@ declare class TemplateWidgetManager extends TemplateManager {
16
17
  * Comment by GOSOMI
17
18
  * @date: 2023-06-15
18
19
  */
19
- templateRender(): void;
20
+ templateRender(url: string): void;
20
21
  resize(resizeData: any): void;
21
22
  /**
22
23
  * widget을 재 렌더링한다
@@ -32,4 +33,3 @@ declare class TemplateWidgetManager extends TemplateManager {
32
33
  destroy(): void;
33
34
  }
34
35
  export declare const TemplateWidget: TemplateWidgetManager;
35
- export {};
@@ -1,4 +1,5 @@
1
- import { TemplateManager } from "../template-manager";
1
+ import { TemplateManager } from '../template-manager';
2
+
2
3
  declare class AlfredProgressManager extends TemplateManager {
3
4
  $alfredId: string;
4
5
  $alfredTextId: string;
@@ -1,5 +1,6 @@
1
1
  import { Resource } from './resource';
2
2
  import { SessionStorageManager } from './storage';
3
+
3
4
  interface EventDataModel {
4
5
  application_id?: string;
5
6
  step: string;
@@ -1,4 +1,5 @@
1
- import { BootpayManager } from "./bootpay-manager";
1
+ import { BootpayManager } from './bootpay-manager';
2
+
2
3
  interface EventMessage {
3
4
  event: string;
4
5
  error_code: string;
@@ -42,6 +43,7 @@ export declare class BootpayWindowEvent extends BootpayManager {
42
43
  $eventHooks: {
43
44
  [hookName: string]: any;
44
45
  };
46
+ $childInstance: any;
45
47
  constructor(options?: {
46
48
  messageEventName: string;
47
49
  messageEventHooks: {
@@ -49,6 +51,7 @@ export declare class BootpayWindowEvent extends BootpayManager {
49
51
  };
50
52
  afterBind?: Function;
51
53
  });
54
+ setChildInstance(childInstance: any): void;
52
55
  bind(resolve?: Function, reject?: Function): void;
53
56
  hookFunction(hook: string): any;
54
57
  reject(data: any): void;
@@ -1,7 +1,8 @@
1
1
  import { BootpayStoreManager } from './stores/bootpay-store';
2
+
2
3
  export declare class ExStoreManager extends BootpayStoreManager {
3
- el: string | undefined;
4
4
  data: any | undefined;
5
+ el: string | undefined;
5
6
  path: string | undefined;
6
7
  constructor();
7
8
  setExData(el: string, data: RequestExModel): void;
@@ -0,0 +1,12 @@
1
+ export declare class BootpayEventHook {
2
+ hooks: {
3
+ [key: string]: Function;
4
+ };
5
+ constructor(hooks?: {
6
+ [key: string]: any;
7
+ });
8
+ setHooks(hooks: {
9
+ [key: string]: any;
10
+ }): void;
11
+ callHook(event: string, ...args: any[]): void;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { BootpayEventHook } from '../hook';
2
+
3
+ declare class BootpayWidgetHook extends BootpayEventHook {
4
+ constructor(hooks?: {
5
+ [key: string]: Function;
6
+ });
7
+ }
8
+ export declare const WidgetHooks: BootpayWidgetHook;
9
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
+
2
3
  interface EncryptParamsFormat {
3
4
  payload: string;
4
5
  token: string;
@@ -0,0 +1,16 @@
1
+ import { default as CryptoJS } from 'crypto-js';
2
+
3
+ export declare class BootpaySessionStoreManager {
4
+ sessionStorage: any;
5
+ constructor();
6
+ get privateKey(): CryptoJS.lib.WordArray;
7
+ encrypt(data?: {}): string;
8
+ decrypt: (data: string) => any | string;
9
+ get(key: string): any;
10
+ set(key: string, value: any): void;
11
+ getDecrypt(key: string): any;
12
+ getItem(key: string, subKey: string, defaultValue?: any): any;
13
+ setEncrypt(key: string, value: any): void;
14
+ setItem(key: string, subKey: string, value: any): void;
15
+ }
16
+ export declare const BootpaySessionStorage: BootpaySessionStoreManager;
@@ -1,4 +1,5 @@
1
- import { BootpayManager } from "./bootpay-manager";
1
+ import { BootpayManager } from './bootpay-manager';
2
+
2
3
  export interface SessionUserInterface {
3
4
  id?: string;
4
5
  time?: number;
@@ -1,7 +1,11 @@
1
1
  export declare class BootpayStoreManager {
2
2
  data: any;
3
+ hooks: {
4
+ [key: string]: Function;
5
+ };
3
6
  constructor();
4
7
  encryptKey(): string;
5
8
  encrypt(data: object | string): string;
6
9
  decrypt(data: string): any | string;
10
+ callHook(name: string, ...args: any[]): any;
7
11
  }
@@ -1,6 +1,7 @@
1
- import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../models/bootpay-widget-interface';
2
- import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../models/bootpay-interface';
1
+ import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../types/bootpay-widget-interface';
2
+ import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../types/bootpay-interface';
3
3
  import { BootpayStoreManager } from './bootpay-store';
4
+
4
5
  export declare class WidgetStoreManager extends BootpayStoreManager {
5
6
  el: string | undefined;
6
7
  data: any;
@@ -1,9 +1,15 @@
1
- import { BootpayManager } from "./bootpay-manager";
1
+ import { BootpayManager } from './bootpay-manager';
2
+
2
3
  export declare class TemplateManager extends BootpayManager {
3
4
  $windowId: string;
4
5
  $template: string;
5
6
  $iFrameId: string;
6
- constructor();
7
+ el?: string;
8
+ constructor(data?: {
9
+ iframeId?: string;
10
+ template?: string;
11
+ el?: string;
12
+ });
7
13
  defaultIframeHtml(): string;
8
14
  byId(id: string): HTMLElement | null;
9
15
  /**
@@ -12,7 +18,7 @@ export declare class TemplateManager extends BootpayManager {
12
18
  * @date: 2022-02-16
13
19
  */
14
20
  createTemplateHtml(): void;
15
- bodyOpen(addClass?: string | undefined): void;
21
+ bodyOpen(addClass?: string | undefined, openSkip?: boolean): void;
16
22
  bodyClose(): void;
17
23
  templateResize(el: string, resizeData: any): void;
18
24
  /**
@@ -27,4 +33,5 @@ export declare class TemplateManager extends BootpayManager {
27
33
  * @date: 2023-06-15
28
34
  */
29
35
  postMessage(event: string, data?: any): void;
36
+ defaultRender(url: string): void;
30
37
  }
@@ -0,0 +1,53 @@
1
+ interface BootpayStoreInterface {
2
+ render(el: string, data: RequestExModel): void
3
+
4
+ setEnvironmentMode(env: 'development' | 'stage' | 'production'): void
5
+
6
+ hideAlert(eventName: string): void
7
+
8
+ sendEvent(eventName: string, data: any): void
9
+ }
10
+
11
+ interface RequestExModel {
12
+ client_key: string
13
+ categories?: string[]
14
+ extra?: RequestExExtraModel
15
+ hooks?: {
16
+ onReady?: () => void
17
+ }
18
+ }
19
+
20
+ interface ExStoreModel {
21
+ el: string | undefined
22
+ data: RequestExModel | undefined
23
+ path: string | undefined
24
+
25
+ encryptKey(): string
26
+
27
+ setExData(el: string, data: RequestExModel): void
28
+
29
+ encryptParameters(): string
30
+
31
+ encrypt(data: object | string): string
32
+
33
+ decrypt(data: string): any | string
34
+
35
+ currentBootpayStoreParameters(): string
36
+ }
37
+
38
+ interface ExResizeData {
39
+ width: string | number
40
+ height: string | number
41
+ }
42
+
43
+ interface RequestExExtraModel {
44
+ window?: {
45
+ width?: string | number
46
+ height?: string | number
47
+ resizable?: boolean
48
+ fullscreen?: boolean
49
+ }
50
+ frame_style?: {
51
+ background_color?: string
52
+ }
53
+ }