@bootpay/client-js 5.2.0-beta.9 → 5.2.0-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.
Files changed (62) hide show
  1. package/.gitmodules +3 -0
  2. package/dist/index.mjs +2902 -2920
  3. package/dist/index.umd.js +47 -64
  4. package/dist/src/bootpay-environment.d.ts +1 -1
  5. package/dist/src/bootpay-es5.d.ts +1 -1
  6. package/dist/src/bootpay-sdk.d.ts +2 -2
  7. package/dist/src/bootpay-widget.d.ts +3 -2
  8. package/dist/src/bootpay.d.ts +5 -5
  9. package/dist/src/index.d.ts +10 -12
  10. package/dist/src/lib/analytics.d.ts +3 -3
  11. package/dist/src/lib/bootpay-widget.d.ts +3 -3
  12. package/dist/src/lib/bootpay.d.ts +4 -4
  13. package/dist/src/lib/event/hooks/widget/message.d.ts +10 -3
  14. package/dist/src/lib/event/payment.d.ts +38 -2
  15. package/dist/src/lib/event/polling.d.ts +2 -2
  16. package/dist/src/lib/event/user-token.d.ts +7 -1
  17. package/dist/src/lib/event/widget.d.ts +1 -1
  18. package/dist/src/lib/template/brandpay.d.ts +14 -5
  19. package/dist/src/lib/template/payment.d.ts +27 -3
  20. package/dist/src/lib/template/user-token.d.ts +19 -4
  21. package/dist/src/lib/template/widget.d.ts +5 -6
  22. package/dist/src/support/event-logger.d.ts +2 -2
  23. package/dist/src/support/hooks/widget-hooks.d.ts +9 -0
  24. package/dist/src/support/stores/widget-store.d.ts +22 -4
  25. package/dist/src/types/bootpay-interface.d.ts +299 -0
  26. package/dist/src/types/bootpay-sdk-interface.d.ts +17 -0
  27. package/dist/src/types/bootpay-widget-interface.d.ts +121 -0
  28. package/dist/src/{support → vendor/components}/alfred-progress/index.d.ts +1 -1
  29. package/dist/src/{lib/template → vendor/components}/confirm-modal.d.ts +2 -2
  30. package/dist/src/{lib/template → vendor/components}/modal.d.ts +2 -2
  31. package/dist/src/vendor/components/slider/hooks/slider/event.d.ts +4 -0
  32. package/dist/src/vendor/components/slider/index.d.ts +7 -0
  33. package/dist/src/vendor/components/slider/template/slider.d.ts +20 -0
  34. package/dist/src/vendor/mixins/bootpay-commerce.d.ts +11 -0
  35. package/dist/src/{support → vendor/mixins}/event.d.ts +3 -1
  36. package/dist/src/vendor/mixins/ex-commerce.d.ts +13 -0
  37. package/dist/src/vendor/mixins/hook.d.ts +12 -0
  38. package/dist/src/{support → vendor/mixins}/resource.d.ts +1 -1
  39. package/dist/src/vendor/mixins/session.d.ts +16 -0
  40. package/dist/src/{support → vendor/mixins}/storage.d.ts +1 -1
  41. package/dist/src/{support → vendor/mixins}/template-manager.d.ts +8 -2
  42. package/dist/src/vendor/types/slider-interface.d.ts +12 -0
  43. package/package.json +4 -6
  44. package/tsconfig.json +15 -3
  45. package/vite.config.ts +9 -7
  46. package/dist/package.json.d.ts +0 -68
  47. package/dist/src/bootpay-store.d.ts +0 -7
  48. package/dist/src/lib/bootpay-store.d.ts +0 -10
  49. package/dist/src/lib/event/hooks/ex/router.d.ts +0 -7
  50. package/dist/src/lib/event/hooks/ex/window.d.ts +0 -22
  51. package/dist/src/lib/event/store.d.ts +0 -7
  52. package/dist/src/lib/hooks/store.d.ts +0 -5
  53. package/dist/src/lib/template/store.d.ts +0 -35
  54. package/dist/src/support/ex-store.d.ts +0 -13
  55. package/dist/src/support/stores/bootpay-store.d.ts +0 -7
  56. package/dist/src/support/stores/ex-store.d.ts +0 -1
  57. package/dist/src/support/widget-store.d.ts +0 -21
  58. package/dist/vite.config.d.ts +0 -2
  59. /package/dist/src/{support → vendor/mixins}/bootpay-manager.d.ts +0 -0
  60. /package/dist/src/{support → vendor/mixins}/logger.d.ts +0 -0
  61. /package/dist/src/{support → vendor/mixins}/util.d.ts +0 -0
  62. /package/dist/src/{models → vendor/models}/const.d.ts +0 -0
@@ -1,3 +1,3 @@
1
- import { Environment } from '../node_modules/support/environment';
1
+ import { Environment } from './support/environment';
2
2
 
3
3
  export default Environment;
@@ -1,3 +1,3 @@
1
- import { default as Bootpay } from '../node_modules/bootpay';
1
+ import { default as Bootpay } from './bootpay';
2
2
 
3
3
  export default Bootpay;
@@ -1,5 +1,5 @@
1
- import { UserTokenTemplateManager } from '../node_modules/lib/template/user-token';
2
- import { BiometricDataModel, RequestPaymentWalletModel } from '../node_modules/models/bootpay-sdk-interface';
1
+ import { UserTokenTemplateManager } from './lib/template/user-token';
2
+ import { BiometricDataModel, RequestPaymentWalletModel } from './types/bootpay-sdk-interface';
3
3
 
4
4
  interface BootpaySdkInterface {
5
5
  $templateUserToken: UserTokenTemplateManager;
@@ -1,5 +1,5 @@
1
- import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../node_modules/models/bootpay-widget-interface';
2
- import { RequestPaymentModel, RequestSubscriptionModel } from '../node_modules/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
4
  export interface BootpayWidgetInterface {
5
5
  render(el: string, data: RequestBootpayWidgetModel): void;
@@ -7,6 +7,7 @@ export interface BootpayWidgetInterface {
7
7
  setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
8
8
  requestPayment(data: RequestPaymentModel): Promise<any>;
9
9
  requestSubscription(data: RequestSubscriptionModel): Promise<any>;
10
+ launchBrandpayManager(data: RequestBootpayBrandpayLaunchManager): void;
10
11
  update(data: RequestBootpayWidgetModel, rendering?: boolean): void;
11
12
  errorHandler(e: any): any;
12
13
  currentTermsCondition(): ResponseBootpayWidgetTermsModel[];
@@ -1,7 +1,7 @@
1
- import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '../node_modules/models/bootpay-interface';
2
- import { EnvironmentInterface } from '../node_modules/support/environment';
3
- import { BootpayRequestPaymentManager } from '../node_modules/lib/bootpay';
4
- import { BootpayAnalyticsManager } from '../node_modules/lib/analytics';
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
+ import { BootpayAnalyticsManager } from './lib/analytics';
5
5
 
6
6
  export interface BootpayInterface {
7
7
  $payment: BootpayRequestPaymentManager;
@@ -22,7 +22,7 @@ export interface BootpayInterface {
22
22
  send(data: BootpayAnalyticsModel): Promise<any>;
23
23
  login(data: BootpayAnalyticsUserModel): Promise<any>;
24
24
  logout(): void;
25
- readyToPopup(): void;
25
+ readyToPopup(url: string): void;
26
26
  getCurrentUUID(): string | undefined;
27
27
  setLocale(locale: string): void;
28
28
  dismiss(closedEvent: boolean): void;
@@ -1,16 +1,15 @@
1
- import { default as Bootpay, BootpayInterface } from '../node_modules/bootpay';
2
- import { default as BootpaySDK } from '../node_modules/bootpay-sdk';
3
- import { default as BootpayEnvironment } from '../node_modules/bootpay-environment';
4
- import { default as BootpayStore } from '../node_modules/bootpay-store';
5
- import { default as BootpayWidget, BootpayWidgetInterface } from '../node_modules/bootpay-widget';
6
- import { UserTokenTemplateManager } from '../node_modules/lib/template/user-token';
7
- import { BiometricDataModel, RequestPaymentWalletModel } from '../node_modules/models/bootpay-sdk-interface';
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 BootpayWidget, BootpayWidgetInterface } from './bootpay-widget';
5
+ import { UserTokenTemplateManager } from './lib/template/user-token';
6
+ import { BiometricDataModel, RequestPaymentWalletModel } from './types/bootpay-sdk-interface';
8
7
 
9
- export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore };
8
+ export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget };
10
9
  export default Bootpay;
11
- export * from '../node_modules/models/bootpay-interface.d';
12
- export * from '../node_modules/models/bootpay-widget-interface.d';
13
- export * from '../node_modules/models/bootpay-sdk-interface.d';
10
+ export * from './types/bootpay-interface';
11
+ export * from './types/bootpay-widget-interface';
12
+ export * from './types/bootpay-sdk-interface';
14
13
  interface BootpaySdkInterface {
15
14
  $templateUserToken: UserTokenTemplateManager;
16
15
  errorHandler(data: any): any;
@@ -33,7 +32,6 @@ declare global {
33
32
  Bootpay: BootpayInterface;
34
33
  BootpayWidget: BootpayWidgetInterface;
35
34
  BootpaySDK: BootpaySdkInterface;
36
- BootpayStore: BootpayStoreInterface;
37
35
  CustomEvent: any;
38
36
  }
39
37
  }
@@ -1,6 +1,6 @@
1
- import { Resource } from '../../support/resource';
2
- import { SessionStorageManager } from '../../support/storage';
3
- import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../../models/bootpay-interface';
1
+ import { Resource } from '../vendor/mixins/resource';
2
+ import { SessionStorageManager } from '../vendor/mixins/storage';
3
+ import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../types/bootpay-interface';
4
4
 
5
5
  export declare class BootpayAnalyticsManager extends Resource {
6
6
  $session: SessionStorageManager;
@@ -1,6 +1,6 @@
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';
1
+ import { BootpayManager } from '../vendor/mixins/bootpay-manager';
2
+ import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../types/bootpay-widget-interface';
3
+ import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../types/bootpay-interface';
4
4
 
5
5
  export declare class BootpayWidgetWindowManager extends BootpayManager {
6
6
  message: any;
@@ -1,7 +1,7 @@
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';
4
- import { EventLoggerManager } from '../../support/event-logger';
1
+ import { BootpayManager } from '../vendor/mixins/bootpay-manager';
2
+ import { SessionStorageManager } from '../vendor/mixins/storage';
3
+ import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '../types/bootpay-interface';
4
+ import { EventLoggerManager } from '../support/event-logger';
5
5
 
6
6
  export declare class BootpayRequestPaymentManager extends BootpayManager {
7
7
  $session: SessionStorageManager;
@@ -1,6 +1,6 @@
1
- import { ResponseBootpayWidgetTermsModel } from '../../../../../../../../models/bootpay-widget-interface';
2
- import { ExtraModel } from '../../../../../../../../models/bootpay-interface';
3
- import { BootpayWindowEvent } from '../../../../../../../../support/event';
1
+ import { ResponseBootpayWidgetTermsModel } from '../../../../types/bootpay-widget-interface';
2
+ import { ExtraModel } from '../../../../types/bootpay-interface';
3
+ import { BootpayWindowEvent } from '../../../../vendor/mixins/event';
4
4
 
5
5
  export declare const WidgetWindowMessage: {
6
6
  $eventPrefix: string;
@@ -39,6 +39,13 @@ export declare const WidgetWindowMessage: {
39
39
  bootpayWidgetPreferenceWindow(data: {
40
40
  popup: boolean;
41
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;
42
49
  };
43
50
  export interface SelectPaymentEventData {
44
51
  pg?: string;
@@ -1,5 +1,5 @@
1
- import { BootpayWindowEvent } from '../../../../support/event';
2
- import { BootpayPollingEvent } from '../../../node_modules/polling';
1
+ import { BootpayWindowEvent } from '../../vendor/mixins/event';
2
+ import { BootpayPollingEvent } from './polling';
3
3
 
4
4
  interface PollingDataModel {
5
5
  applicationId: string | null;
@@ -54,6 +54,42 @@ declare class BootpayPaymentEventManager extends BootpayWindowEvent {
54
54
  * @date: 2023-04-18
55
55
  */
56
56
  allClearEvent(): void;
57
+ /**
58
+ * 공통 에러/취소 처리 메서드
59
+ * Comment by GOSOMI
60
+ * @date: 2024-01-01
61
+ */
62
+ private handleErrorOrCancel;
63
+ /**
64
+ * 공통 진행상태 업데이트 처리 메서드
65
+ * Comment by GOSOMI
66
+ * @date: 2024-01-01
67
+ */
68
+ private handleProgressUpdate;
69
+ /**
70
+ * 공통 스타일 업데이트 처리 메서드
71
+ * Comment by GOSOMI
72
+ * @date: 2024-01-01
73
+ */
74
+ private handleStyleUpdate;
75
+ /**
76
+ * 공통 표시상태 처리 메서드
77
+ * Comment by GOSOMI
78
+ * @date: 2024-01-01
79
+ */
80
+ private handleVisibilityUpdate;
81
+ /**
82
+ * polling 응답 처리 헬퍼 메서드
83
+ * Comment by GOSOMI
84
+ * @date: 2024-01-01
85
+ */
86
+ private handlePollingResponse;
87
+ /**
88
+ * polling 데이터 초기화 헬퍼 메서드
89
+ * Comment by GOSOMI
90
+ * @date: 2024-01-01
91
+ */
92
+ private resetPollingData;
57
93
  }
58
94
  export declare const BootpayPaymentEvent: BootpayPaymentEventManager;
59
95
  export {};
@@ -1,4 +1,4 @@
1
- import { Resource } from '../../../../support/resource';
1
+ import { Resource } from '../../vendor/mixins/resource';
2
2
 
3
3
  export declare class BootpayPollingEvent extends Resource {
4
4
  constructor();
@@ -7,6 +7,6 @@ export declare class BootpayPollingEvent extends Resource {
7
7
  * Comment by GOSOMI
8
8
  * @date: 2021-12-29
9
9
  */
10
- pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import('../../../node_modules/axios').AxiosResponse<any, any>>;
10
+ pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import('axios').AxiosResponse<any, any>>;
11
11
  }
12
12
  export declare const BootpayPolling: BootpayPollingEvent;
@@ -1,7 +1,13 @@
1
- import { BootpayWindowEvent } from '../../../../support/event';
1
+ import { BootpayWindowEvent } from '../../vendor/mixins/event';
2
2
 
3
3
  export declare class BootpayUserTokenEventManager extends BootpayWindowEvent {
4
4
  $messageEventName: string;
5
5
  constructor();
6
6
  bind(resolve: Function, reject: Function): void;
7
+ /**
8
+ * 공통 에러/취소 처리 메서드
9
+ * Comment by GOSOMI
10
+ * @date: 2024-01-01
11
+ */
12
+ private handleErrorOrCancel;
7
13
  }
@@ -1,4 +1,4 @@
1
- import { BootpayWindowEvent } from '../../../../support/event';
1
+ import { BootpayWindowEvent } from '../../vendor/mixins/event';
2
2
 
3
3
  declare class BootpayWidgetEventManager extends BootpayWindowEvent {
4
4
  constructor();
@@ -1,22 +1,31 @@
1
- import { TemplateManager } from '../../../../support/template-manager';
2
- import { WidgetStoreModel } from '../../../../support/widget-store';
1
+ import { TemplateManager } from '../../vendor/mixins/template-manager';
2
+ import { WidgetStoreManager } from '../../support/stores/widget-store';
3
3
 
4
4
  declare class BrandpayTemplateManager extends TemplateManager {
5
5
  $brandpayWindowId: string;
6
6
  $iFrameId: string;
7
7
  $template: string;
8
8
  $windowId: string;
9
- $widgetStore: WidgetStoreModel;
9
+ $widgetStore: WidgetStoreManager;
10
10
  $additionalClass: string;
11
- constructor();
12
- template(): string;
11
+ constructor(options?: {
12
+ isBackground: boolean;
13
+ });
14
+ template({ isBackground }: {
15
+ isBackground: any;
16
+ }): string;
13
17
  createIFrame(url: string): void;
18
+ templateRender(url: string): void;
14
19
  addWallet(url: string): void;
15
20
  removeWallet(walletId: string): void;
16
21
  showCardInterestInformation(data: any): void;
17
22
  brandpayPreference(data: {
18
23
  popup: boolean;
19
24
  }): void;
25
+ externalPassword({ popup, url }: {
26
+ popup: boolean;
27
+ url: string;
28
+ }): void;
20
29
  destroy(): void;
21
30
  resize(resizeData: any): void;
22
31
  postMessage(event: string, data?: any): void;
@@ -1,11 +1,11 @@
1
- import { TemplateManager } from '../../../../support/template-manager';
2
- import { ConfirmModel, PopupDisplayResponseModel } from '../../../../models/bootpay-interface';
1
+ import { TemplateManager } from '../../vendor/mixins/template-manager';
2
+ import { ConfirmModel, PopupDisplayResponseModel } from '../../types/bootpay-interface';
3
3
 
4
4
  declare class TemplatePaymentManager extends TemplateManager {
5
5
  $template: string;
6
- $formId: string;
7
6
  $iFrameId: string;
8
7
  $windowId: string;
8
+ $formId: string;
9
9
  $paymentWindowId: string;
10
10
  $popupWindow: string;
11
11
  $confirmFormId: string;
@@ -141,6 +141,12 @@ declare class TemplatePaymentManager extends TemplateManager {
141
141
  * @date: 2023-07-17
142
142
  */
143
143
  windowStyle(styles: any): void;
144
+ /**
145
+ * 안전한 스타일 적용 메서드
146
+ * Comment by GOSOMI
147
+ * @date: 2024-01-01
148
+ */
149
+ private safeApplyStyles;
144
150
  /**
145
151
  * 결제 iFrame창을 감춘다
146
152
  * Comment by GOSOMI
@@ -163,6 +169,24 @@ declare class TemplatePaymentManager extends TemplateManager {
163
169
  */
164
170
  moveToUrl(url: string): void;
165
171
  apiUrl(): any;
172
+ /**
173
+ * Form 설정 공통 메서드
174
+ * Comment by GOSOMI
175
+ * @date: 2024-01-01
176
+ */
177
+ private setupForm;
178
+ /**
179
+ * URL용 Form 설정 공통 메서드
180
+ * Comment by GOSOMI
181
+ * @date: 2024-01-01
182
+ */
183
+ private setupFormForUrl;
184
+ /**
185
+ * 공통 초기화 및 설정
186
+ * Comment by GOSOMI
187
+ * @date: 2024-01-01
188
+ */
189
+ private initializePayment;
166
190
  }
167
191
  export declare const TemplatePayment: TemplatePaymentManager;
168
192
  export {};
@@ -1,7 +1,8 @@
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 '../../vendor/mixins/template-manager';
2
+ import { BootpayUserTokenEventManager } from '../event/user-token';
3
+ import { SessionStorageManager } from '../../vendor/mixins/storage';
4
+ import { BiometricDataModel, RequestPaymentWalletModel } from '../../types/bootpay-sdk-interface';
5
+ import { RequestBootpayBrandpayLaunchManager } from '../../types/bootpay-widget-interface';
5
6
 
6
7
  export declare class UserTokenTemplateManager extends TemplateManager {
7
8
  $session: SessionStorageManager;
@@ -11,8 +12,16 @@ export declare class UserTokenTemplateManager extends TemplateManager {
11
12
  $userWindowId: string;
12
13
  $bootpaySdkFormId: string;
13
14
  $event: BootpayUserTokenEventManager;
15
+ $popupInstance: Window | null;
16
+ $popupInstanceWatcher: number;
14
17
  deviceType: number;
15
18
  constructor();
19
+ /**
20
+ * 공통 템플릿 초기화 메서드
21
+ * Comment by GOSOMI
22
+ * @date: 2024-01-01
23
+ */
24
+ private initializeTemplate;
16
25
  /**
17
26
  * DeviceType을 지정한다
18
27
  * Comment by GOSOMI
@@ -68,6 +77,12 @@ export declare class UserTokenTemplateManager extends TemplateManager {
68
77
  * @date: 2022-02-25
69
78
  */
70
79
  requestWalletPayment(data: RequestPaymentWalletModel): Promise<unknown>;
80
+ /**
81
+ * Brandpay Manager를 실행한다
82
+ * Comment by GOSOMI
83
+ * @date: 2022-02-16
84
+ */
85
+ launchBrandpayManager(data: RequestBootpayBrandpayLaunchManager): void;
71
86
  /**
72
87
  * iFrame src로 이동
73
88
  * Comment by GOSOMI
@@ -1,10 +1,10 @@
1
- import { TemplateManager } from '../../../../support/template-manager';
2
- import { WidgetStoreModel } from '../../../../support/widget-store';
1
+ import { TemplateManager } from '../../vendor/mixins/template-manager';
2
+ import { WidgetStoreManager } from '../../support/stores/widget-store';
3
3
 
4
- declare class TemplateWidgetManager extends TemplateManager {
4
+ export declare class TemplateWidgetManager extends TemplateManager {
5
5
  $iFrameId: string;
6
6
  $template: string;
7
- $widgetStore: WidgetStoreModel;
7
+ $widgetStore: WidgetStoreManager;
8
8
  constructor();
9
9
  /**
10
10
  * 첫 Rendering을 진행한다
@@ -17,7 +17,7 @@ declare class TemplateWidgetManager extends TemplateManager {
17
17
  * Comment by GOSOMI
18
18
  * @date: 2023-06-15
19
19
  */
20
- templateRender(): void;
20
+ templateRender(url: string): void;
21
21
  resize(resizeData: any): void;
22
22
  /**
23
23
  * widget을 재 렌더링한다
@@ -33,4 +33,3 @@ declare class TemplateWidgetManager extends TemplateManager {
33
33
  destroy(): void;
34
34
  }
35
35
  export declare const TemplateWidget: TemplateWidgetManager;
36
- export {};
@@ -1,5 +1,5 @@
1
- import { Resource } from '../../node_modules/resource';
2
- import { SessionStorageManager } from '../../node_modules/storage';
1
+ import { Resource } from '../vendor/mixins/resource';
2
+ import { SessionStorageManager } from '../vendor/mixins/storage';
3
3
 
4
4
  interface EventDataModel {
5
5
  application_id?: string;
@@ -0,0 +1,9 @@
1
+ import { BootpayEventHook } from '../../vendor/mixins/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,8 +1,8 @@
1
- import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../../../models/bootpay-widget-interface';
2
- import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../../../models/bootpay-interface';
3
- import { BootpayStoreManager } from '../../../node_modules/bootpay-store';
1
+ import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../types/bootpay-widget-interface';
2
+ import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../types/bootpay-interface';
3
+ import { BootpayCommerceManager } from '../../vendor/mixins/bootpay-commerce';
4
4
 
5
- export declare class WidgetStoreManager extends BootpayStoreManager {
5
+ export declare class WidgetStoreManager extends BootpayCommerceManager {
6
6
  el: string | undefined;
7
7
  data: any;
8
8
  termsPassed: boolean;
@@ -20,5 +20,23 @@ export declare class WidgetStoreManager extends BootpayStoreManager {
20
20
  */
21
21
  getExtra(externalExtra?: ExtraModel | undefined): ExtraModel;
22
22
  getRequestPaymentData(data?: RequestPaymentModel | RequestSubscriptionModel): RequestPaymentModel | RequestSubscriptionModel;
23
+ /**
24
+ * 숫자 타입 필드들을 업데이트하는 헬퍼 메서드
25
+ * Comment by GOSOMI
26
+ * @date: 2024-01-01
27
+ */
28
+ private updateNumberFields;
29
+ /**
30
+ * 문자열 타입 필드들을 업데이트하는 헬퍼 메서드
31
+ * Comment by GOSOMI
32
+ * @date: 2024-01-01
33
+ */
34
+ private updateStringFields;
35
+ /**
36
+ * undefined 체크가 필요한 필드들을 업데이트하는 헬퍼 메서드
37
+ * Comment by GOSOMI
38
+ * @date: 2024-01-01
39
+ */
40
+ private updateUndefinedCheckFields;
23
41
  }
24
42
  export declare const WidgetStore: WidgetStoreManager;