@paypay/mini-app-js-sdk 2.14.0 → 2.16.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/coreIframe.d.ts +0 -1
- package/dist/client/index.d.ts +12 -6
- 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/getPaymentSettings.d.ts +22 -0
- package/dist/core/coreFunctions/index.d.ts +1 -0
- package/dist/core/coreUtils.d.ts +4 -2
- package/dist/core/sentry.d.ts +1 -0
- package/dist/environment-variables.d.ts +5 -0
- package/dist/mini-app-api.d.ts +31 -4
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +5582 -77
- 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 +1 -1
- 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 +2 -1
- 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 +2 -0
- package/dist/model/bridge/getTransactions.d.ts +2 -0
- 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 +1 -1
- 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 +2 -2
- 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/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 +4 -1
- package/dist/model/permission.d.ts +2 -22
- package/dist/package/button/index.d.ts +3 -3
- 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 +22 -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 +41 -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 +10 -211
- package/dist/utils/analytics.d.ts +2 -1
- package/dist/utils/api.d.ts +13 -13
- package/dist/utils/fetch.d.ts +8 -2
- package/dist/utils/getLanguage.d.ts +2 -0
- package/dist/utils/helper.d.ts +3 -2
- package/dist/utils/storage.d.ts +3 -2
- package/dist/utils/windowBridge.d.ts +4 -1
- package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
- package/package.json +5 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function checkAccessToken(params: NativeParams<
|
|
2
|
+
import { MiniAppStatusType } from '../miniAppStatus';
|
|
3
|
+
export declare function checkAccessToken(params: NativeParams<{
|
|
4
|
+
statusCode: MiniAppStatusType.validToken;
|
|
5
|
+
}>): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CheckPaymentMethodParams } from '../../types';
|
|
1
|
+
import { CheckPaymentMethodParams } from '../../types/checkPaymentMethod';
|
|
2
2
|
export declare function checkPaymentMethod(checkPayMethodParams: CheckPaymentMethodParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetAuthStatusParams } from '../../types';
|
|
1
|
+
import { GetAuthStatusParams } from '../../types/getAuthStatus';
|
|
2
2
|
export declare function getAuthStatus(params: GetAuthStatusParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetBalanceParams } from '../../types';
|
|
1
|
+
import { GetBalanceParams } from '../../types/getBalance';
|
|
2
2
|
export declare function getBalance(params: GetBalanceParams): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getBankInfo(params: NativeParams<
|
|
2
|
+
import { GetBankInfoResult } from '../../types/getBankInfo';
|
|
3
|
+
export declare function getBankInfo(params: NativeParams<GetBankInfoResult>): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getDeviceInformation(params: NativeParams<
|
|
2
|
+
import { GetDeviceInformationResult } from '../../types/getDeviceInformation';
|
|
3
|
+
export declare function getDeviceInformation(params: NativeParams<GetDeviceInformationResult>): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetKycInformationParams } from '../../types';
|
|
1
|
+
import { GetKycInformationParams } from '../../types/getKycInformation';
|
|
2
2
|
export declare function getKycInformation(params: GetKycInformationParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetKycPassportInfoParams } from '../../types';
|
|
1
|
+
import { GetKycPassportInfoParams } from '../../types/getKycPassportInfo';
|
|
2
2
|
export declare function getKycPassportInfo(params: GetKycPassportInfoParams): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PostLogInRedirectParams } from '../../types';
|
|
2
|
+
import { PKCEChallengeType } from '../../types/getAuthStatus';
|
|
2
3
|
interface GetLoginUrlParams extends PostLogInRedirectParams {
|
|
3
4
|
pkceCodeChallenge: PKCEChallengeType;
|
|
4
5
|
scopes?: Array<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetPermissionStatusParams } from '../../types';
|
|
1
|
+
import { GetPermissionStatusParams } from '../../types/getPermissionStatus';
|
|
2
2
|
export declare function getPermissionStatus(params: GetPermissionStatusParams): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getPlatformInformation(params: NativeParams<
|
|
2
|
+
import { GetPlatformInformationResult } from '../../types/getPlatformInformation';
|
|
3
|
+
export declare function getPlatformInformation(params: NativeParams<GetPlatformInformationResult>): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getTopBarHeight(params: NativeParams<
|
|
2
|
+
import { GetTopBarHeightResult } from '../../types/getTopBarHeight';
|
|
3
|
+
export declare function getTopBarHeight(params: NativeParams<GetTopBarHeightResult>): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getUAID(params: NativeParams<
|
|
2
|
+
import { GetUAIDResult } from '../../types/getUAID';
|
|
3
|
+
export declare function getUAID(params: NativeParams<GetUAIDResult>): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetUserAddressParams } from '../../types';
|
|
1
|
+
import { GetUserAddressParams } from '../../types/getUserAddress';
|
|
2
2
|
export declare function getUserAddress(params: GetUserAddressParams): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetUserLocationParams } from '../../types';
|
|
1
|
+
import { GetUserLocationParams } from '../../types/getUserLocation';
|
|
2
2
|
export declare function getUserLocation(getUserLocationParams: GetUserLocationParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetUserPaymentFeatureSettingsParams } from '../../types';
|
|
1
|
+
import { GetUserPaymentFeatureSettingsParams } from '../../types/getUserPaymentFeatureSettings';
|
|
2
2
|
export declare function getUserPaymentFeatureSettings(params: GetUserPaymentFeatureSettingsParams): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getUserProfile(params: NativeParams<
|
|
2
|
+
import { GetUserProfileResult } from '../../types/getUserProfile';
|
|
3
|
+
export declare function getUserProfile(params: NativeParams<GetUserProfileResult>): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InitParams } from '../../types';
|
|
1
|
+
import { InitParams } from '../../types/init';
|
|
2
2
|
export declare function init(params: InitParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InitKycPassportParams } from '../../types';
|
|
1
|
+
import { InitKycPassportParams } from '../../types/initKycPassport';
|
|
2
2
|
export declare function initKycPassport(params: InitKycPassportParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputAddressParams } from '../../types';
|
|
1
|
+
import { InputAddressParams } from '../../types/getUserAddress';
|
|
2
2
|
export declare function inputAddress(params: InputAddressParams): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
import {
|
|
3
|
-
export declare function logout(params: NativeParams<
|
|
2
|
+
import { LogoutResult } from '../../types/logout';
|
|
3
|
+
export declare function logout(params: NativeParams<LogoutResult>): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MakePaymentParams } from '../../types';
|
|
2
|
-
export declare const makePayment: (params: MakePaymentParams) =>
|
|
1
|
+
import { MakePaymentParams } from '../../types/makePayment';
|
|
2
|
+
export declare const makePayment: (params: MakePaymentParams) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { OpenWebviewParams } from '../../types';
|
|
1
|
+
import { OpenWebviewParams } from '../../types/openWebview';
|
|
2
2
|
export declare function openWebview(openWebviewParams: OpenWebviewParams): void;
|
|
3
3
|
export declare function openWebviewInternal(params: OpenWebviewParams): void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
2
|
-
|
|
2
|
+
import { RegisterEmailResult } from '../../types/registerEmail';
|
|
3
|
+
export declare function registerEmail(params: NativeParams<RegisterEmailResult>, allowsUpdate?: boolean): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RegisterKycParams } from '../../types';
|
|
1
|
+
import { RegisterKycParams } from '../../types/registerKycParams';
|
|
2
2
|
export declare function registerKyc(params: RegisterKycParams): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ShowUpdateWarningParams } from '../../types';
|
|
1
|
+
import { ShowUpdateWarningParams } from '../../types/showUpdateWarning';
|
|
2
2
|
export declare function showUpdateWarning(params: ShowUpdateWarningParams): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StartMultiFactorAuthParams } from '../../types';
|
|
1
|
+
import { StartMultiFactorAuthParams } from '../../types/startMultiFactorAuth';
|
|
2
2
|
export declare function startMultiFactorAuth(params: StartMultiFactorAuthParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TopupParams } from '../../types';
|
|
1
|
+
import { TopupParams } from '../../types/topup';
|
|
2
2
|
export declare function topup(params: TopupParams): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { VerifyMultiFactorAuthResultParams } from '../../types';
|
|
1
|
+
import { VerifyMultiFactorAuthResultParams } from '../../types/verifyMultiFactorAuthResult';
|
|
2
2
|
export declare function verifyMultiFactorAuthResult(params: VerifyMultiFactorAuthResultParams): Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PPFetchResult } from '../utils/fetch';
|
|
2
2
|
import { MiniAppErrorType } from './miniAppError';
|
|
3
|
-
import { Amount, OrderItem } from '../types';
|
|
4
3
|
import { UIComponentsError } from './uiComponents';
|
|
4
|
+
import { Amount, OrderItem } from '../types/makePayment';
|
|
5
5
|
export interface PaymentIdQuery {
|
|
6
6
|
merchant?: string;
|
|
7
7
|
sourceInfoApp?: string;
|
|
@@ -35,15 +35,16 @@ export declare type Balance = {
|
|
|
35
35
|
currency: 'JPY';
|
|
36
36
|
usable: boolean;
|
|
37
37
|
};
|
|
38
|
-
export declare
|
|
39
|
-
WALLET
|
|
40
|
-
CREDIT_CARD
|
|
41
|
-
BANK
|
|
42
|
-
YMONEY_BANK
|
|
43
|
-
SBID_CARRIER_BILLING
|
|
44
|
-
PAY_LATER
|
|
45
|
-
PAY_LATER_CC
|
|
46
|
-
}
|
|
38
|
+
export declare const PaymentMethodName: {
|
|
39
|
+
readonly WALLET: "WALLET";
|
|
40
|
+
readonly CREDIT_CARD: "CREDIT_CARD";
|
|
41
|
+
readonly BANK: "BANK";
|
|
42
|
+
readonly YMONEY_BANK: "YMONEY_BANK";
|
|
43
|
+
readonly SBID_CARRIER_BILLING: "SBID_CARRIER_BILLING";
|
|
44
|
+
readonly PAY_LATER: "PAY_LATER";
|
|
45
|
+
readonly PAY_LATER_CC: "PAY_LATER_CC";
|
|
46
|
+
};
|
|
47
|
+
export declare type PaymentMethodNameType = (typeof PaymentMethodName)[keyof typeof PaymentMethodName];
|
|
47
48
|
export interface PaymentState {
|
|
48
49
|
appealDescription: AppealDescription | null;
|
|
49
50
|
paymentMethods: PaymentMethod[];
|
|
@@ -53,7 +54,7 @@ export interface PaymentState {
|
|
|
53
54
|
}
|
|
54
55
|
declare type MethodBase = {
|
|
55
56
|
paymentMethodId: string;
|
|
56
|
-
paymentMethodType:
|
|
57
|
+
paymentMethodType: PaymentMethodNameType;
|
|
57
58
|
descriptionBannerInfo?: BannerInfo;
|
|
58
59
|
walletInfo?: unknown;
|
|
59
60
|
creditCardInfo?: unknown;
|
|
@@ -88,7 +89,7 @@ export declare type BannerInfo = {
|
|
|
88
89
|
displayResponse?: UIComponentsError;
|
|
89
90
|
};
|
|
90
91
|
export declare type WalletMethod = MethodBase & {
|
|
91
|
-
paymentMethodType:
|
|
92
|
+
paymentMethodType: 'WALLET';
|
|
92
93
|
walletInfo?: {
|
|
93
94
|
cashBackBalanceInfo?: Balance;
|
|
94
95
|
cashBackExpirableBalanceInfo?: Balance;
|
|
@@ -137,7 +138,7 @@ export declare type CreditCardInfo = {
|
|
|
137
138
|
paymentMethodStatusLabel?: string;
|
|
138
139
|
};
|
|
139
140
|
export declare type CreditMethod = MethodBase & {
|
|
140
|
-
paymentMethodType:
|
|
141
|
+
paymentMethodType: 'CREDIT_CARD';
|
|
141
142
|
creditCardInfo?: CreditCardInfo;
|
|
142
143
|
};
|
|
143
144
|
export declare enum bankCode {
|
|
@@ -179,11 +180,11 @@ export declare type BankInfo = {
|
|
|
179
180
|
showAmount?: boolean;
|
|
180
181
|
};
|
|
181
182
|
export declare type BankMethod = MethodBase & {
|
|
182
|
-
paymentMethodType:
|
|
183
|
+
paymentMethodType: 'BANK' | 'YMONEY_BANK';
|
|
183
184
|
bankInfo?: BankInfo;
|
|
184
185
|
};
|
|
185
186
|
export declare type SbidBankMethod = MethodBase & {
|
|
186
|
-
paymentMethodType:
|
|
187
|
+
paymentMethodType: 'SBID_CARRIER_BILLING';
|
|
187
188
|
sbidCarrierBillingInfo?: SbidBankInfo;
|
|
188
189
|
};
|
|
189
190
|
export declare type SbidBankInfo = {
|
|
@@ -191,7 +192,7 @@ export declare type SbidBankInfo = {
|
|
|
191
192
|
paymentMethodStatusLabel?: string;
|
|
192
193
|
};
|
|
193
194
|
export declare type PayLaterCCMethod = MethodBase & {
|
|
194
|
-
paymentMethodType:
|
|
195
|
+
paymentMethodType: 'PAY_LATER_CC';
|
|
195
196
|
payLaterCcInfo?: PayLaterCCInfo;
|
|
196
197
|
};
|
|
197
198
|
export declare type PayLaterCCInfo = {
|
|
@@ -200,7 +201,7 @@ export declare type PayLaterCCInfo = {
|
|
|
200
201
|
paymentMethodStatusLabel?: string;
|
|
201
202
|
};
|
|
202
203
|
declare type PayLaterMethod = MethodBase & {
|
|
203
|
-
paymentMethodType:
|
|
204
|
+
paymentMethodType: 'PAY_LATER';
|
|
204
205
|
};
|
|
205
206
|
export declare type ResponseBase = {
|
|
206
207
|
status: number;
|
|
@@ -62,7 +62,10 @@ export declare enum MiniAppErrorType {
|
|
|
62
62
|
noLocationData = "NO_LOCATION_DATA",
|
|
63
63
|
functionNotFound = "FUNCTION_NOT_FOUND",
|
|
64
64
|
originNotAllowed = "ORIGIN_NOT_ALLOWED",
|
|
65
|
-
messageSendingFailed = "MESSAGE_SENDING_FAILED"
|
|
65
|
+
messageSendingFailed = "MESSAGE_SENDING_FAILED",
|
|
66
|
+
transactionNotFound = "TRANSACTION_NOT_FOUND",
|
|
67
|
+
unexpectedOperation = "UNEXPECTED_OP",
|
|
68
|
+
merchantTimeout = "MERCHANT_TIMEOUT"
|
|
66
69
|
}
|
|
67
70
|
export declare class MiniAppError extends Error {
|
|
68
71
|
constructor(type: MiniAppErrorType);
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
granted = "GRANTED",
|
|
3
|
-
denied = "DENIED"
|
|
4
|
-
}
|
|
5
|
-
export declare const PermissionName: {
|
|
6
|
-
mini_app_payment_balance: string;
|
|
7
|
-
mini_app_device_info: string;
|
|
8
|
-
mini_app_user_contacts: string;
|
|
9
|
-
mini_app_device_battery: string;
|
|
10
|
-
mini_app_kyc: string;
|
|
11
|
-
mini_app_user_location: string;
|
|
12
|
-
mini_app_check_payment_method: string;
|
|
13
|
-
cashback: string;
|
|
14
|
-
bank_registration: string;
|
|
15
|
-
mini_app_user_email_address: string;
|
|
16
|
-
mini_app_user_address: string;
|
|
17
|
-
mini_app_user_phone_camera: string;
|
|
18
|
-
mini_app_user_phone_album: string;
|
|
19
|
-
mini_app_bank_information: string;
|
|
20
|
-
mini_app_cashback_information: string;
|
|
21
|
-
};
|
|
1
|
+
import { PermissionNameType, PermissionStatus } from '../types/getPermissionStatus';
|
|
22
2
|
export declare const checkPermission: (permissionNames: string[] | string) => Promise<PermissionStatus>;
|
|
23
|
-
export declare function getUserGrantedPermission(): Promise<
|
|
3
|
+
export declare function getUserGrantedPermission(): Promise<PermissionNameType[]>;
|
|
@@ -81,12 +81,12 @@ export declare const PButton: import("vue").DefineComponent<{
|
|
|
81
81
|
onClick?: (() => any) | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
type: ButtonType;
|
|
84
|
-
name: string;
|
|
85
|
-
loading: boolean;
|
|
86
84
|
class: string | Record<string, any>;
|
|
85
|
+
loading: boolean;
|
|
86
|
+
name: string;
|
|
87
|
+
size: ButtonSize;
|
|
87
88
|
disabled: boolean;
|
|
88
89
|
block: boolean;
|
|
89
|
-
size: ButtonSize;
|
|
90
90
|
tabIndex: number;
|
|
91
91
|
disabledClassName: string;
|
|
92
92
|
noMargin: boolean;
|
package/dist/resources/en.d.ts
CHANGED
package/dist/resources/ja.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { PaymentMethodNameType } from '../model/makePayment';
|
|
3
|
+
export declare const AvailableCheckPaymentMethod: {
|
|
4
|
+
readonly acquiring: "ACQUIRING";
|
|
5
|
+
readonly topup: "TOPUP";
|
|
6
|
+
readonly preAuth: "PRE_AUTH";
|
|
7
|
+
readonly cashout: "CASHOUT";
|
|
8
|
+
};
|
|
9
|
+
export declare type AvailableCheckPaymentMethodType = (typeof AvailableCheckPaymentMethod)[keyof typeof AvailableCheckPaymentMethod];
|
|
10
|
+
export interface CheckPaymentMethodParams extends NativeParams<CheckPaymentMethodResult> {
|
|
11
|
+
type: AvailableCheckPaymentMethodType;
|
|
12
|
+
methodType: PaymentMethodNameType;
|
|
13
|
+
bankCode?: string;
|
|
14
|
+
merchant?: string;
|
|
15
|
+
productType?: string;
|
|
16
|
+
sourceInfoApp?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare type CheckPaymentMethodResult = {
|
|
19
|
+
status: 'AVAILABLE' | 'UNAVAILABLE';
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
import { MiniAppErrorResultType } from '../types';
|
|
3
|
+
export interface GetAuthStatusClientParams extends NativeParams<GetAuthStatusResult, AuthStatusFailResult> {
|
|
4
|
+
isInternal?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface GetAuthStatusParams extends NativeParams<GetAuthStatusResult, AuthStatusFailResult> {
|
|
7
|
+
isInternal?: boolean;
|
|
8
|
+
clientOrigin: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum ChallengeMethod {
|
|
11
|
+
S256 = "S256"
|
|
12
|
+
}
|
|
13
|
+
export interface PKCEChallengeType {
|
|
14
|
+
challenge: string;
|
|
15
|
+
challengeMethod: ChallengeMethod;
|
|
16
|
+
}
|
|
17
|
+
export interface AuthStatusFailResult extends MiniAppErrorResultType {
|
|
18
|
+
code: PKCEChallengeType | null;
|
|
19
|
+
}
|
|
20
|
+
export declare type GetAuthStatusResult = {
|
|
21
|
+
statusCode: 'CONNECTED';
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
+
export declare type BalanceType = {
|
|
3
|
+
unsigned: {
|
|
4
|
+
resultInfo: {
|
|
5
|
+
code: string;
|
|
6
|
+
};
|
|
7
|
+
data: {
|
|
8
|
+
totalBalance: {
|
|
9
|
+
amount: number;
|
|
10
|
+
};
|
|
11
|
+
details: {
|
|
12
|
+
money: number;
|
|
13
|
+
moneyLite: number;
|
|
14
|
+
point: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export interface GetBalanceParams extends NativeParams<GetBalanceResult> {
|
|
20
|
+
productType?: string;
|
|
21
|
+
merchant?: string;
|
|
22
|
+
sourceInfoApp?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare type GetBalanceResult = {
|
|
25
|
+
balance: number;
|
|
26
|
+
details: {
|
|
27
|
+
money: number;
|
|
28
|
+
moneyLite: number;
|
|
29
|
+
point: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OPAErrorCodes } from '../model/OPAErrorCodes';
|
|
2
|
+
export declare type GetBankInfoResult = {
|
|
3
|
+
payoutMethodId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type PayoutMethod = {
|
|
6
|
+
bankAccountType: string;
|
|
7
|
+
bankBranchCode: string;
|
|
8
|
+
bankBranchName: string;
|
|
9
|
+
bankCode: string;
|
|
10
|
+
bankLogoUrl: string;
|
|
11
|
+
bankName: string;
|
|
12
|
+
maskedAccountNumber: string;
|
|
13
|
+
payoutMethodId: string;
|
|
14
|
+
};
|
|
15
|
+
declare type ResponseBase = {
|
|
16
|
+
signed?: {
|
|
17
|
+
jws?: string;
|
|
18
|
+
};
|
|
19
|
+
unsigned?: {
|
|
20
|
+
resultInfo?: {
|
|
21
|
+
code: OPAErrorCodes;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare type GetPayoutMethods = ResponseBase & {
|
|
26
|
+
unsigned: {
|
|
27
|
+
data: {
|
|
28
|
+
payoutMethods: PayoutMethod[];
|
|
29
|
+
} | null;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -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
|
+
};
|