@paypay/mini-app-js-sdk 2.15.0 → 2.18.0
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/dist/client/index.d.ts +6 -5
- package/dist/client/supportedFunctionsList.d.ts +1 -1
- package/dist/composition-api/useGetUserAddress.d.ts +1 -1
- package/dist/composition-api/useInpuAddress.d.ts +1 -1
- package/dist/composition-api/useKycPassport.d.ts +1 -1
- package/dist/composition-api/useMakePayment.d.ts +1 -1
- package/dist/composition-api/useRegisterEmail.d.ts +2 -1
- package/dist/composition-api/useShowUpdateWarning.d.ts +1 -1
- package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +2 -2
- package/dist/composition-api/useTopup.d.ts +1 -1
- package/dist/core/coreFunctions/claimCoupon.d.ts +1 -0
- package/dist/core/coreFunctions/fetchCoupons.d.ts +3 -2
- package/dist/core/coreFunctions/getPaymentSettings.d.ts +1 -1
- package/dist/core/coreFunctions/logEvent.d.ts +2 -1
- package/dist/core/coreUtils.d.ts +4 -3
- package/dist/core/coupon/couponFunctions/renderCoupons.d.ts +2 -2
- package/dist/core/sentry.d.ts +6 -0
- package/dist/environment-variables.d.ts +5 -0
- package/dist/mini-app-api.d.ts +29 -7
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +1659 -5831
- package/dist/model/OPAErrorCodes.d.ts +4 -0
- package/dist/model/bridge/checkAccessToken.d.ts +4 -2
- package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
- package/dist/model/bridge/getAuthStatus.d.ts +3 -2
- package/dist/model/bridge/getBalance.d.ts +1 -1
- package/dist/model/bridge/getBankInfo.d.ts +2 -2
- package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
- package/dist/model/bridge/getKycInformation.d.ts +1 -1
- package/dist/model/bridge/getKycPassportInfo.d.ts +1 -1
- package/dist/model/bridge/getLoginUrl.d.ts +4 -3
- package/dist/model/bridge/getPayPayCardInfo.d.ts +3 -0
- package/dist/model/bridge/getPermissionStatus.d.ts +1 -1
- package/dist/model/bridge/getPlatformInformation.d.ts +2 -2
- package/dist/model/bridge/getTopBarHeight.d.ts +2 -2
- package/dist/model/bridge/getTransactionInfo.d.ts +1 -1
- package/dist/model/bridge/getTransactions.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +2 -2
- package/dist/model/bridge/getUserAddress.d.ts +1 -1
- package/dist/model/bridge/getUserLocation.d.ts +1 -1
- package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +1 -1
- package/dist/model/bridge/getUserProfile.d.ts +2 -2
- package/dist/model/bridge/init.d.ts +3 -2
- package/dist/model/bridge/initKycPassport.d.ts +1 -1
- package/dist/model/bridge/inputAddress.d.ts +1 -1
- package/dist/model/bridge/logout.d.ts +2 -2
- package/dist/model/bridge/makePayment.d.ts +1 -1
- package/dist/model/bridge/openWebview.d.ts +1 -1
- package/dist/model/bridge/registerEmail.d.ts +2 -1
- package/dist/model/bridge/registerKyc.d.ts +1 -1
- package/dist/model/bridge/render.d.ts +2 -3
- package/dist/model/bridge/renderLoginButton.d.ts +2 -2
- package/dist/model/bridge/renderPayButton.d.ts +2 -2
- package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
- package/dist/model/bridge/startMultiFactorAuth.d.ts +1 -1
- package/dist/model/bridge/topup.d.ts +1 -1
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
- package/dist/model/makePayment.d.ts +18 -17
- package/dist/model/miniAppError.d.ts +2 -1
- package/dist/model/permission.d.ts +2 -23
- package/dist/package/button/index.d.ts +2 -2
- package/dist/package/lottie/index.d.ts +1 -72
- package/dist/resources/en.d.ts +2 -0
- package/dist/resources/ja.d.ts +2 -0
- package/dist/types/checkPaymentMethod.d.ts +20 -0
- package/dist/types/getAuthStatus.d.ts +18 -0
- package/dist/types/getBalance.d.ts +31 -0
- package/dist/types/getBankInfo.d.ts +32 -0
- package/dist/types/getDeviceInformation.d.ts +3 -0
- package/dist/types/getKycInformation.d.ts +50 -0
- package/dist/types/getKycPassportInfo.d.ts +21 -0
- package/dist/types/getPermissionStatus.d.ts +68 -0
- package/dist/types/getPlatformInformation.d.ts +7 -0
- package/dist/types/getTopBarHeight.d.ts +3 -0
- package/dist/types/getTransactionInfo.d.ts +32 -0
- package/dist/types/getTransactions.d.ts +16 -0
- package/dist/types/getUAID.d.ts +3 -0
- package/dist/types/getUserAddress.d.ts +39 -0
- package/dist/types/getUserLocation.d.ts +13 -0
- package/dist/types/getUserPaymentFeatureSettings.d.ts +16 -0
- package/dist/types/getUserProfile.d.ts +25 -0
- package/dist/types/init.d.ts +40 -0
- package/dist/types/initKycPassport.d.ts +12 -0
- package/dist/types/logout.d.ts +3 -0
- package/dist/types/makePayment.d.ts +46 -0
- package/dist/types/openWebview.d.ts +11 -0
- package/dist/types/registerEmail.d.ts +5 -0
- package/dist/types/registerKycParams.d.ts +8 -0
- package/dist/types/showUpdateWarning.d.ts +12 -0
- package/dist/types/startMultiFactorAuth.d.ts +10 -0
- package/dist/types/topup.d.ts +18 -0
- package/dist/types/verifyMultiFactorAuthResult.d.ts +15 -0
- package/dist/types.d.ts +13 -230
- package/dist/utils/analytics.d.ts +10 -2
- package/dist/utils/api.d.ts +7 -12
- package/dist/utils/getLanguage.d.ts +2 -0
- package/dist/utils/helper.d.ts +1 -1
- package/dist/utils/storage.d.ts +3 -2
- package/dist/views/coupon/index.d.ts +8 -0
- package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
- package/package.json +4 -2
- package/dist/composition-api/useRenderSmartButton.d.ts +0 -3
- package/dist/model/bridge/index.d.ts +0 -47
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export interface GetKycInformationParams extends NativeParams<GetKycInformationResult> {
|
|
3
|
+
type?: string;
|
|
4
|
+
eKycDocuments?: Array<EKycDocumentType>;
|
|
5
|
+
}
|
|
6
|
+
export interface KycAddress {
|
|
7
|
+
zipCode?: string;
|
|
8
|
+
countryCode?: string;
|
|
9
|
+
country?: string;
|
|
10
|
+
state?: string;
|
|
11
|
+
city?: string;
|
|
12
|
+
street1?: string;
|
|
13
|
+
street2?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const EKycDocument: {
|
|
16
|
+
readonly driversLicence: "DRIVERS_LICENCE";
|
|
17
|
+
readonly mynumberCard: "MYNUMBER_CARD";
|
|
18
|
+
readonly driversCareerCertificate: "DRIVERS_CAREER_CERTIFICATE";
|
|
19
|
+
};
|
|
20
|
+
export declare type EKycDocumentType = (typeof EKycDocument)[keyof typeof EKycDocument];
|
|
21
|
+
export declare const KycMethod: {
|
|
22
|
+
readonly eKyc: "EKYC";
|
|
23
|
+
readonly bank: "BANK";
|
|
24
|
+
readonly physical: "PHYSICAL";
|
|
25
|
+
};
|
|
26
|
+
export declare type KycMethodType = (typeof KycMethod)[keyof typeof KycMethod];
|
|
27
|
+
export declare const KycStatus: {
|
|
28
|
+
readonly completed: "COMPLETED";
|
|
29
|
+
readonly notCompleted: "NOT_COMPLETED";
|
|
30
|
+
readonly kycValidationInProcess: "KYC_VALIDATION_IN_PROCESS";
|
|
31
|
+
};
|
|
32
|
+
export declare type KycStatusType = (typeof KycStatus)[keyof typeof KycStatus];
|
|
33
|
+
export interface KycData {
|
|
34
|
+
lastName?: string;
|
|
35
|
+
firstName?: string;
|
|
36
|
+
lastNameKana?: string;
|
|
37
|
+
firstNameKana?: string;
|
|
38
|
+
dateOfBirth?: string;
|
|
39
|
+
address?: KycAddress;
|
|
40
|
+
job?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare type GetKycInformationResult = {
|
|
43
|
+
status: KycStatusType | string;
|
|
44
|
+
kycAt?: string;
|
|
45
|
+
kycInfo?: KycData;
|
|
46
|
+
type?: KycMethodType | string;
|
|
47
|
+
eKycDocuments?: EKycDocumentType | string;
|
|
48
|
+
ngReason?: string;
|
|
49
|
+
jws: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EKycDocumentType, KycData, KycMethodType } from '../types/getKycInformation';
|
|
2
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
3
|
+
export declare const KycPassportUrlParam: {
|
|
4
|
+
authType: string;
|
|
5
|
+
ekycDocuments: string;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
functionName: string;
|
|
8
|
+
};
|
|
9
|
+
export interface GetKycPassportInfoParams extends NativeParams<GetKycPassportInfoResult> {
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type GetKycPassportInfoResult = {
|
|
13
|
+
status: 'COMPLETED';
|
|
14
|
+
kycAt: string;
|
|
15
|
+
kycInfo: KycData;
|
|
16
|
+
type: KycMethodType | string;
|
|
17
|
+
eKycDocuments: EKycDocumentType | string;
|
|
18
|
+
jws: string;
|
|
19
|
+
possessionAuthResult: 'SUCCESS';
|
|
20
|
+
nonce: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export declare enum PermissionStatus {
|
|
3
|
+
granted = "GRANTED",
|
|
4
|
+
denied = "DENIED"
|
|
5
|
+
}
|
|
6
|
+
export declare const PermissionName: {
|
|
7
|
+
readonly mini_app_payment_balance: "mini_app_payment_balance";
|
|
8
|
+
readonly mini_app_device_info: "mini_app_device_info";
|
|
9
|
+
readonly mini_app_user_contacts: "mini_app_user_contacts";
|
|
10
|
+
readonly mini_app_device_battery: "mini_app_device_battery";
|
|
11
|
+
readonly mini_app_kyc: "mini_app_kyc";
|
|
12
|
+
readonly mini_app_user_location: "mini_app_user_location";
|
|
13
|
+
readonly mini_app_check_payment_method: "mini_app_check_payment_method";
|
|
14
|
+
readonly cashback: "cashback";
|
|
15
|
+
readonly bank_registration: "bank_registration";
|
|
16
|
+
readonly mini_app_user_email_address: "mini_app_user_email_address";
|
|
17
|
+
readonly mini_app_user_address: "mini_app_user_address";
|
|
18
|
+
readonly mini_app_user_phone_camera: "mini_app_user_phone_camera";
|
|
19
|
+
readonly mini_app_user_phone_album: "mini_app_user_phone_album";
|
|
20
|
+
readonly mini_app_bank_information: "mini_app_bank_information";
|
|
21
|
+
readonly mini_app_cashback_information: "mini_app_cashback_information";
|
|
22
|
+
readonly mini_app_user_phone_number: "mini_app_user_phone_number";
|
|
23
|
+
readonly mini_app_user_name: "mini_app_user_name";
|
|
24
|
+
readonly mini_app_user_nickname: "mini_app_user_nickname";
|
|
25
|
+
readonly mini_app_user_avatar: "mini_app_user_avatar";
|
|
26
|
+
readonly mini_app_user_signup_date: "mini_app_user_signup_date";
|
|
27
|
+
readonly mini_app_user_employer_info: "mini_app_user_employer_info";
|
|
28
|
+
readonly mini_app_user_gender: "mini_app_user_gender";
|
|
29
|
+
readonly direct_debit: "direct_debit";
|
|
30
|
+
readonly continuous_payments: "continuous_payments";
|
|
31
|
+
readonly pending_payments: "pending_payments";
|
|
32
|
+
readonly preauth_capture_native: "preauth_capture_native";
|
|
33
|
+
readonly mini_app_point_usage_setting: "mini_app_point_usage_setting";
|
|
34
|
+
readonly mini_app_user_payment_limit: "mini_app_user_payment_limit";
|
|
35
|
+
readonly mini_app_user_p2p_limit: "mini_app_user_p2p_limit";
|
|
36
|
+
readonly mini_app_user_topup_limit: "mini_app_user_topup_limit";
|
|
37
|
+
readonly merchant_topup: "merchant_topup";
|
|
38
|
+
readonly mini_app_notification_center: "mini_app_notification_center";
|
|
39
|
+
readonly push_notification: "push_notification";
|
|
40
|
+
readonly notification_center_tl: "notification_center_tl";
|
|
41
|
+
readonly user_info_softbank_user: "user_info_softbank_user";
|
|
42
|
+
readonly user_info_yahoo_mobile_user: "user_info_yahoo_mobile_user";
|
|
43
|
+
readonly user_info_yahoo_premium_user: "user_info_yahoo_premium_user";
|
|
44
|
+
readonly user_info_tpoint: "user_info_tpoint";
|
|
45
|
+
readonly mini_app_transaction: "mini_app_transaction";
|
|
46
|
+
};
|
|
47
|
+
export declare type PermissionNameType = (typeof PermissionName)[keyof typeof PermissionName];
|
|
48
|
+
export declare type Permission = {
|
|
49
|
+
blocker: boolean;
|
|
50
|
+
name: string;
|
|
51
|
+
type: string;
|
|
52
|
+
isBlocker: boolean;
|
|
53
|
+
};
|
|
54
|
+
export interface GetPermissionStatusParams extends NativeParams<GetPermissionStatus> {
|
|
55
|
+
name?: PermissionNameType;
|
|
56
|
+
}
|
|
57
|
+
export declare type GrantedPermissionRespone = {
|
|
58
|
+
unsigned?: {
|
|
59
|
+
data?: {
|
|
60
|
+
scopes?: Array<string>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare type GetPermissionStatus = {
|
|
65
|
+
status: (typeof PermissionStatus)[keyof typeof PermissionStatus];
|
|
66
|
+
} | {
|
|
67
|
+
granted_permissions: PermissionNameType[];
|
|
68
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { Amount } from '../types/makePayment';
|
|
3
|
+
export interface GetTransactionInfoParams extends NativeParams<GetTransactionInfoResult> {
|
|
4
|
+
orderId: string;
|
|
5
|
+
orderType?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type GetTransactionInfoResult = {
|
|
8
|
+
transaction: TransactionItem;
|
|
9
|
+
};
|
|
10
|
+
export declare type TransactionItem = {
|
|
11
|
+
orderId: string;
|
|
12
|
+
transactionId: string;
|
|
13
|
+
date: string;
|
|
14
|
+
status: TransactionStatusType;
|
|
15
|
+
errorCode: string;
|
|
16
|
+
amount: Amount;
|
|
17
|
+
storeId: string;
|
|
18
|
+
storeName: string;
|
|
19
|
+
merchantId: string;
|
|
20
|
+
merchantName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const TransactionStatus: {
|
|
23
|
+
readonly CREATED: "CREATED";
|
|
24
|
+
readonly SUCCESS: "SUCCESS";
|
|
25
|
+
readonly FAILED: "FAILED";
|
|
26
|
+
readonly PENDING: "PENDING";
|
|
27
|
+
readonly AUTHORIZED: "AUTHORIZED";
|
|
28
|
+
readonly EXPIRED: "EXPIRED";
|
|
29
|
+
readonly CANCELED: "CANCELED";
|
|
30
|
+
};
|
|
31
|
+
declare type TransactionStatusType = (typeof TransactionStatus)[keyof typeof TransactionStatus];
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { TransactionItem } from '../types/getTransactionInfo';
|
|
3
|
+
export interface GetTransactionsParams extends NativeParams<GetTransactionsResult> {
|
|
4
|
+
types?: string | string[];
|
|
5
|
+
statuses?: string | string[];
|
|
6
|
+
mids?: string | string[];
|
|
7
|
+
startDate?: string;
|
|
8
|
+
endDate?: string;
|
|
9
|
+
cursor?: string;
|
|
10
|
+
size?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare type GetTransactionsResult = {
|
|
13
|
+
hasNext: boolean;
|
|
14
|
+
nextCursor: string;
|
|
15
|
+
transactions: TransactionItem[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export interface GetUserAddressParams extends NativeParams<GetUserAddressResult> {
|
|
3
|
+
type?: GetUserAddressType;
|
|
4
|
+
}
|
|
5
|
+
interface AddressBase {
|
|
6
|
+
street1: string;
|
|
7
|
+
country: string;
|
|
8
|
+
zip: string;
|
|
9
|
+
state: string;
|
|
10
|
+
city: string;
|
|
11
|
+
tags?: Array<string>;
|
|
12
|
+
title?: string;
|
|
13
|
+
receiver?: string;
|
|
14
|
+
street2?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Address extends AddressBase {
|
|
17
|
+
id: number;
|
|
18
|
+
kyc: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface NewAddress extends AddressBase {
|
|
21
|
+
id: number | null;
|
|
22
|
+
}
|
|
23
|
+
export interface InputAddressParams extends NativeParams<void> {
|
|
24
|
+
address?: Address;
|
|
25
|
+
}
|
|
26
|
+
export declare type AddressUpdateEvent = {
|
|
27
|
+
selectedAddress: Address;
|
|
28
|
+
addresses: Address[];
|
|
29
|
+
};
|
|
30
|
+
declare const GetUserAddressType: {
|
|
31
|
+
readonly kyc: "KYC";
|
|
32
|
+
readonly work: "WORK";
|
|
33
|
+
readonly home: "HOME";
|
|
34
|
+
readonly preferred: "PREFERRED";
|
|
35
|
+
readonly billing: "BILLING";
|
|
36
|
+
};
|
|
37
|
+
export declare type GetUserAddressType = (typeof GetUserAddressType)[keyof typeof GetUserAddressType];
|
|
38
|
+
export declare type GetUserAddressResult = Address;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export declare type Accuracy = 'high';
|
|
3
|
+
export interface GetUserLocationParams extends NativeParams<GetUserLocationResult> {
|
|
4
|
+
validTimeMinutes?: number;
|
|
5
|
+
accuracy?: Accuracy;
|
|
6
|
+
fallbackToGeolocation?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface GetUserLocationResult {
|
|
9
|
+
result: {
|
|
10
|
+
lat: number;
|
|
11
|
+
long: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PaymentFeatureType } from '../types';
|
|
2
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
3
|
+
export declare type GetUserPaymentFeatureSettingsResult = {
|
|
4
|
+
paymentFeatures: Record<SupportedPaymentFeatureType, GetUserPaymentFeatureSettingsStatusType>;
|
|
5
|
+
};
|
|
6
|
+
export declare type SupportedPaymentFeatureType = Exclude<PaymentFeatureType, 'RECOMMEND'>;
|
|
7
|
+
export interface GetUserPaymentFeatureSettingsParams extends NativeParams<GetUserPaymentFeatureSettingsResult> {
|
|
8
|
+
paymentFeatureType?: SupportedPaymentFeatureType;
|
|
9
|
+
merchant?: string;
|
|
10
|
+
productType?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const GetUserPaymentFeatureSettingsStatus: {
|
|
13
|
+
readonly available: "AVAILABLE";
|
|
14
|
+
readonly unavailable: "UNAVAILABLE";
|
|
15
|
+
};
|
|
16
|
+
export declare type GetUserPaymentFeatureSettingsStatusType = (typeof GetUserPaymentFeatureSettingsStatus)[keyof typeof GetUserPaymentFeatureSettingsStatus];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EKycDocumentType, KycData, KycStatusType } from '../types/getKycInformation';
|
|
2
|
+
export declare type GetUserProfileResult = {
|
|
3
|
+
firstName?: string;
|
|
4
|
+
lastName?: string;
|
|
5
|
+
firstNameKana?: string;
|
|
6
|
+
lastNameKana?: string;
|
|
7
|
+
firstNameRoman?: string;
|
|
8
|
+
lastNameRoman?: string;
|
|
9
|
+
nickName?: string;
|
|
10
|
+
avatarUrl?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
signupAt?: string;
|
|
14
|
+
employerInfo?: {
|
|
15
|
+
employerName: string;
|
|
16
|
+
employerPhoneNumber: string;
|
|
17
|
+
};
|
|
18
|
+
gender?: string;
|
|
19
|
+
kycStatus?: KycStatusType;
|
|
20
|
+
kycAt?: string;
|
|
21
|
+
kycInfo?: KycData;
|
|
22
|
+
type?: string;
|
|
23
|
+
eKycDocuments?: Array<EKycDocumentType>;
|
|
24
|
+
jws?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export interface InitClientParams extends NativeParams<InitResult> {
|
|
3
|
+
clientId: string;
|
|
4
|
+
env?: PPEnvType;
|
|
5
|
+
mode?: string;
|
|
6
|
+
debugMode?: boolean;
|
|
7
|
+
useAllFunctions?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface InitParams extends NativeParams<InitResult> {
|
|
10
|
+
clientId: string;
|
|
11
|
+
env?: PPEnvType;
|
|
12
|
+
mode?: string;
|
|
13
|
+
token?: string;
|
|
14
|
+
ott?: string;
|
|
15
|
+
refreshToken?: string;
|
|
16
|
+
codeVerifier?: string;
|
|
17
|
+
clientVersion?: string;
|
|
18
|
+
debugMode?: boolean;
|
|
19
|
+
useAllFunctions?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const PPEnv: {
|
|
22
|
+
readonly staging: "staging";
|
|
23
|
+
readonly production: "production";
|
|
24
|
+
readonly sandbox: "sandbox";
|
|
25
|
+
readonly qa: "qa";
|
|
26
|
+
readonly canary: "canary";
|
|
27
|
+
readonly test: "test";
|
|
28
|
+
};
|
|
29
|
+
export declare type PPEnvType = (typeof PPEnv)[keyof typeof PPEnv];
|
|
30
|
+
export declare type InitResult = {
|
|
31
|
+
statusCode: InitStatusCodeType | string;
|
|
32
|
+
};
|
|
33
|
+
export declare const InitStatusCode: {
|
|
34
|
+
readonly initialized: "INITIALIZED";
|
|
35
|
+
readonly tokenValid: "TOKEN_VALID";
|
|
36
|
+
readonly tokenExpired: "TOKEN_EXPIRED";
|
|
37
|
+
readonly sdkNotInitialized: "SDK_NOT_INITIALIZED";
|
|
38
|
+
readonly tokenNotFound: "TOKEN_NOT_FOUND";
|
|
39
|
+
};
|
|
40
|
+
export declare type InitStatusCodeType = (typeof InitStatusCode)[keyof typeof InitStatusCode];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { EKycDocumentType } from '../types/getKycInformation';
|
|
3
|
+
export declare enum KycPassportMethod {
|
|
4
|
+
biometric = "BIOMETRIC",
|
|
5
|
+
otp = "OTP"
|
|
6
|
+
}
|
|
7
|
+
export interface InitKycPassportParams extends NativeParams<unknown> {
|
|
8
|
+
eKycDocuments?: Array<EKycDocumentType>;
|
|
9
|
+
callbackUrl: string;
|
|
10
|
+
isSkipKYCRequiredHalfsheet?: boolean;
|
|
11
|
+
getCompletedKycOnly?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { Address } from '../types/getUserAddress';
|
|
3
|
+
export interface MakePaymentParams extends NativeParams<MakePaymentResult> {
|
|
4
|
+
amount: Amount;
|
|
5
|
+
merchantPaymentId: string;
|
|
6
|
+
requestedAt: number;
|
|
7
|
+
merchantAlias?: string;
|
|
8
|
+
orderDescription?: string;
|
|
9
|
+
storeId?: string;
|
|
10
|
+
terminalId?: string;
|
|
11
|
+
isAuthorization?: boolean;
|
|
12
|
+
orderItems?: Array<OrderItem>;
|
|
13
|
+
expiresAt?: number;
|
|
14
|
+
orderReceiptNumber?: string;
|
|
15
|
+
agreeSimilarTransaction?: boolean;
|
|
16
|
+
prepaidOnly?: boolean;
|
|
17
|
+
metadata?: unknown;
|
|
18
|
+
sourceInfoApp?: string;
|
|
19
|
+
alwaysDisplayCompletionScreen?: boolean;
|
|
20
|
+
alwaysHideCompletionScreen?: boolean;
|
|
21
|
+
storeInfo?: string;
|
|
22
|
+
productType?: string;
|
|
23
|
+
taxExempt?: boolean;
|
|
24
|
+
additionalUserInfo?: {
|
|
25
|
+
userAddress?: {
|
|
26
|
+
visible: boolean;
|
|
27
|
+
mandatory: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
merchantTimeoutAt?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface Amount {
|
|
33
|
+
amount: number;
|
|
34
|
+
currency?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface OrderItem {
|
|
37
|
+
name: string;
|
|
38
|
+
category?: string;
|
|
39
|
+
quantity: number;
|
|
40
|
+
productId?: string;
|
|
41
|
+
unitPrice: Amount;
|
|
42
|
+
}
|
|
43
|
+
export declare type MakePaymentResult = {
|
|
44
|
+
jws: string;
|
|
45
|
+
address: Address | null;
|
|
46
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export interface OpenWebviewParams extends NativeParams<void> {
|
|
3
|
+
url: string;
|
|
4
|
+
style?: OpenWebviewStyleType;
|
|
5
|
+
}
|
|
6
|
+
export declare const OpenWebviewStyle: {
|
|
7
|
+
readonly modal: "modal";
|
|
8
|
+
readonly slide: "slide";
|
|
9
|
+
readonly external: "external";
|
|
10
|
+
};
|
|
11
|
+
export declare type OpenWebviewStyleType = (typeof OpenWebviewStyle)[keyof typeof OpenWebviewStyle];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { EKycDocumentType, KycData, KycMethodType } from '../types/getKycInformation';
|
|
3
|
+
export interface RegisterKycParams extends NativeParams<unknown> {
|
|
4
|
+
type: KycMethodType;
|
|
5
|
+
eKycDocuments: Array<EKycDocumentType>;
|
|
6
|
+
redirectUrl: string;
|
|
7
|
+
data?: KycData;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export interface ShowUpdateWarningParams extends NativeParams<ShowUpdateWarningResult> {
|
|
3
|
+
isMandatory?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const ShowUpdateWarningUserAction: {
|
|
6
|
+
readonly update: "UPDATE";
|
|
7
|
+
readonly ignore: "IGNORE";
|
|
8
|
+
};
|
|
9
|
+
export declare type ShowUpdateWarningUserActionType = (typeof ShowUpdateWarningUserAction)[keyof typeof ShowUpdateWarningUserAction];
|
|
10
|
+
export declare type ShowUpdateWarningResult = {
|
|
11
|
+
userAction: ShowUpdateWarningUserActionType;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { MiniAppResult } from '../types';
|
|
3
|
+
export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult> {
|
|
4
|
+
type: MutiFactorAuthType;
|
|
5
|
+
callbackUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const MultiFactorAuth: {
|
|
8
|
+
readonly biometric: "BIOMETRIC";
|
|
9
|
+
};
|
|
10
|
+
export declare type MutiFactorAuthType = (typeof MultiFactorAuth)[keyof typeof MultiFactorAuth];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { MiniAppErrorResultType } from '../types';
|
|
3
|
+
import { PaymentMethodNameType } from '../model/makePayment';
|
|
4
|
+
export interface TopupParams extends NativeParams<TopupResult, MiniAppErrorResultType & {
|
|
5
|
+
jws?: string;
|
|
6
|
+
}> {
|
|
7
|
+
merchantTopUpId: string;
|
|
8
|
+
requestedAt: number;
|
|
9
|
+
prepaidOnly?: boolean;
|
|
10
|
+
merchant?: string;
|
|
11
|
+
productType?: string;
|
|
12
|
+
sourceInfoApp?: string;
|
|
13
|
+
methodType?: PaymentMethodNameType;
|
|
14
|
+
bankCode?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare type TopupResult = {
|
|
17
|
+
jws: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export declare type SessionResponse = {
|
|
3
|
+
unsigned: {
|
|
4
|
+
data: VerifyMultiFactorAuthStatus;
|
|
5
|
+
resultInfo: {
|
|
6
|
+
code: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export interface VerifyMultiFactorAuthResultParams extends NativeParams<VerifyMultiFactorAuthStatus> {
|
|
11
|
+
sessionId: string | null;
|
|
12
|
+
}
|
|
13
|
+
export declare type VerifyMultiFactorAuthStatus = {
|
|
14
|
+
status: 'SUCCESS';
|
|
15
|
+
};
|