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

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 (52) hide show
  1. package/.gitmodules +3 -0
  2. package/dist/index.mjs +1899 -2046
  3. package/dist/index.umd.js +17 -53
  4. package/dist/src/index.d.ts +1 -3
  5. package/dist/src/lib/analytics.d.ts +2 -2
  6. package/dist/src/lib/bootpay-widget.d.ts +1 -1
  7. package/dist/src/lib/bootpay.d.ts +2 -2
  8. package/dist/src/lib/event/hooks/widget/message.d.ts +1 -1
  9. package/dist/src/lib/event/payment.d.ts +37 -1
  10. package/dist/src/lib/event/polling.d.ts +1 -1
  11. package/dist/src/lib/event/user-token.d.ts +7 -1
  12. package/dist/src/lib/event/widget.d.ts +1 -1
  13. package/dist/src/lib/template/brandpay.d.ts +1 -1
  14. package/dist/src/lib/template/payment.d.ts +27 -3
  15. package/dist/src/lib/template/user-token.d.ts +8 -2
  16. package/dist/src/lib/template/widget.d.ts +1 -1
  17. package/dist/src/support/event-logger.d.ts +2 -2
  18. package/dist/src/support/hooks/widget-hooks.d.ts +1 -1
  19. package/dist/src/support/stores/widget-store.d.ts +20 -2
  20. package/dist/src/types/bootpay-interface.d.ts +5 -13
  21. package/dist/src/{support → vendor/components}/alfred-progress/index.d.ts +1 -1
  22. package/dist/src/{lib/template → vendor/components}/confirm-modal.d.ts +1 -1
  23. package/dist/src/{lib/template → vendor/components}/modal.d.ts +1 -1
  24. package/dist/src/{lib/event → vendor/components/slider}/hooks/slider/event.d.ts +0 -2
  25. package/dist/src/{lib/event/slider.d.ts → vendor/components/slider/index.d.ts} +1 -1
  26. package/dist/src/{lib → vendor/components/slider}/template/slider.d.ts +1 -2
  27. package/dist/src/{support/stores/bootpay-store.d.ts → vendor/mixins/bootpay-commerce.d.ts} +1 -1
  28. package/dist/src/vendor/mixins/ex-commerce.d.ts +13 -0
  29. package/dist/src/{support → vendor/mixins}/session.d.ts +2 -2
  30. package/dist/src/{support → vendor/mixins}/template-manager.d.ts +6 -0
  31. package/dist/src/vendor/types/slider-interface.d.ts +12 -0
  32. package/package.json +1 -1
  33. package/tsconfig.json +8 -0
  34. package/vite.config.ts +7 -1
  35. package/dist/src/bootpay-store.d.ts +0 -7
  36. package/dist/src/lib/bootpay-store.d.ts +0 -10
  37. package/dist/src/lib/event/hooks/ex/router.d.ts +0 -7
  38. package/dist/src/lib/event/hooks/ex/window.d.ts +0 -22
  39. package/dist/src/lib/event/store.d.ts +0 -7
  40. package/dist/src/lib/hooks/store.d.ts +0 -5
  41. package/dist/src/lib/template/store.d.ts +0 -35
  42. package/dist/src/support/ex-store.d.ts +0 -13
  43. package/dist/src/support/stores/ex-store.d.ts +0 -1
  44. package/dist/src/types/bootpay-ex-interface.d.ts +0 -53
  45. /package/dist/src/{support → vendor/mixins}/bootpay-manager.d.ts +0 -0
  46. /package/dist/src/{support → vendor/mixins}/event.d.ts +0 -0
  47. /package/dist/src/{support → vendor/mixins}/hook.d.ts +0 -0
  48. /package/dist/src/{support → vendor/mixins}/logger.d.ts +0 -0
  49. /package/dist/src/{support → vendor/mixins}/resource.d.ts +0 -0
  50. /package/dist/src/{support → vendor/mixins}/storage.d.ts +0 -0
  51. /package/dist/src/{support → vendor/mixins}/util.d.ts +0 -0
  52. /package/dist/src/{models → vendor/models}/const.d.ts +0 -0
@@ -1,12 +1,11 @@
1
1
  import { default as Bootpay, BootpayInterface } from './bootpay';
2
2
  import { default as BootpaySDK } from './bootpay-sdk';
3
3
  import { default as BootpayEnvironment } from './bootpay-environment';
4
- import { default as BootpayStore } from './bootpay-store';
5
4
  import { default as BootpayWidget, BootpayWidgetInterface } from './bootpay-widget';
6
5
  import { UserTokenTemplateManager } from './lib/template/user-token';
7
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
10
  export * from './types/bootpay-interface';
12
11
  export * from './types/bootpay-widget-interface';
@@ -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,5 +1,5 @@
1
- import { Resource } from '../support/resource';
2
- import { SessionStorageManager } from '../support/storage';
1
+ import { Resource } from '../vendor/mixins/resource';
2
+ import { SessionStorageManager } from '../vendor/mixins/storage';
3
3
  import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../types/bootpay-interface';
4
4
 
5
5
  export declare class BootpayAnalyticsManager extends Resource {
@@ -1,4 +1,4 @@
1
- import { BootpayManager } from '../support/bootpay-manager';
1
+ import { BootpayManager } from '../vendor/mixins/bootpay-manager';
2
2
  import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../types/bootpay-widget-interface';
3
3
  import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../types/bootpay-interface';
4
4
 
@@ -1,5 +1,5 @@
1
- import { BootpayManager } from '../support/bootpay-manager';
2
- import { SessionStorageManager } from '../support/storage';
1
+ import { BootpayManager } from '../vendor/mixins/bootpay-manager';
2
+ import { SessionStorageManager } from '../vendor/mixins/storage';
3
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
 
@@ -1,6 +1,6 @@
1
1
  import { ResponseBootpayWidgetTermsModel } from '../../../../types/bootpay-widget-interface';
2
2
  import { ExtraModel } from '../../../../types/bootpay-interface';
3
- import { BootpayWindowEvent } from '../../../../support/event';
3
+ import { BootpayWindowEvent } from '../../../../vendor/mixins/event';
4
4
 
5
5
  export declare const WidgetWindowMessage: {
6
6
  $eventPrefix: string;
@@ -1,4 +1,4 @@
1
- import { BootpayWindowEvent } from '../../support/event';
1
+ import { BootpayWindowEvent } from '../../vendor/mixins/event';
2
2
  import { BootpayPollingEvent } from './polling';
3
3
 
4
4
  interface PollingDataModel {
@@ -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();
@@ -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,4 +1,4 @@
1
- import { TemplateManager } from '../../support/template-manager';
1
+ import { TemplateManager } from '../../vendor/mixins/template-manager';
2
2
  import { WidgetStoreManager } from '../../support/stores/widget-store';
3
3
 
4
4
  declare class BrandpayTemplateManager extends TemplateManager {
@@ -1,5 +1,5 @@
1
- import { TemplateManager } from '../../support/template-manager';
2
- import { ConfirmModel, PopupDisplayResponseModel } from '../../types/bootpay-interface';
1
+ import { TemplateManager } from '../../vendor/mixins/template-manager';
2
+ import { ConfirmModel, PopupDisplayResponseModel, RequestPaymentUrlExtraModel } from '../../types/bootpay-interface';
3
3
 
4
4
  declare class TemplatePaymentManager extends TemplateManager {
5
5
  $template: string;
@@ -61,7 +61,7 @@ declare class TemplatePaymentManager extends TemplateManager {
61
61
  * Comment by GOSOMI
62
62
  * @date: 2023-04-13
63
63
  */
64
- startPaymentUrl(url: string, mode?: string): Promise<ConfirmModel>;
64
+ startPaymentUrl(url: string, mode?: string, extra?: RequestPaymentUrlExtraModel): Promise<ConfirmModel>;
65
65
  /**
66
66
  * 팝업창을 띄우기 위한 준비
67
67
  * Comment by GOSOMI
@@ -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,6 +1,6 @@
1
- import { TemplateManager } from '../../support/template-manager';
1
+ import { TemplateManager } from '../../vendor/mixins/template-manager';
2
2
  import { BootpayUserTokenEventManager } from '../event/user-token';
3
- import { SessionStorageManager } from '../../support/storage';
3
+ import { SessionStorageManager } from '../../vendor/mixins/storage';
4
4
  import { BiometricDataModel, RequestPaymentWalletModel } from '../../types/bootpay-sdk-interface';
5
5
  import { RequestBootpayBrandpayLaunchManager } from '../../types/bootpay-widget-interface';
6
6
 
@@ -16,6 +16,12 @@ export declare class UserTokenTemplateManager extends TemplateManager {
16
16
  $popupInstanceWatcher: number;
17
17
  deviceType: number;
18
18
  constructor();
19
+ /**
20
+ * 공통 템플릿 초기화 메서드
21
+ * Comment by GOSOMI
22
+ * @date: 2024-01-01
23
+ */
24
+ private initializeTemplate;
19
25
  /**
20
26
  * DeviceType을 지정한다
21
27
  * Comment by GOSOMI
@@ -1,4 +1,4 @@
1
- import { TemplateManager } from '../../support/template-manager';
1
+ import { TemplateManager } from '../../vendor/mixins/template-manager';
2
2
  import { WidgetStoreManager } from '../../support/stores/widget-store';
3
3
 
4
4
  export declare class TemplateWidgetManager extends TemplateManager {
@@ -1,5 +1,5 @@
1
- import { Resource } from './resource';
2
- import { SessionStorageManager } from './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;
@@ -1,4 +1,4 @@
1
- import { BootpayEventHook } from '../hook';
1
+ import { BootpayEventHook } from '../../vendor/mixins/hook';
2
2
 
3
3
  declare class BootpayWidgetHook extends BootpayEventHook {
4
4
  constructor(hooks?: {
@@ -1,8 +1,8 @@
1
1
  import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../types/bootpay-widget-interface';
2
2
  import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../types/bootpay-interface';
3
- import { BootpayStoreManager } from './bootpay-store';
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;
@@ -48,6 +48,11 @@ export interface RequestPaymentModel extends RequestPaymentBaseModel {
48
48
  export interface RequestPaymentUrlModel {
49
49
  application_id?: string
50
50
  url?: string
51
+ extra?: RequestPaymentUrlExtraModel
52
+ }
53
+
54
+ interface RequestPaymentUrlExtraModel {
55
+ popup_immediately?: boolean
51
56
  }
52
57
 
53
58
  export interface RequestSubscriptionModel extends RequestPaymentBaseModel {
@@ -296,17 +301,4 @@ export interface PopupDisplayResponseModel {
296
301
  export interface CommissionKeyModel {
297
302
  commerce?: string
298
303
  marketer?: string
299
- }
300
-
301
- export interface BootpaySliderOption {
302
- title?: string
303
- responseEvent: string
304
- sliders: BootpaySliderSelectOption[]
305
- }
306
-
307
- export interface BootpaySliderSelectOption {
308
- key: string
309
- name: string
310
- hook?: Function
311
- class?: string
312
304
  }
@@ -1,4 +1,4 @@
1
- import { TemplateManager } from '../template-manager';
1
+ import { TemplateManager } from '../../mixins/template-manager';
2
2
 
3
3
  declare class AlfredProgressManager extends TemplateManager {
4
4
  $alfredId: string;
@@ -1,4 +1,4 @@
1
- import { TemplateManager } from '../../support/template-manager';
1
+ import { TemplateManager } from '../mixins/template-manager';
2
2
 
3
3
  declare class ConfirmModalManager extends TemplateManager {
4
4
  $windowId: string;
@@ -1,4 +1,4 @@
1
- import { TemplateManager } from '../../support/template-manager';
1
+ import { TemplateManager } from '../mixins/template-manager';
2
2
 
3
3
  declare class ModalTemplateManager extends TemplateManager {
4
4
  $windowId: string;
@@ -1,5 +1,3 @@
1
- import { BootpaySliderOption } from '../../../../types/bootpay-interface';
2
-
3
1
  export declare const StoreSliderEvent: {
4
2
  showSliderSelect(sliderOptions: BootpaySliderOption): void;
5
3
  selectSliderSelect(sliderKey: string, eventName?: string): void;
@@ -1,4 +1,4 @@
1
- import { BootpayWindowEvent } from '../../support/event';
1
+ import { BootpayWindowEvent } from '../../mixins/event';
2
2
 
3
3
  declare class BootpaySliderEventManager extends BootpayWindowEvent {
4
4
  constructor();
@@ -1,5 +1,4 @@
1
- import { TemplateManager } from '../../support/template-manager';
2
- import { BootpaySliderOption, BootpaySliderSelectOption } from '../../types/bootpay-interface';
1
+ import { TemplateManager } from '../../../mixins/template-manager';
3
2
 
4
3
  declare class SliderTemplateManager extends TemplateManager {
5
4
  $windowId: string;
@@ -1,4 +1,4 @@
1
- export declare class BootpayStoreManager {
1
+ export declare class BootpayCommerceManager {
2
2
  data: any;
3
3
  hooks: {
4
4
  [key: string]: Function;
@@ -0,0 +1,13 @@
1
+ import { BootpayCommerceManager } from './bootpay-commerce';
2
+
3
+ export declare class ExCommerceManager extends BootpayCommerceManager {
4
+ data: any | undefined;
5
+ el: string | undefined;
6
+ path: string | undefined;
7
+ constructor();
8
+ setExData(el: string, data: RequestExModel): void;
9
+ encryptParameters(): string;
10
+ encryptKey(): string;
11
+ currentBootpayCommerceParameters(): string;
12
+ }
13
+ export declare const ExCommerce: ExCommerceManager;
@@ -1,6 +1,6 @@
1
1
  import { default as CryptoJS } from 'crypto-js';
2
2
 
3
- export declare class BootpaySessionStoreManager {
3
+ export declare class BootpaySessionCommerceManager {
4
4
  sessionStorage: any;
5
5
  constructor();
6
6
  get privateKey(): CryptoJS.lib.WordArray;
@@ -13,4 +13,4 @@ export declare class BootpaySessionStoreManager {
13
13
  setEncrypt(key: string, value: any): void;
14
14
  setItem(key: string, subKey: string, value: any): void;
15
15
  }
16
- export declare const BootpaySessionStorage: BootpaySessionStoreManager;
16
+ export declare const BootpaySessionStorage: BootpaySessionCommerceManager;
@@ -21,6 +21,12 @@ export declare class TemplateManager extends BootpayManager {
21
21
  bodyOpen(addClass?: string | undefined, openSkip?: boolean): void;
22
22
  bodyClose(): void;
23
23
  templateResize(el: string, resizeData: any): void;
24
+ /**
25
+ * 엘리먼트에 스타일을 적용하는 공통 메서드
26
+ * Comment by GOSOMI
27
+ * @date: 2024-01-01
28
+ */
29
+ protected applyStylesToElement(element: HTMLElement, styles: any): void;
24
30
  /**
25
31
  * render가 되었는지 체크한다
26
32
  * Comment by GOSOMI
@@ -0,0 +1,12 @@
1
+ interface BootpaySliderSelectOption {
2
+ key: string
3
+ name: string
4
+ hook?: Function
5
+ class?: string
6
+ }
7
+
8
+ interface BootpaySliderOption {
9
+ title?: string
10
+ responseEvent: string
11
+ sliders: BootpaySliderSelectOption[]
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootpay/client-js",
3
- "version": "5.2.0-beta.20",
3
+ "version": "5.2.0-beta.22",
4
4
  "main": "dist/index.mjs",
5
5
  "exports": {
6
6
  ".": {
package/tsconfig.json CHANGED
@@ -19,6 +19,14 @@
19
19
  "strict": false,
20
20
  "rootDir": "./",
21
21
  "baseUrl": "./src/",
22
+ "paths": {
23
+ "~/*": [
24
+ "./*"
25
+ ],
26
+ "~": [
27
+ "./"
28
+ ]
29
+ },
22
30
  "typeRoots": [
23
31
  "../node_modules/@types",
24
32
  "../src/types"
package/vite.config.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { defineConfig } from 'vite'
2
+ import { resolve } from 'path'
2
3
  import dts from 'vite-plugin-dts'
3
4
  import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
4
5
  import path from 'path'
@@ -20,6 +21,11 @@ export default defineConfig({
20
21
  root: './',
21
22
  publicDir: '_public',
22
23
  resolve: {
23
- extensions: ['.css', '.sass', '.scss', '.ts', '.js', '.d.ts']
24
+ extensions: ['.css', '.sass', '.scss', '.ts', '.js', '.d.ts'],
25
+ alias: {
26
+ '~': resolve(__dirname, 'src'),
27
+ // 또는 프로젝트 루트를 원한다면
28
+ // '~': resolve(__dirname, '.'),
29
+ }
24
30
  }
25
31
  })
@@ -1,7 +0,0 @@
1
- declare global {
2
- interface Window {
3
- BootpayStore: BootpayStoreInterface;
4
- }
5
- }
6
- declare const BootpayStore: BootpayStoreInterface;
7
- export default BootpayStore;
@@ -1,10 +0,0 @@
1
- import { BootpayManager } from '../support/bootpay-manager';
2
-
3
- export declare class BootpayStoreWindowManager extends BootpayManager {
4
- constructor();
5
- initialize(): void;
6
- render(el: string, data: RequestExModel): void;
7
- hideAlert(eventName?: string): void;
8
- sendEvent(eventName: string, data: any): void;
9
- }
10
- export declare const BootpayStoreWindow: BootpayStoreWindowManager;
@@ -1,7 +0,0 @@
1
- export declare const StoreWindowRouter: {
2
- parameterPrefix: string;
3
- updateParameters({ parameters, replace }: {
4
- parameters: any;
5
- replace: any;
6
- }): void;
7
- };
@@ -1,22 +0,0 @@
1
- export declare const StoreWindowEvent: {
2
- resize: (data: ExResizeData) => void;
3
- showAlert({ message, title, options }: {
4
- message: any;
5
- title: any;
6
- options: any;
7
- }): void;
8
- hideAlert(): void;
9
- showOverlayiFrame({ url, options }: {
10
- url: any;
11
- options: any;
12
- }): void;
13
- hideOverlayiFrame(): void;
14
- responseOverlayiFrame({ event, data }: {
15
- event: any;
16
- data: any;
17
- }): void;
18
- addFavicon({ url }: {
19
- url: any;
20
- }): void;
21
- hookOnReady(data?: any): void;
22
- };
@@ -1,7 +0,0 @@
1
- import { BootpayWindowEvent } from '../../support/event';
2
-
3
- declare class BootpayStoreEventManager extends BootpayWindowEvent {
4
- constructor();
5
- }
6
- export declare const BootpayStoreWindowEvent: BootpayStoreEventManager;
7
- export {};
@@ -1,5 +0,0 @@
1
- export declare const StoreHooks: {
2
- hooks: {};
3
- setHooks(hooks: any): void;
4
- callHook(name: string, data: any): void;
5
- };
@@ -1,35 +0,0 @@
1
- import { TemplateManager } from '../../support/template-manager';
2
- import { ExStoreManager } from '../../support/ex-store';
3
-
4
- declare class TemplateStoreManager extends TemplateManager {
5
- $template: string;
6
- $iFrameId: string;
7
- $iFrameContainerId: string;
8
- $exOverlayId: string;
9
- $exOverlayContainerId: string;
10
- $exStore: ExStoreManager;
11
- constructor();
12
- render(): void;
13
- templateRender(): void;
14
- resize(resizeData: any): void;
15
- postMessage(event: string, data: any): void;
16
- showAlert(message: string, title?: string, options?: {
17
- type: string;
18
- confirmText: string;
19
- cancelText: string;
20
- }): void;
21
- hideAlert(eventName?: string): void;
22
- showOverlayiFrameToUrl(url: string, options?: {
23
- width: string;
24
- height: string;
25
- }): void;
26
- hideOverlayiFrame(): void;
27
- alertTypeTemplate(options?: {
28
- type: string;
29
- confirmText: string;
30
- cancelText: string;
31
- }): string;
32
- shopUrl(): string;
33
- }
34
- export declare const TemplateStore: TemplateStoreManager;
35
- export {};
@@ -1,13 +0,0 @@
1
- import { BootpayStoreManager } from './stores/bootpay-store';
2
-
3
- export declare class ExStoreManager extends BootpayStoreManager {
4
- data: any | undefined;
5
- el: string | undefined;
6
- path: string | undefined;
7
- constructor();
8
- setExData(el: string, data: RequestExModel): void;
9
- encryptParameters(): string;
10
- encryptKey(): string;
11
- currentBootpayStoreParameters(): string;
12
- }
13
- export declare const ExStore: ExStoreManager;
@@ -1 +0,0 @@
1
- export declare const ExStore: ExStoreModel;
@@ -1,53 +0,0 @@
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
- }
File without changes
File without changes
File without changes