@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.
Files changed (103) hide show
  1. package/dist/client/index.d.ts +6 -5
  2. package/dist/client/supportedFunctionsList.d.ts +1 -1
  3. package/dist/composition-api/useGetUserAddress.d.ts +1 -1
  4. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  5. package/dist/composition-api/useKycPassport.d.ts +1 -1
  6. package/dist/composition-api/useMakePayment.d.ts +1 -1
  7. package/dist/composition-api/useRegisterEmail.d.ts +2 -1
  8. package/dist/composition-api/useShowUpdateWarning.d.ts +1 -1
  9. package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +2 -2
  10. package/dist/composition-api/useTopup.d.ts +1 -1
  11. package/dist/core/coreFunctions/claimCoupon.d.ts +1 -0
  12. package/dist/core/coreFunctions/fetchCoupons.d.ts +3 -2
  13. package/dist/core/coreFunctions/getPaymentSettings.d.ts +1 -1
  14. package/dist/core/coreFunctions/logEvent.d.ts +2 -1
  15. package/dist/core/coreUtils.d.ts +4 -3
  16. package/dist/core/coupon/couponFunctions/renderCoupons.d.ts +2 -2
  17. package/dist/core/sentry.d.ts +6 -0
  18. package/dist/environment-variables.d.ts +5 -0
  19. package/dist/mini-app-api.d.ts +29 -7
  20. package/dist/mini-app-js-sdk.browser.js +1 -1
  21. package/dist/mini-app-js-sdk.es.js +1659 -5831
  22. package/dist/model/OPAErrorCodes.d.ts +4 -0
  23. package/dist/model/bridge/checkAccessToken.d.ts +4 -2
  24. package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
  25. package/dist/model/bridge/getAuthStatus.d.ts +3 -2
  26. package/dist/model/bridge/getBalance.d.ts +1 -1
  27. package/dist/model/bridge/getBankInfo.d.ts +2 -2
  28. package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
  29. package/dist/model/bridge/getKycInformation.d.ts +1 -1
  30. package/dist/model/bridge/getKycPassportInfo.d.ts +1 -1
  31. package/dist/model/bridge/getLoginUrl.d.ts +4 -3
  32. package/dist/model/bridge/getPayPayCardInfo.d.ts +3 -0
  33. package/dist/model/bridge/getPermissionStatus.d.ts +1 -1
  34. package/dist/model/bridge/getPlatformInformation.d.ts +2 -2
  35. package/dist/model/bridge/getTopBarHeight.d.ts +2 -2
  36. package/dist/model/bridge/getTransactionInfo.d.ts +1 -1
  37. package/dist/model/bridge/getTransactions.d.ts +1 -1
  38. package/dist/model/bridge/getUAID.d.ts +2 -2
  39. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  40. package/dist/model/bridge/getUserLocation.d.ts +1 -1
  41. package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +1 -1
  42. package/dist/model/bridge/getUserProfile.d.ts +2 -2
  43. package/dist/model/bridge/init.d.ts +3 -2
  44. package/dist/model/bridge/initKycPassport.d.ts +1 -1
  45. package/dist/model/bridge/inputAddress.d.ts +1 -1
  46. package/dist/model/bridge/logout.d.ts +2 -2
  47. package/dist/model/bridge/makePayment.d.ts +1 -1
  48. package/dist/model/bridge/openWebview.d.ts +1 -1
  49. package/dist/model/bridge/registerEmail.d.ts +2 -1
  50. package/dist/model/bridge/registerKyc.d.ts +1 -1
  51. package/dist/model/bridge/render.d.ts +2 -3
  52. package/dist/model/bridge/renderLoginButton.d.ts +2 -2
  53. package/dist/model/bridge/renderPayButton.d.ts +2 -2
  54. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  55. package/dist/model/bridge/startMultiFactorAuth.d.ts +1 -1
  56. package/dist/model/bridge/topup.d.ts +1 -1
  57. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
  58. package/dist/model/makePayment.d.ts +18 -17
  59. package/dist/model/miniAppError.d.ts +2 -1
  60. package/dist/model/permission.d.ts +2 -23
  61. package/dist/package/button/index.d.ts +2 -2
  62. package/dist/package/lottie/index.d.ts +1 -72
  63. package/dist/resources/en.d.ts +2 -0
  64. package/dist/resources/ja.d.ts +2 -0
  65. package/dist/types/checkPaymentMethod.d.ts +20 -0
  66. package/dist/types/getAuthStatus.d.ts +18 -0
  67. package/dist/types/getBalance.d.ts +31 -0
  68. package/dist/types/getBankInfo.d.ts +32 -0
  69. package/dist/types/getDeviceInformation.d.ts +3 -0
  70. package/dist/types/getKycInformation.d.ts +50 -0
  71. package/dist/types/getKycPassportInfo.d.ts +21 -0
  72. package/dist/types/getPermissionStatus.d.ts +68 -0
  73. package/dist/types/getPlatformInformation.d.ts +7 -0
  74. package/dist/types/getTopBarHeight.d.ts +3 -0
  75. package/dist/types/getTransactionInfo.d.ts +32 -0
  76. package/dist/types/getTransactions.d.ts +16 -0
  77. package/dist/types/getUAID.d.ts +3 -0
  78. package/dist/types/getUserAddress.d.ts +39 -0
  79. package/dist/types/getUserLocation.d.ts +13 -0
  80. package/dist/types/getUserPaymentFeatureSettings.d.ts +16 -0
  81. package/dist/types/getUserProfile.d.ts +25 -0
  82. package/dist/types/init.d.ts +40 -0
  83. package/dist/types/initKycPassport.d.ts +12 -0
  84. package/dist/types/logout.d.ts +3 -0
  85. package/dist/types/makePayment.d.ts +46 -0
  86. package/dist/types/openWebview.d.ts +11 -0
  87. package/dist/types/registerEmail.d.ts +5 -0
  88. package/dist/types/registerKycParams.d.ts +8 -0
  89. package/dist/types/showUpdateWarning.d.ts +12 -0
  90. package/dist/types/startMultiFactorAuth.d.ts +10 -0
  91. package/dist/types/topup.d.ts +18 -0
  92. package/dist/types/verifyMultiFactorAuthResult.d.ts +15 -0
  93. package/dist/types.d.ts +13 -230
  94. package/dist/utils/analytics.d.ts +10 -2
  95. package/dist/utils/api.d.ts +7 -12
  96. package/dist/utils/getLanguage.d.ts +2 -0
  97. package/dist/utils/helper.d.ts +1 -1
  98. package/dist/utils/storage.d.ts +3 -2
  99. package/dist/views/coupon/index.d.ts +8 -0
  100. package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
  101. package/package.json +4 -2
  102. package/dist/composition-api/useRenderSmartButton.d.ts +0 -3
  103. package/dist/model/bridge/index.d.ts +0 -47
@@ -0,0 +1,4 @@
1
+ export declare enum OPAErrorCodes {
2
+ noKycUser = "NO_KYC_USER",
3
+ noPayoutMethod = "PAYMENT_NOT_FOUND"
4
+ }
@@ -1,3 +1,5 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function checkAccessToken(params: NativeParams<MiniAppResult>): void;
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,3 @@
1
- import { GetAuthStatusParams } from '../../types';
2
- export declare function getAuthStatus(params: GetAuthStatusParams): Promise<void>;
1
+ import { GetAuthStatusParams } from '../../types/getAuthStatus';
2
+ import { MiniAppFunctionContext } from '../../types';
3
+ export declare function getAuthStatus(params: GetAuthStatusParams, context: MiniAppFunctionContext): 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 { MiniAppResult } from '../../types';
3
- export declare function getBankInfo(params: NativeParams<MiniAppResult>): void;
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 { MiniAppResult } from '../../types';
3
- export declare function getDeviceInformation(params: NativeParams<MiniAppResult>): void;
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,10 +1,11 @@
1
- import { PKCEChallengeType, PostLogInRedirectParams } from '../../types';
1
+ import { MiniAppFunctionContext, PostLogInRedirectParams } from '../../types';
2
+ import { PKCEChallengeType } from '../../types/getAuthStatus';
2
3
  interface GetLoginUrlParams extends PostLogInRedirectParams {
3
4
  pkceCodeChallenge: PKCEChallengeType;
4
5
  scopes?: Array<string>;
5
6
  }
6
7
  export declare const getLoginUrlEndpoint = "public/auth/v1/loginUrl";
7
8
  export declare function getLoginUrl({ pkceCodeChallenge, postLoginRedirectUrl, postLoginRedirectType, scopes, }: GetLoginUrlParams): Promise<string>;
8
- export declare function getLoginUrlWithPkce(params: Omit<GetLoginUrlParams, 'pkceCodeChallenge'>): Promise<string>;
9
- export declare function getLoginUrlIfUserNotSignedIn(params: Omit<GetLoginUrlParams, 'pkceCodeChallenge'>): Promise<string | undefined>;
9
+ export declare function getLoginUrlWithPkce(params: Omit<GetLoginUrlParams, 'pkceCodeChallenge'>, clientOrigin: string): Promise<string>;
10
+ export declare function getLoginUrlIfUserNotSignedIn(params: Omit<GetLoginUrlParams, 'pkceCodeChallenge'>, context: MiniAppFunctionContext): Promise<string | undefined>;
10
11
  export {};
@@ -0,0 +1,3 @@
1
+ import { MiniAppResult } from '../../types';
2
+ import { NativeParams } from '../../jsbridge-core/jsbridge';
3
+ export declare function getPayPayCardInfo(params: NativeParams<MiniAppResult>): Promise<void>;
@@ -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 { MiniAppResult } from '../../types';
3
- export declare function getPlatformInformation(params: NativeParams<MiniAppResult>): Promise<void>;
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 { MiniAppResult } from '../../types';
3
- export declare function getTopBarHeight(params: NativeParams<MiniAppResult>): void;
2
+ import { GetTopBarHeightResult } from '../../types/getTopBarHeight';
3
+ export declare function getTopBarHeight(params: NativeParams<GetTopBarHeightResult>): void;
@@ -1,2 +1,2 @@
1
- import { GetTransactionInfoParams } from '../../types';
1
+ import { GetTransactionInfoParams } from '../../types/getTransactionInfo';
2
2
  export declare function getTransactionInfo(params: GetTransactionInfoParams): Promise<void | undefined>;
@@ -1,2 +1,2 @@
1
- import { GetTransactionsParams } from '../../types';
1
+ import { GetTransactionsParams } from '../../types/getTransactions';
2
2
  export declare function getTransactions(params: GetTransactionsParams): Promise<void | undefined>;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function getUAID(params: NativeParams<MiniAppResult>): void;
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 { MiniAppResult } from '../../types';
3
- export declare function getUserProfile(params: NativeParams<MiniAppResult>): Promise<void>;
2
+ import { GetUserProfileResult } from '../../types/getUserProfile';
3
+ export declare function getUserProfile(params: NativeParams<GetUserProfileResult>): Promise<void>;
@@ -1,2 +1,3 @@
1
- import { InitParams } from '../../types';
2
- export declare function init(params: InitParams): Promise<void>;
1
+ import { InitParams } from '../../types/init';
2
+ import { MiniAppFunctionContext } from '../../types';
3
+ export declare function init(params: InitParams, context: MiniAppFunctionContext): 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 { MiniAppResult } from '../../types';
3
- export declare function logout(params: NativeParams<MiniAppResult>): void;
2
+ import { LogoutResult } from '../../types/logout';
3
+ export declare function logout(params: NativeParams<LogoutResult>): void;
@@ -1,2 +1,2 @@
1
- import { MakePaymentParams } from '../../types';
1
+ import { MakePaymentParams } from '../../types/makePayment';
2
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
- export declare function registerEmail(params: NativeParams<unknown>, allowsUpdate?: boolean): void;
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,6 +1,5 @@
1
- import { RenderSmartButtonParams } from '../../types';
2
- export declare function getRenderButtonInfo(params: RenderSmartButtonParams): Promise<{
1
+ import { MiniAppFunctionContext, RenderSmartButtonParams } from '../../types';
2
+ export declare function getRenderButtonInfo(params: RenderSmartButtonParams, context: MiniAppFunctionContext): Promise<{
3
3
  data: import('../../types').SmartButtonParam;
4
4
  preferredLanguage: string;
5
5
  }>;
6
- export declare function render(params: RenderSmartButtonParams): void;
@@ -1,5 +1,5 @@
1
- import { RenderSmartButtonParams, SmartButtonParam } from '../../types';
2
- export declare function getRenderLoginInfo(params: RenderSmartButtonParams): Promise<{
1
+ import { MiniAppFunctionContext, RenderSmartButtonParams, SmartButtonParam } from '../../types';
2
+ export declare function getRenderLoginInfo(params: RenderSmartButtonParams, context: MiniAppFunctionContext): Promise<{
3
3
  data: SmartButtonParam;
4
4
  preferredLanguage: string;
5
5
  }>;
@@ -1,5 +1,5 @@
1
- import { RenderSmartButtonParams, SmartButtonParam } from '../../types';
2
- export declare function getRenderPayInfo(params: RenderSmartButtonParams): Promise<{
1
+ import { MiniAppFunctionContext, RenderSmartButtonParams, SmartButtonParam } from '../../types';
2
+ export declare function getRenderPayInfo(params: RenderSmartButtonParams, context: MiniAppFunctionContext): Promise<{
3
3
  renderParams: RenderSmartButtonParams;
4
4
  data: SmartButtonParam;
5
5
  preferredLanguage: string;
@@ -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 enum PaymentMethodType {
39
- WALLET = "WALLET",
40
- CREDIT_CARD = "CREDIT_CARD",
41
- BANK = "BANK",
42
- YMONEY_BANK = "YMONEY_BANK",
43
- SBID_CARRIER_BILLING = "SBID_CARRIER_BILLING",
44
- PAY_LATER = "PAY_LATER",
45
- PAY_LATER_CC = "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: 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: PaymentMethodType.WALLET;
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: PaymentMethodType.CREDIT_CARD;
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: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
183
+ paymentMethodType: 'BANK' | 'YMONEY_BANK';
183
184
  bankInfo?: BankInfo;
184
185
  };
185
186
  export declare type SbidBankMethod = MethodBase & {
186
- paymentMethodType: PaymentMethodType.SBID_CARRIER_BILLING;
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: PaymentMethodType.PAY_LATER_CC;
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: PaymentMethodType.PAY_LATER;
204
+ paymentMethodType: 'PAY_LATER';
204
205
  };
205
206
  export declare type ResponseBase = {
206
207
  status: number;
@@ -64,7 +64,8 @@ export declare enum MiniAppErrorType {
64
64
  originNotAllowed = "ORIGIN_NOT_ALLOWED",
65
65
  messageSendingFailed = "MESSAGE_SENDING_FAILED",
66
66
  transactionNotFound = "TRANSACTION_NOT_FOUND",
67
- unexpectedOperation = "UNEXPECTED_OP"
67
+ unexpectedOperation = "UNEXPECTED_OP",
68
+ merchantTimeout = "MERCHANT_TIMEOUT"
68
69
  }
69
70
  export declare class MiniAppError extends Error {
70
71
  constructor(type: MiniAppErrorType);
@@ -1,24 +1,3 @@
1
- export declare enum PermissionStatus {
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
- mini_app_transaction: string;
22
- };
1
+ import { PermissionNameType, PermissionStatus } from '../types/getPermissionStatus';
23
2
  export declare const checkPermission: (permissionNames: string[] | string) => Promise<PermissionStatus>;
24
- export declare function getUserGrantedPermission(): Promise<string[]>;
3
+ export declare function getUserGrantedPermission(): Promise<PermissionNameType[]>;
@@ -81,10 +81,10 @@ export declare const PButton: import("vue").DefineComponent<{
81
81
  onClick?: (() => any) | undefined;
82
82
  }, {
83
83
  type: ButtonType;
84
- name: string;
85
- size: ButtonSize;
86
84
  class: string | Record<string, any>;
87
85
  loading: boolean;
86
+ name: string;
87
+ size: ButtonSize;
88
88
  disabled: boolean;
89
89
  block: boolean;
90
90
  tabIndex: number;
@@ -1,73 +1,2 @@
1
- declare const Lottie: import("vue").DefineComponent<{
2
- loop: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- autoplay: {
7
- type: BooleanConstructor;
8
- default: boolean;
9
- };
10
- path: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- styles: {
15
- type: ObjectConstructor;
16
- default: () => {
17
- width: string;
18
- height: string;
19
- };
20
- };
21
- className: {
22
- type: StringConstructor;
23
- default: string;
24
- required: false;
25
- };
26
- type: {
27
- type: import("vue").PropType<import("../../types").RenderType>;
28
- default: import("../../types").RenderType;
29
- required: false;
30
- };
31
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
- 'create-lottie': (_p: import("lottie-web").AnimationItem) => true;
33
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
- loop: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- autoplay: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
42
- path: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- styles: {
47
- type: ObjectConstructor;
48
- default: () => {
49
- width: string;
50
- height: string;
51
- };
52
- };
53
- className: {
54
- type: StringConstructor;
55
- default: string;
56
- required: false;
57
- };
58
- type: {
59
- type: import("vue").PropType<import("../../types").RenderType>;
60
- default: import("../../types").RenderType;
61
- required: false;
62
- };
63
- }>> & {
64
- "onCreate-lottie"?: ((_p: import("lottie-web").AnimationItem) => any) | undefined;
65
- }, {
66
- path: string;
67
- type: import("../../types").RenderType;
68
- loop: boolean;
69
- autoplay: boolean;
70
- styles: Record<string, any>;
71
- className: string;
72
- }>;
1
+ import Lottie from './lottie';
73
2
  export default Lottie;
@@ -199,6 +199,8 @@ export declare const en: {
199
199
  topupDesc: string;
200
200
  pay: string;
201
201
  payDesc: string;
202
+ payPeriod: string;
203
+ tryAgain: string;
202
204
  };
203
205
  paymentMethod: {
204
206
  expired: string;
@@ -204,6 +204,8 @@ export declare const ja: {
204
204
  topupDesc: string;
205
205
  pay: string;
206
206
  payDesc: string;
207
+ payPeriod: string;
208
+ tryAgain: string;
207
209
  };
208
210
  paymentMethod: {
209
211
  expired: string;
@@ -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,18 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { MiniAppErrorResultType } from '../types';
3
+ export interface GetAuthStatusParams extends NativeParams<GetAuthStatusResult, AuthStatusFailResult> {
4
+ isInternal?: boolean;
5
+ }
6
+ export declare enum ChallengeMethod {
7
+ S256 = "S256"
8
+ }
9
+ export interface PKCEChallengeType {
10
+ challenge: string;
11
+ challengeMethod: ChallengeMethod;
12
+ }
13
+ export interface AuthStatusFailResult extends MiniAppErrorResultType {
14
+ code: PKCEChallengeType | null;
15
+ }
16
+ export declare type GetAuthStatusResult = {
17
+ statusCode: 'CONNECTED';
18
+ };
@@ -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,3 @@
1
+ export declare type GetDeviceInformationResult = {
2
+ os: string;
3
+ };