@bootpay/client-js 5.2.0-beta.1 → 5.2.0-beta.11
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 +1 -0
- package/dist/{index.es.js → index.js} +3851 -2706
- package/dist/index.umd.cjs +137 -0
- package/dist/src/bootpay-environment.d.ts +2 -1
- package/dist/src/bootpay-es5.d.ts +2 -1
- package/dist/src/bootpay-sdk.d.ts +3 -2
- package/dist/src/bootpay-widget.d.ts +3 -2
- package/dist/src/bootpay.d.ts +5 -4
- package/dist/src/index.d.ts +9 -12
- package/dist/src/lib/analytics.d.ts +4 -3
- package/dist/src/lib/bootpay-store.d.ts +2 -1
- package/dist/src/lib/bootpay-widget.d.ts +4 -3
- package/dist/src/lib/bootpay.d.ts +5 -4
- package/dist/src/lib/event/hooks/widget/message.d.ts +10 -5
- package/dist/src/lib/event/payment.d.ts +3 -2
- package/dist/src/lib/event/polling.d.ts +3 -2
- package/dist/src/lib/event/store.d.ts +2 -1
- package/dist/src/lib/event/user-token.d.ts +2 -1
- package/dist/src/lib/event/widget.d.ts +2 -1
- package/dist/src/lib/locale/message.d.ts +1 -1
- package/dist/src/lib/template/{oopay.d.ts → brandpay.d.ts} +9 -5
- package/dist/src/lib/template/confirm-modal.d.ts +3 -2
- package/dist/src/lib/template/modal.d.ts +3 -2
- package/dist/src/lib/template/payment.d.ts +4 -3
- package/dist/src/lib/template/store.d.ts +3 -2
- package/dist/src/lib/template/user-token.d.ts +5 -4
- package/dist/src/lib/template/widget.d.ts +3 -2
- package/dist/src/support/alfred-progress/index.d.ts +2 -1
- package/dist/src/support/event-logger.d.ts +3 -2
- package/dist/src/support/event.d.ts +2 -1
- package/dist/src/support/ex-store.d.ts +3 -2
- package/dist/src/support/resource.d.ts +2 -1
- package/dist/src/support/storage.d.ts +2 -1
- package/dist/src/support/stores/widget-store.d.ts +4 -3
- package/dist/src/support/template-manager.d.ts +9 -2
- package/dist/src/support/widget-store.d.ts +3 -2
- package/dist/src/types/bootpay-ex-interface.d.ts +53 -0
- package/dist/src/types/bootpay-interface.d.ts +298 -0
- package/dist/src/types/bootpay-sdk-interface.d.ts +16 -0
- package/dist/src/types/bootpay-widget-interface.d.ts +106 -0
- package/package.json +15 -4
- package/tsconfig.json +11 -2
- package/vite.config.ts +8 -9
- package/dist/index.umd.js +0 -137
- package/dist/package.json.d.ts +0 -56
- package/dist/src/bootpay-wallet.d.ts +0 -15
- package/dist/src/lib/bootpay-wallet.d.ts +0 -7
- package/dist/src/lib/event/hooks/wallet/message.d.ts +0 -24
- package/dist/src/lib/event/wallet.d.ts +0 -6
- package/dist/src/lib/template/wallet.d.ts +0 -15
- package/dist/src/support/stores/wallet-store.d.ts +0 -11
- package/dist/vite.config.d.ts +0 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UserTokenTemplateManager } from
|
|
2
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from
|
|
1
|
+
import { UserTokenTemplateManager } from '../node_modules/lib/template/user-token';
|
|
2
|
+
import { BiometricDataModel, RequestPaymentWalletModel } from '../node_modules/types/bootpay-sdk-interface';
|
|
3
|
+
|
|
3
4
|
interface BootpaySdkInterface {
|
|
4
5
|
$templateUserToken: UserTokenTemplateManager;
|
|
5
6
|
errorHandler(data: any): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '
|
|
2
|
-
import { RequestPaymentModel, RequestSubscriptionModel } from '
|
|
1
|
+
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../node_modules/types/bootpay-widget-interface';
|
|
2
|
+
import { RequestPaymentModel, RequestSubscriptionModel } from '../node_modules/types/bootpay-interface';
|
|
3
|
+
|
|
3
4
|
export interface BootpayWidgetInterface {
|
|
4
5
|
render(el: string, data: RequestBootpayWidgetModel): void;
|
|
5
6
|
rerender(): void;
|
package/dist/src/bootpay.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from
|
|
2
|
-
import { EnvironmentInterface } from
|
|
3
|
-
import { BootpayRequestPaymentManager } from
|
|
4
|
-
import { BootpayAnalyticsManager } from '
|
|
1
|
+
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '../node_modules/types/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';
|
|
5
|
+
|
|
5
6
|
export interface BootpayInterface {
|
|
6
7
|
$payment: BootpayRequestPaymentManager;
|
|
7
8
|
$analytics: BootpayAnalyticsManager;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Bootpay,
|
|
2
|
-
import BootpaySDK from '
|
|
3
|
-
import BootpayEnvironment from
|
|
4
|
-
import BootpayStore from '
|
|
5
|
-
import BootpayWidget,
|
|
6
|
-
import
|
|
7
|
-
|
|
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/types/bootpay-sdk-interface';
|
|
8
|
+
|
|
9
|
+
export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore };
|
|
8
10
|
export default Bootpay;
|
|
9
|
-
import { UserTokenTemplateManager } from './lib/template/user-token';
|
|
10
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from './models/bootpay-sdk-interface';
|
|
11
11
|
interface BootpaySdkInterface {
|
|
12
12
|
$templateUserToken: UserTokenTemplateManager;
|
|
13
13
|
errorHandler(data: any): any;
|
|
@@ -34,6 +34,3 @@ declare global {
|
|
|
34
34
|
CustomEvent: any;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
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
|
-
import { Resource } from '
|
|
2
|
-
import { SessionStorageManager } from '
|
|
3
|
-
import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '
|
|
1
|
+
import { Resource } from '../../support/resource';
|
|
2
|
+
import { SessionStorageManager } from '../../support/storage';
|
|
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,6 +1,7 @@
|
|
|
1
|
-
import { BootpayManager } from '
|
|
2
|
-
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '
|
|
3
|
-
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '
|
|
1
|
+
import { BootpayManager } from '../../support/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
|
export declare class BootpayWidgetWindowManager extends BootpayManager {
|
|
5
6
|
message: any;
|
|
6
7
|
constructor();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BootpayManager } from
|
|
2
|
-
import { SessionStorageManager } from
|
|
3
|
-
import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from
|
|
4
|
-
import { EventLoggerManager } from '
|
|
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
|
+
import { EventLoggerManager } from '../../support/event-logger';
|
|
5
|
+
|
|
5
6
|
export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
6
7
|
$session: SessionStorageManager;
|
|
7
8
|
$logger: any;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { ResponseBootpayWidgetTermsModel } from '
|
|
2
|
-
import { ExtraModel } from '
|
|
3
|
-
import { BootpayWindowEvent } from '
|
|
1
|
+
import { ResponseBootpayWidgetTermsModel } from '../../../../../../../../types/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel } from '../../../../../../../../types/bootpay-interface';
|
|
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
|
-
|
|
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
|
-
|
|
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,9 @@ 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;
|
|
37
42
|
};
|
|
38
43
|
export interface SelectPaymentEventData {
|
|
39
44
|
pg?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BootpayWindowEvent } from
|
|
2
|
-
import { BootpayPollingEvent } from
|
|
1
|
+
import { BootpayWindowEvent } from '../../../../support/event';
|
|
2
|
+
import { BootpayPollingEvent } from '../../../node_modules/polling';
|
|
3
|
+
|
|
3
4
|
interface PollingDataModel {
|
|
4
5
|
applicationId: string | null;
|
|
5
6
|
receiptId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Resource } from
|
|
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(
|
|
10
|
+
pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import('../../../node_modules/axios').AxiosResponse<any, any>>;
|
|
10
11
|
}
|
|
11
12
|
export declare const BootpayPolling: BootpayPollingEvent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { WidgetStoreModel } from '
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
+
import { WidgetStoreModel } from '../../../../support/widget-store';
|
|
3
|
+
|
|
4
|
+
declare class BrandpayTemplateManager extends TemplateManager {
|
|
5
|
+
$brandpayWindowId: string;
|
|
5
6
|
$iFrameId: string;
|
|
6
7
|
$template: string;
|
|
7
8
|
$windowId: string;
|
|
@@ -13,9 +14,12 @@ declare class OOpayTemplateManager extends TemplateManager {
|
|
|
13
14
|
addWallet(url: string): void;
|
|
14
15
|
removeWallet(walletId: string): void;
|
|
15
16
|
showCardInterestInformation(data: any): void;
|
|
17
|
+
brandpayPreference(data: {
|
|
18
|
+
popup: boolean;
|
|
19
|
+
}): void;
|
|
16
20
|
destroy(): void;
|
|
17
21
|
resize(resizeData: any): void;
|
|
18
22
|
postMessage(event: string, data?: any): void;
|
|
19
23
|
}
|
|
20
|
-
export declare const
|
|
24
|
+
export declare const BrandpayTemplate: BrandpayTemplateManager;
|
|
21
25
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
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
|
-
import { TemplateManager } from '
|
|
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
|
|
2
|
-
import { ConfirmModel, PopupDisplayResponseModel } from
|
|
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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { ExStoreManager } from '
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
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,8 @@
|
|
|
1
|
-
import { TemplateManager } from
|
|
2
|
-
import { BootpayUserTokenEventManager } from
|
|
3
|
-
import { SessionStorageManager } from
|
|
4
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from
|
|
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
|
+
|
|
5
6
|
export declare class UserTokenTemplateManager extends TemplateManager {
|
|
6
7
|
$session: SessionStorageManager;
|
|
7
8
|
$template: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { WidgetStoreModel } from '
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
+
import { WidgetStoreModel } from '../../../../support/widget-store';
|
|
3
|
+
|
|
3
4
|
declare class TemplateWidgetManager extends TemplateManager {
|
|
4
5
|
$iFrameId: string;
|
|
5
6
|
$template: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Resource } from '
|
|
2
|
-
import { SessionStorageManager } from '
|
|
1
|
+
import { Resource } from '../../node_modules/resource';
|
|
2
|
+
import { SessionStorageManager } from '../../node_modules/storage';
|
|
3
|
+
|
|
3
4
|
interface EventDataModel {
|
|
4
5
|
application_id?: string;
|
|
5
6
|
step: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BootpayStoreManager } from '
|
|
1
|
+
import { BootpayStoreManager } from '../../node_modules/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;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '
|
|
2
|
-
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '
|
|
3
|
-
import { BootpayStoreManager } from '
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../../../types/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../../../types/bootpay-interface';
|
|
3
|
+
import { BootpayStoreManager } from '../../../node_modules/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
|
|
1
|
+
import { BootpayManager } from '../../node_modules/bootpay-manager';
|
|
2
|
+
|
|
2
3
|
export declare class TemplateManager extends BootpayManager {
|
|
3
4
|
$windowId: string;
|
|
4
5
|
$template: string;
|
|
5
6
|
$iFrameId: string;
|
|
6
|
-
|
|
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
|
/**
|
|
@@ -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
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '
|
|
2
|
-
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '../../types/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../../types/bootpay-interface';
|
|
3
|
+
|
|
3
4
|
export interface WidgetStoreModel {
|
|
4
5
|
el: string | undefined;
|
|
5
6
|
data?: RequestBootpayWidgetModel;
|
|
@@ -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
|
+
}
|