react-native-bootpay-api 13.13.41 → 13.13.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Bootpay.js +4 -4
- package/lib/BootpayCommerce.js +14 -0
- package/lib/BootpayWidget.js +103 -0
- package/lib/CommerceTypes.js +1 -0
- package/lib/UserInfo.js +1 -1
- package/lib/WidgetTypes.js +1 -0
- package/lib/bootpayAnalytics.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +40 -41
- package/react-native.config.js +1 -59
- package/src/Bootpay.tsx +18 -8
- package/src/BootpayCommerce.tsx +427 -0
- package/src/BootpayTypes.ts +19 -7
- package/src/BootpayWidget.tsx +1093 -0
- package/src/CommerceTypes.ts +123 -0
- package/src/UserInfo.ts +4 -1
- package/src/WidgetTypes.ts +110 -0
- package/src/__tests__/index.test.d.ts +1 -1
- package/src/__tests__/index.test.js +1 -1
- package/src/index.tsx +60 -2
- package/lib/Bootpay.d.ts +0 -45
- package/lib/Bootpay.d.ts.map +0 -1
- package/lib/BootpayTypes.d.ts +0 -106
- package/lib/BootpayTypes.d.ts.map +0 -1
- package/lib/Loader.d.ts +0 -1
- package/lib/Loader.d.ts.map +0 -1
- package/lib/Loader.js +0 -0
- package/lib/UserInfo.d.ts +0 -14
- package/lib/UserInfo.d.ts.map +0 -1
- package/lib/bootpayAnalytics.d.ts +0 -12
- package/lib/bootpayAnalytics.d.ts.map +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.d.ts.map +0 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { ViewProps } from 'react-native';
|
|
2
|
+
|
|
3
|
+
export interface CommerceEventData {
|
|
4
|
+
event: string;
|
|
5
|
+
receipt_id?: string;
|
|
6
|
+
order_id?: string;
|
|
7
|
+
request_id?: string;
|
|
8
|
+
price?: number;
|
|
9
|
+
message?: string;
|
|
10
|
+
code?: number | string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface BootpayCommerceProps extends ViewProps {
|
|
16
|
+
ref?: React.RefObject<unknown>;
|
|
17
|
+
onCancel?: (data: CommerceEventData) => void;
|
|
18
|
+
onError?: (data: CommerceEventData) => void;
|
|
19
|
+
onDone?: (data: CommerceEventData) => void;
|
|
20
|
+
onIssued?: (data: CommerceEventData) => void; // 가상계좌 발급 완료 콜백 (iOS SDK와 동일)
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class CommerceUser {
|
|
25
|
+
membershipType?: string = 'guest'; // 'guest' | 'member'
|
|
26
|
+
userId?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
phone?: string;
|
|
29
|
+
email?: string;
|
|
30
|
+
|
|
31
|
+
constructor() {}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class CommerceProduct {
|
|
35
|
+
productId: string = '';
|
|
36
|
+
duration: number = -1; // -1: 무기한
|
|
37
|
+
quantity: number = 1;
|
|
38
|
+
|
|
39
|
+
constructor() {}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class CommerceExtra {
|
|
43
|
+
separatelyConfirmed?: boolean = false;
|
|
44
|
+
createOrderImmediately?: boolean = true;
|
|
45
|
+
|
|
46
|
+
constructor() {}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class CommercePayload {
|
|
50
|
+
clientKey: string = '';
|
|
51
|
+
name?: string;
|
|
52
|
+
memo?: string;
|
|
53
|
+
user?: CommerceUser;
|
|
54
|
+
price: number = 0;
|
|
55
|
+
redirectUrl?: string;
|
|
56
|
+
usageApiUrl?: string;
|
|
57
|
+
useAutoLogin?: boolean = false;
|
|
58
|
+
requestId?: string;
|
|
59
|
+
useNotification?: boolean = false;
|
|
60
|
+
products?: CommerceProduct[];
|
|
61
|
+
metadata?: Record<string, string>;
|
|
62
|
+
metadataAny?: Record<string, unknown>;
|
|
63
|
+
extra?: CommerceExtra;
|
|
64
|
+
|
|
65
|
+
constructor() {}
|
|
66
|
+
|
|
67
|
+
toJSON(): Record<string, unknown> {
|
|
68
|
+
const json: Record<string, unknown> = {
|
|
69
|
+
client_key: this.clientKey,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// price > 0 일 때만 포함 (iOS SDK와 동일)
|
|
73
|
+
if (this.price > 0) json.price = this.price;
|
|
74
|
+
|
|
75
|
+
if (this.name) json.name = this.name;
|
|
76
|
+
if (this.memo) json.memo = this.memo;
|
|
77
|
+
if (this.redirectUrl) json.redirect_url = this.redirectUrl;
|
|
78
|
+
if (this.usageApiUrl) json.usage_api_url = this.usageApiUrl;
|
|
79
|
+
json.use_auto_login = this.useAutoLogin ?? false;
|
|
80
|
+
if (this.requestId) json.request_id = this.requestId;
|
|
81
|
+
json.use_notification = this.useNotification ?? false;
|
|
82
|
+
|
|
83
|
+
if (this.user) {
|
|
84
|
+
const userJson: Record<string, unknown> = {
|
|
85
|
+
membership_type: this.user.membershipType ?? 'guest',
|
|
86
|
+
};
|
|
87
|
+
if (this.user.userId) userJson.user_id = this.user.userId;
|
|
88
|
+
if (this.user.name) userJson.name = this.user.name;
|
|
89
|
+
if (this.user.phone) userJson.phone = this.user.phone;
|
|
90
|
+
if (this.user.email) userJson.email = this.user.email;
|
|
91
|
+
json.user = userJson;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (this.products && this.products.length > 0) {
|
|
95
|
+
json.products = this.products.map((p) => ({
|
|
96
|
+
product_id: p.productId,
|
|
97
|
+
duration: p.duration,
|
|
98
|
+
quantity: p.quantity,
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// metadataAny 우선, 없으면 metadata 사용 (iOS SDK와 동일)
|
|
103
|
+
if (this.metadataAny && Object.keys(this.metadataAny).length > 0) {
|
|
104
|
+
json.metadata = this.metadataAny;
|
|
105
|
+
} else if (this.metadata && Object.keys(this.metadata).length > 0) {
|
|
106
|
+
json.metadata = this.metadata;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (this.extra) {
|
|
110
|
+
const extraJson: Record<string, unknown> = {
|
|
111
|
+
separately_confirmed: this.extra.separatelyConfirmed ?? false,
|
|
112
|
+
create_order_immediately: this.extra.createOrderImmediately ?? true,
|
|
113
|
+
};
|
|
114
|
+
json.extra = extraJson;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
toJSONString(): string {
|
|
121
|
+
return JSON.stringify(this.toJSON());
|
|
122
|
+
}
|
|
123
|
+
}
|
package/src/UserInfo.ts
CHANGED
|
@@ -13,7 +13,10 @@ export default class UserInfo {
|
|
|
13
13
|
console.error(`Error setting Bootpay info for key ${key}:`, error);
|
|
14
14
|
|
|
15
15
|
// 특정 에러 코드에 따라 처리 (iOS와 Android 모두 고려)
|
|
16
|
-
if (
|
|
16
|
+
if (
|
|
17
|
+
error instanceof Error &&
|
|
18
|
+
error.message.includes('null is not an object')
|
|
19
|
+
) {
|
|
17
20
|
console.warn('Keychain configuration or capability might be missing.');
|
|
18
21
|
}
|
|
19
22
|
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widget 관련 타입 정의
|
|
3
|
+
* Flutter의 widget_data.dart를 참고하여 구현
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface WidgetTerm {
|
|
7
|
+
term_id?: string;
|
|
8
|
+
pk?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
agree?: boolean;
|
|
11
|
+
term_type?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface WidgetExtra {
|
|
15
|
+
direct_card_company?: string;
|
|
16
|
+
direct_card_quota?: number;
|
|
17
|
+
card_quota?: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface WidgetData {
|
|
21
|
+
pg?: string;
|
|
22
|
+
method?: string;
|
|
23
|
+
wallet_id?: string;
|
|
24
|
+
select_terms?: WidgetTerm[];
|
|
25
|
+
currency?: string; // KRW, USD
|
|
26
|
+
term_passed?: boolean;
|
|
27
|
+
completed?: boolean;
|
|
28
|
+
extra?: WidgetExtra;
|
|
29
|
+
// 네이티브 SDK와 호환을 위한 추가 필드
|
|
30
|
+
method_origin_symbol?: string;
|
|
31
|
+
method_symbol?: string;
|
|
32
|
+
easy_pay?: string;
|
|
33
|
+
card_quota?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type WidgetReadyCallback = () => void;
|
|
37
|
+
export type WidgetResizeCallback = (height: number) => void;
|
|
38
|
+
export type WidgetChangePaymentCallback = (data: WidgetData | null) => void;
|
|
39
|
+
export type WidgetChangeTermsCallback = (data: WidgetData | null) => void;
|
|
40
|
+
|
|
41
|
+
export interface BootpayWidgetProps {
|
|
42
|
+
// 앱 ID
|
|
43
|
+
ios_application_id?: string;
|
|
44
|
+
android_application_id?: string;
|
|
45
|
+
|
|
46
|
+
// Widget 전용 콜백
|
|
47
|
+
onWidgetReady?: WidgetReadyCallback;
|
|
48
|
+
onWidgetResize?: WidgetResizeCallback;
|
|
49
|
+
onWidgetChangePayment?: WidgetChangePaymentCallback;
|
|
50
|
+
onWidgetChangeTerms?: WidgetChangeTermsCallback;
|
|
51
|
+
|
|
52
|
+
// 결제 콜백
|
|
53
|
+
onCancel?: (data: unknown) => void;
|
|
54
|
+
onError?: (data: unknown) => void;
|
|
55
|
+
onIssued?: (data: unknown) => void;
|
|
56
|
+
onConfirm?: (data: unknown) => boolean;
|
|
57
|
+
onDone?: (data: unknown) => void;
|
|
58
|
+
onClose?: () => void;
|
|
59
|
+
|
|
60
|
+
// 스타일
|
|
61
|
+
height?: number;
|
|
62
|
+
style?: object;
|
|
63
|
+
widgetTop?: number; // Widget 위치 (위젯 모드에서 position: absolute의 top 값)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class WidgetPayload {
|
|
67
|
+
widget_key?: string;
|
|
68
|
+
widget_sandbox?: boolean;
|
|
69
|
+
widget_use_terms?: boolean;
|
|
70
|
+
|
|
71
|
+
// 기본 Payload 필드
|
|
72
|
+
application_id?: string;
|
|
73
|
+
pg?: string;
|
|
74
|
+
method?: string;
|
|
75
|
+
methods?: string[];
|
|
76
|
+
order_name?: string;
|
|
77
|
+
price?: number;
|
|
78
|
+
tax_free?: number;
|
|
79
|
+
order_id?: string;
|
|
80
|
+
subscription_id?: string;
|
|
81
|
+
metadata?: Record<string, unknown>;
|
|
82
|
+
extra?: WidgetPayloadExtra;
|
|
83
|
+
|
|
84
|
+
constructor() {
|
|
85
|
+
this.widget_sandbox = false;
|
|
86
|
+
this.widget_use_terms = false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export class WidgetPayloadExtra {
|
|
91
|
+
app_scheme?: string;
|
|
92
|
+
card_quota?: string;
|
|
93
|
+
show_close_button?: boolean;
|
|
94
|
+
separately_confirmed?: boolean;
|
|
95
|
+
display_success_result?: boolean;
|
|
96
|
+
display_error_result?: boolean;
|
|
97
|
+
locale?: string;
|
|
98
|
+
offer_period?: string;
|
|
99
|
+
open_type?: string;
|
|
100
|
+
use_bootpay_inapp_sdk?: boolean; // native app에서 redirect를 완성도있게 지원하기 위한 옵션
|
|
101
|
+
redirect_url?: string;
|
|
102
|
+
|
|
103
|
+
constructor() {
|
|
104
|
+
this.separately_confirmed = true;
|
|
105
|
+
this.display_success_result = false;
|
|
106
|
+
this.display_error_result = false;
|
|
107
|
+
this.use_bootpay_inapp_sdk = true;
|
|
108
|
+
this.redirect_url = 'https://api.bootpay.co.kr/v2/callback';
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
//# sourceMappingURL=index.test.d.ts.map
|
|
1
|
+
//# sourceMappingURL=index.test.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
it.todo('write a test');
|
package/src/index.tsx
CHANGED
|
@@ -1,4 +1,62 @@
|
|
|
1
1
|
import { Bootpay } from './Bootpay';
|
|
2
|
-
import {
|
|
2
|
+
import { BootpayWidget } from './BootpayWidget';
|
|
3
|
+
import { BootpayCommerce } from './BootpayCommerce';
|
|
4
|
+
import {
|
|
5
|
+
Payload,
|
|
6
|
+
Extra,
|
|
7
|
+
Item,
|
|
8
|
+
User,
|
|
9
|
+
BootpayEventData,
|
|
10
|
+
BootpayTypesProps,
|
|
11
|
+
} from './BootpayTypes';
|
|
12
|
+
import {
|
|
13
|
+
WidgetData,
|
|
14
|
+
WidgetTerm,
|
|
15
|
+
WidgetExtra,
|
|
16
|
+
WidgetPayload,
|
|
17
|
+
WidgetPayloadExtra,
|
|
18
|
+
BootpayWidgetProps,
|
|
19
|
+
WidgetReadyCallback,
|
|
20
|
+
WidgetResizeCallback,
|
|
21
|
+
WidgetChangePaymentCallback,
|
|
22
|
+
WidgetChangeTermsCallback,
|
|
23
|
+
} from './WidgetTypes';
|
|
24
|
+
import {
|
|
25
|
+
CommercePayload,
|
|
26
|
+
CommerceUser,
|
|
27
|
+
CommerceProduct,
|
|
28
|
+
CommerceExtra,
|
|
29
|
+
CommerceEventData,
|
|
30
|
+
BootpayCommerceProps,
|
|
31
|
+
} from './CommerceTypes';
|
|
3
32
|
|
|
4
|
-
export {
|
|
33
|
+
export {
|
|
34
|
+
// 기존 결제 컴포넌트
|
|
35
|
+
Bootpay,
|
|
36
|
+
Payload,
|
|
37
|
+
Extra,
|
|
38
|
+
Item,
|
|
39
|
+
User,
|
|
40
|
+
BootpayEventData,
|
|
41
|
+
BootpayTypesProps,
|
|
42
|
+
// Widget 컴포넌트
|
|
43
|
+
BootpayWidget,
|
|
44
|
+
WidgetData,
|
|
45
|
+
WidgetTerm,
|
|
46
|
+
WidgetExtra,
|
|
47
|
+
WidgetPayload,
|
|
48
|
+
WidgetPayloadExtra,
|
|
49
|
+
BootpayWidgetProps,
|
|
50
|
+
WidgetReadyCallback,
|
|
51
|
+
WidgetResizeCallback,
|
|
52
|
+
WidgetChangePaymentCallback,
|
|
53
|
+
WidgetChangeTermsCallback,
|
|
54
|
+
// Commerce 컴포넌트
|
|
55
|
+
BootpayCommerce,
|
|
56
|
+
CommercePayload,
|
|
57
|
+
CommerceUser,
|
|
58
|
+
CommerceProduct,
|
|
59
|
+
CommerceExtra,
|
|
60
|
+
CommerceEventData,
|
|
61
|
+
BootpayCommerceProps,
|
|
62
|
+
};
|
package/lib/Bootpay.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import WebView, { WebViewMessageEvent } from 'react-native-webview-bootpay';
|
|
3
|
-
import { BootpayTypesProps, Payload, Extra, Item, User } from './BootpayTypes';
|
|
4
|
-
export declare class Bootpay extends Component<BootpayTypesProps> {
|
|
5
|
-
webView: React.RefObject<WebView>;
|
|
6
|
-
constructor(props: BootpayTypesProps);
|
|
7
|
-
payload?: Payload;
|
|
8
|
-
state: {
|
|
9
|
-
visibility: boolean;
|
|
10
|
-
script: string;
|
|
11
|
-
firstLoad: boolean;
|
|
12
|
-
showCloseButton: boolean;
|
|
13
|
-
isShowProgress: boolean;
|
|
14
|
-
};
|
|
15
|
-
_VERSION: string;
|
|
16
|
-
_DEBUG: boolean;
|
|
17
|
-
dismiss: () => void;
|
|
18
|
-
showProgressBar: (isShow: boolean) => void;
|
|
19
|
-
closeDismiss: () => void;
|
|
20
|
-
onMessage: (event: WebViewMessageEvent) => Promise<void>;
|
|
21
|
-
onShouldStartLoadWithRequest: (_: string) => boolean;
|
|
22
|
-
getSDKVersion: () => string;
|
|
23
|
-
getEnvironmentMode: () => "" | "Bootpay.setEnvironmentMode('development');";
|
|
24
|
-
getBootpayPlatform: () => "" | "Bootpay.setDevice('IOS');" | "Bootpay.setDevice('ANDROID');";
|
|
25
|
-
transactionConfirm: () => void;
|
|
26
|
-
removePaymentWindow: () => void;
|
|
27
|
-
callJavaScript: (script: string) => void;
|
|
28
|
-
getAnalyticsData: () => Promise<string>;
|
|
29
|
-
confirm: () => string;
|
|
30
|
-
done: () => string;
|
|
31
|
-
issued: () => string;
|
|
32
|
-
error: () => string;
|
|
33
|
-
cancel: () => string;
|
|
34
|
-
close: () => string;
|
|
35
|
-
componentWillUnmount(): Promise<void>;
|
|
36
|
-
componentDidMount(): void;
|
|
37
|
-
render(): React.JSX.Element;
|
|
38
|
-
requestPayment: (payload: Payload, items: [Item], user: User, extra: Extra) => Promise<void>;
|
|
39
|
-
requestSubscription: (payload: Payload, items: [Item], user: User, extra: Extra) => Promise<void>;
|
|
40
|
-
requestAuthentication: (payload: Payload, items: [Item], user: User, extra: Extra) => Promise<void>;
|
|
41
|
-
bootpayRequest: (payload: Payload, items: [Item], user: User, extra: Extra, requestMethod: string) => Promise<void>;
|
|
42
|
-
getMountJavascript: () => Promise<string>;
|
|
43
|
-
generateScript: (payload: Payload, requestMethod: string) => string;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=Bootpay.d.ts.map
|
package/lib/Bootpay.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Bootpay.d.ts","sourceRoot":"","sources":["../src/Bootpay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,OAAO,EAAE,EAAC,mBAAmB,EAAC,MAAO,8BAA8B,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAQ/E,qBAAa,OAAQ,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAGrD,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;gBAEtB,KAAK,EAAE,iBAAiB;IAMpC,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,KAAK;;;;;;MAMJ;IAED,QAAQ,SAAU;IAClB,MAAM,UAAS;IAGf,OAAO,aAMN;IAGD,eAAe,WAAY,OAAO,UAMjC;IAGD,YAAY,aAGX;IAGD,SAAS,gDA6GR;IAED,4BAA4B,MAAQ,MAAM,aAEzC;IAED,aAAa,eAUZ;IAED,kBAAkB,0DAMjB;IAED,kBAAkB,2EAQjB;IAWD,kBAAkB,aAajB;IAED,mBAAmB,aAKlB;IAED,cAAc,WAAY,MAAM,UAM/B;IAED,gBAAgB,wBASf;IAED,OAAO,eAEN;IAED,IAAI,eAEH;IAED,MAAM,eAEL;IAED,KAAK,eAEJ;IAED,MAAM,eAEL;IAED,KAAK,eAEJ;IAIK,oBAAoB;IAY1B,iBAAiB;IAIjB,MAAM;IAyDN,cAAc,YAAmB,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,KAAK,mBAGhF;IAED,mBAAmB,YAAmB,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,KAAK,mBAErF;IAED,qBAAqB,YAAmB,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,KAAK,mBAEvF;IAED,cAAc,YAAmB,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,KAAK,iBAAiB,MAAM,mBA4BvG;IAGD,kBAAkB,wBAQjB;IAGD,cAAc,YAAY,OAAO,iBAAiB,MAAM,YAavD;CAEJ"}
|
package/lib/BootpayTypes.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { ViewProps } from 'react-native';
|
|
2
|
-
export interface BootpayTypesProps extends ViewProps {
|
|
3
|
-
ref?: any;
|
|
4
|
-
ios_application_id?: string;
|
|
5
|
-
android_application_id?: string;
|
|
6
|
-
onCancel?: (data: Object) => void;
|
|
7
|
-
onError?: (data: Object) => void;
|
|
8
|
-
onIssued?: (data: Object) => void;
|
|
9
|
-
onConfirm?: (data: Object) => boolean;
|
|
10
|
-
onDone?: (data: Object) => void;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
}
|
|
13
|
-
export interface LoadingTypesProps extends ViewProps {
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class User {
|
|
17
|
-
constructor();
|
|
18
|
-
id?: string;
|
|
19
|
-
username?: string;
|
|
20
|
-
email?: string;
|
|
21
|
-
gender?: number;
|
|
22
|
-
birth?: string;
|
|
23
|
-
phone?: string;
|
|
24
|
-
area?: string;
|
|
25
|
-
addr?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare class Item {
|
|
28
|
-
constructor();
|
|
29
|
-
name?: string;
|
|
30
|
-
qty?: number;
|
|
31
|
-
id?: string;
|
|
32
|
-
price?: number;
|
|
33
|
-
cat1?: string;
|
|
34
|
-
cat2?: string;
|
|
35
|
-
cat3?: string;
|
|
36
|
-
}
|
|
37
|
-
export declare class StatItem {
|
|
38
|
-
constructor();
|
|
39
|
-
item_name?: string;
|
|
40
|
-
item_img?: string;
|
|
41
|
-
unique?: string;
|
|
42
|
-
price?: number;
|
|
43
|
-
cat1?: string;
|
|
44
|
-
cat2?: string;
|
|
45
|
-
cat3?: string;
|
|
46
|
-
}
|
|
47
|
-
export declare class Onestore {
|
|
48
|
-
constructor();
|
|
49
|
-
ad_id?: string;
|
|
50
|
-
sim_operator?: string;
|
|
51
|
-
installer_package_name?: string;
|
|
52
|
-
}
|
|
53
|
-
export declare class Extra {
|
|
54
|
-
constructor();
|
|
55
|
-
card_quota?: string;
|
|
56
|
-
seller_name?: string;
|
|
57
|
-
delivery_day?: number;
|
|
58
|
-
locale?: string;
|
|
59
|
-
offer_period?: string;
|
|
60
|
-
display_cash_receipt?: boolean;
|
|
61
|
-
deposit_expiration?: string;
|
|
62
|
-
app_scheme?: string;
|
|
63
|
-
use_card_point?: boolean;
|
|
64
|
-
direct_card?: string;
|
|
65
|
-
use_order_id?: boolean;
|
|
66
|
-
international_card_only?: boolean;
|
|
67
|
-
phone_carrier?: string;
|
|
68
|
-
direct_app_card?: boolean;
|
|
69
|
-
direct_samsungpay?: boolean;
|
|
70
|
-
test_deposit?: boolean;
|
|
71
|
-
enable_error_webhook?: boolean;
|
|
72
|
-
separately_confirmed?: boolean;
|
|
73
|
-
confirmOnlyRestApi?: boolean;
|
|
74
|
-
open_type?: string;
|
|
75
|
-
use_bootpay_inapp_sdk?: boolean;
|
|
76
|
-
redirect_url?: string;
|
|
77
|
-
display_success_result?: boolean;
|
|
78
|
-
display_error_result?: boolean;
|
|
79
|
-
disposable_cup_deposit?: number;
|
|
80
|
-
use_welcomepayment?: number;
|
|
81
|
-
first_subscription_comment?: string;
|
|
82
|
-
except_card_companies?: [string];
|
|
83
|
-
enable_easy_payments?: [string];
|
|
84
|
-
confirm_grace_seconds?: number;
|
|
85
|
-
show_close_button: boolean;
|
|
86
|
-
}
|
|
87
|
-
export declare class Payload {
|
|
88
|
-
application_id?: string;
|
|
89
|
-
android_application_id?: string;
|
|
90
|
-
ios_application_id?: string;
|
|
91
|
-
pg?: string;
|
|
92
|
-
method?: string;
|
|
93
|
-
methods?: [string];
|
|
94
|
-
order_name?: string;
|
|
95
|
-
price?: number;
|
|
96
|
-
tax_free?: number;
|
|
97
|
-
order_id?: string;
|
|
98
|
-
subscription_id?: string;
|
|
99
|
-
authentication_id?: string;
|
|
100
|
-
metadata?: Object;
|
|
101
|
-
user_token?: string;
|
|
102
|
-
extra?: Extra;
|
|
103
|
-
user?: User;
|
|
104
|
-
items?: [Item];
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=BootpayTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BootpayTypes.d.ts","sourceRoot":"","sources":["../src/BootpayTypes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACV,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAChD,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAA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MAAM,CAAI;IAC/B,0BAA0B,CAAC,EAAE,MAAM,CAAK;IACxC,qBAAqB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;IAChC,oBAAoB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAI;IAClC,iBAAiB,EAAE,OAAO,CAAQ;CACrC;AAED,qBAAa,OAAO;IAEhB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;CACjB"}
|
package/lib/Loader.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=Loader.d.ts.map
|
package/lib/Loader.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../src/Loader.tsx"],"names":[],"mappings":""}
|
package/lib/Loader.js
DELETED
|
File without changes
|
package/lib/UserInfo.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default class UserInfo {
|
|
2
|
-
static getBootpayInfo: (key: string, defaultVal: any) => Promise<unknown>;
|
|
3
|
-
static setBootpayInfo: (key: string, val: any) => Promise<unknown>;
|
|
4
|
-
static getBootpayUUID: () => Promise<unknown>;
|
|
5
|
-
static getBootpaySK: () => Promise<unknown>;
|
|
6
|
-
static setBootpaySK: (val: string) => Promise<unknown>;
|
|
7
|
-
static newBootpaySK: (uuid: string, time: number) => Promise<unknown>;
|
|
8
|
-
static getBootpayLastTime: () => Promise<number>;
|
|
9
|
-
static setBootpayLastTime(val: number): Promise<unknown>;
|
|
10
|
-
static getBootpayUserId(): Promise<unknown>;
|
|
11
|
-
static setBootpayUserId: (val: string) => Promise<unknown>;
|
|
12
|
-
static updateInfo: () => Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=UserInfo.d.ts.map
|
package/lib/UserInfo.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfo.d.ts","sourceRoot":"","sources":["../src/UserInfo.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,OAAO,QAAQ;IACzB,MAAM,CAAC,cAAc,QAAS,MAAM,cAAc,GAAG,sBAYpD;IAED,MAAM,CAAC,cAAc,QAAS,MAAM,OAAO,GAAG,sBAW7C;IAED,MAAM,CAAC,cAAc,yBAGpB;IAED,MAAM,CAAC,YAAY,yBAElB;IAED,MAAM,CAAC,YAAY,QAAS,MAAM,sBAEjC;IAED,MAAM,CAAC,YAAY,SAAU,MAAM,QAAQ,MAAM,sBAEhD;IAED,MAAM,CAAC,kBAAkB,wBAExB;IAED,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,MAAM;IAIrC,MAAM,CAAC,gBAAgB;IAIvB,MAAM,CAAC,gBAAgB,QAAS,MAAM,sBAErC;IAED,MAAM,CAAC,UAAU,sBAWhB;CACJ"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare module 'react-native' {
|
|
2
|
-
interface NativeModulesStatic {
|
|
3
|
-
Aes: {
|
|
4
|
-
encrypt: (data: string, key: string, iv: string) => Promise<string>;
|
|
5
|
-
hmac256: (data: string, key: string) => Promise<string>;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
declare const userTrace: (applicationId: string, userId: string, phone: string, email: string, gender: string, birth: string, area: string) => Promise<any>;
|
|
10
|
-
declare const pageTrace: (applicationId: string, url: string, pageType: string, items: any) => Promise<any>;
|
|
11
|
-
export { userTrace, pageTrace };
|
|
12
|
-
//# sourceMappingURL=bootpayAnalytics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootpayAnalytics.d.ts","sourceRoot":"","sources":["../src/bootpayAnalytics.ts"],"names":[],"mappings":"AAKA,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,mBAAmB;QAC3B,GAAG,EAAE;YACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;YACpE,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;SACzD,CAAC;KACH;CACF;AA+BD,QAAA,MAAM,SAAS,kBAAyB,MAAM,UAAU,MAAM,SAAS,MAAM,SAAS,MAAM,UAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,KAAG,QAAQ,GAAG,CAwCtJ,CAAC;AAGF,QAAA,MAAM,SAAS,kBAAyB,MAAM,OAAO,MAAM,YAAY,MAAM,SAAS,GAAG,KAAG,QAAQ,GAAG,CAqCtG,CAAC;AAYF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
|
package/lib/index.d.ts
DELETED
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAK3D,OAAO,EAAG,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
|