@paypay/mini-app-js-sdk 2.51.0 → 2.55.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 (52) hide show
  1. package/dist/client/clientUtils.d.ts +0 -3
  2. package/dist/client/communicationWithCore.d.ts +2 -1
  3. package/dist/client/functions/coreWindowBridgeFunctions.d.ts +5 -0
  4. package/dist/client/supportedFunctionsList.d.ts +1 -1
  5. package/dist/client/windowBridgeFunctions/domFunctions.d.ts +7 -0
  6. package/dist/client/windowBridgeFunctions/index.d.ts +2 -0
  7. package/dist/client/windowBridgeFunctions/insertIframe.d.ts +11 -0
  8. package/dist/composition-api/useMakePayment.d.ts +1 -1
  9. package/dist/composition-api/usePaymentLabel.d.ts +27 -0
  10. package/dist/composition-api/usePaymentTypeTranslation.d.ts +19 -0
  11. package/dist/core/button/buttonFunctions/index.d.ts +1 -0
  12. package/dist/core/button/buttonFunctions/renderButtonUi.d.ts +17 -0
  13. package/dist/core/button/index.d.ts +3 -0
  14. package/dist/core/clientState.d.ts +3 -1
  15. package/dist/core/coreFunctions/index.d.ts +2 -0
  16. package/dist/core/coreFunctions/renderButton/index.d.ts +8 -0
  17. package/dist/core/coreFunctions/renderButton/renderButton.d.ts +6 -0
  18. package/dist/core/coreFunctions/renderButton/types.d.ts +31 -0
  19. package/dist/core/iframeVisibilityManager.d.ts +15 -0
  20. package/dist/environment-variables.d.ts +2 -0
  21. package/dist/mini-app-api.d.ts +0 -1
  22. package/dist/mini-app-js-sdk.browser.js +1 -1
  23. package/dist/mini-app-js-sdk.es.js +407 -2257
  24. package/dist/model/bridge/render.d.ts +1 -1
  25. package/dist/model/bridge/renderLoginButton.d.ts +1 -1
  26. package/dist/model/bridge/renderPayButton.d.ts +4 -2
  27. package/dist/model/makePayment.d.ts +18 -0
  28. package/dist/package/lottie/lottie.d.ts +1 -1
  29. package/dist/resources/images.d.ts +1 -0
  30. package/dist/resources/locales/payment/index.d.ts +499 -0
  31. package/dist/resources/locales/payment/ja.d.ts +249 -0
  32. package/dist/resources/locales/shared/index.d.ts +79 -0
  33. package/dist/resources/locales/shared/ja.d.ts +39 -0
  34. package/dist/types/getTransactions.d.ts +5 -0
  35. package/dist/types/init.d.ts +2 -0
  36. package/dist/types/makePayment.d.ts +5 -8
  37. package/dist/types.d.ts +4 -7
  38. package/dist/utils/analytics.d.ts +2 -1
  39. package/dist/utils/api.d.ts +19 -76
  40. package/dist/utils/clientCustomization.d.ts +3 -0
  41. package/dist/utils/getLanguage.d.ts +1 -2
  42. package/dist/utils/helper.d.ts +8 -5
  43. package/dist/utils/minimumJSSDKVersion.d.ts +1 -0
  44. package/dist/utils/userAgent.d.ts +1 -0
  45. package/dist/utils/windowBridge.d.ts +15 -2
  46. package/dist/views/coupon/components/CouponAction/index.d.ts +2 -0
  47. package/dist/views/coupon/index.d.ts +2 -0
  48. package/dist/views/make-payment/store/util-for-handle-error.d.ts +11 -0
  49. package/dist/views/make-payment/store.d.ts +22056 -0
  50. package/dist/views/make-payment/utils/paymentMethod.d.ts +4 -0
  51. package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
  52. package/package.json +1 -1
@@ -0,0 +1,249 @@
1
+ declare const _default: {
2
+ payment: {
3
+ address: string;
4
+ insufficientAmount: string;
5
+ cancel: string;
6
+ noAddress: string;
7
+ change: string;
8
+ close: string;
9
+ noCashBack: string;
10
+ transactionId: string;
11
+ ppPointGuideMessage: string;
12
+ };
13
+ duplicate: {
14
+ cancel: string;
15
+ topHeader: string;
16
+ topText1: string;
17
+ topText2: string;
18
+ topAgreeButtonText: string;
19
+ };
20
+ birthdayConfirm: {
21
+ title: string;
22
+ title2: string;
23
+ desc: string;
24
+ desc1: string;
25
+ desc2: string;
26
+ desc3: string;
27
+ date: string;
28
+ primaryBtn: string;
29
+ cancelBtn: string;
30
+ };
31
+ birthdayConfirmError: {
32
+ title: string;
33
+ title2: string;
34
+ desc: string;
35
+ desc2: string;
36
+ helpBtn: string;
37
+ closeBtn: string;
38
+ };
39
+ cashbackDet: {
40
+ button1: string;
41
+ button2: string;
42
+ button3: string;
43
+ };
44
+ topContent: {
45
+ chargeTitle: string;
46
+ chargeLabel: string;
47
+ unavailable1: string;
48
+ unavailable2: string;
49
+ topupNotice: string;
50
+ topupLink: string;
51
+ return: string;
52
+ };
53
+ cashbackList: {
54
+ close: string;
55
+ condition: string;
56
+ };
57
+ newOffersBanner: {
58
+ title: string;
59
+ description: string;
60
+ };
61
+ ekyc: {
62
+ title: string;
63
+ link: string;
64
+ button1: string;
65
+ button2: string;
66
+ };
67
+ qr: {
68
+ titleEKYC: string;
69
+ bodyEKYC: string;
70
+ titleAddTopup: string;
71
+ bodyAddTopup: string;
72
+ close: string;
73
+ };
74
+ type: {
75
+ payment: {
76
+ title: string;
77
+ payAmount: string;
78
+ payAmountTaxExempt: string;
79
+ method: string;
80
+ selectMethod: string;
81
+ paying: string;
82
+ pay: string;
83
+ charge: string;
84
+ notice: string;
85
+ terms: null;
86
+ payLaterCCTerms: null;
87
+ duplicate: {
88
+ header: string;
89
+ text1: string;
90
+ text2: string;
91
+ agreeButtonText: string;
92
+ };
93
+ topContent: {
94
+ title: string;
95
+ loading: string;
96
+ amount: string;
97
+ };
98
+ desktopTitle: {
99
+ Payment: string;
100
+ paymentCompletion: string;
101
+ };
102
+ errorSheet: {
103
+ payPeriod: string;
104
+ };
105
+ ekyc: {
106
+ description: string;
107
+ };
108
+ complete: {
109
+ title: string;
110
+ titlePreAuth: string;
111
+ };
112
+ closeConfirmation: {
113
+ title: string;
114
+ confirm: string;
115
+ cancel: string;
116
+ };
117
+ };
118
+ donation: {
119
+ title: string;
120
+ payAmount: string;
121
+ payAmountTaxExempt: string;
122
+ method: string;
123
+ selectMethod: string;
124
+ paying: string;
125
+ pay: string;
126
+ charge: string;
127
+ notice: string;
128
+ terms: string[];
129
+ payLaterCCTerms: string[];
130
+ duplicate: {
131
+ header: string;
132
+ text1: string;
133
+ text2: string;
134
+ agreeButtonText: string;
135
+ };
136
+ topContent: {
137
+ title: string;
138
+ loading: string;
139
+ amount: string;
140
+ };
141
+ desktopTitle: {
142
+ Payment: string;
143
+ paymentCompletion: string;
144
+ };
145
+ errorSheet: {
146
+ payPeriod: string;
147
+ };
148
+ ekyc: {
149
+ description: string;
150
+ };
151
+ complete: {
152
+ title: string;
153
+ titlePreAuth: string;
154
+ };
155
+ closeConfirmation: {
156
+ title: string;
157
+ confirm: string;
158
+ cancel: string;
159
+ };
160
+ };
161
+ remittance: {
162
+ title: string;
163
+ payAmount: string;
164
+ payAmountTaxExempt: string;
165
+ method: string;
166
+ selectMethod: string;
167
+ paying: string;
168
+ pay: string;
169
+ charge: string;
170
+ notice: string;
171
+ terms: string[];
172
+ payLaterCCTerms: string[];
173
+ duplicate: {
174
+ header: string;
175
+ text1: string;
176
+ text2: string;
177
+ agreeButtonText: string;
178
+ };
179
+ topContent: {
180
+ title: string;
181
+ loading: string;
182
+ amount: string;
183
+ };
184
+ desktopTitle: {
185
+ Payment: string;
186
+ paymentCompletion: string;
187
+ };
188
+ errorSheet: {
189
+ payPeriod: string;
190
+ };
191
+ ekyc: {
192
+ description: string;
193
+ };
194
+ complete: {
195
+ title: string;
196
+ titlePreAuth: string;
197
+ };
198
+ closeConfirmation: {
199
+ title: string;
200
+ confirm: string;
201
+ cancel: string;
202
+ };
203
+ };
204
+ deposit: {
205
+ title: string;
206
+ payAmount: string;
207
+ payAmountTaxExempt: string;
208
+ method: string;
209
+ selectMethod: string;
210
+ paying: string;
211
+ pay: string;
212
+ charge: string;
213
+ notice: string;
214
+ terms: string[];
215
+ payLaterCCTerms: null;
216
+ duplicate: {
217
+ header: string;
218
+ text1: string;
219
+ text2: string;
220
+ agreeButtonText: string;
221
+ };
222
+ topContent: {
223
+ title: string;
224
+ loading: string;
225
+ amount: string;
226
+ };
227
+ desktopTitle: {
228
+ Payment: string;
229
+ paymentCompletion: string;
230
+ };
231
+ errorSheet: {
232
+ payPeriod: string;
233
+ };
234
+ ekyc: {
235
+ description: string;
236
+ };
237
+ complete: {
238
+ title: string;
239
+ titlePreAuth: string;
240
+ };
241
+ closeConfirmation: {
242
+ title: string;
243
+ confirm: string;
244
+ cancel: string;
245
+ };
246
+ };
247
+ };
248
+ };
249
+ export default _default;
@@ -0,0 +1,79 @@
1
+ declare const _default: {
2
+ ja: {
3
+ desktopTitle: {
4
+ addNewAddress: string;
5
+ editAddress: string;
6
+ paymentCompletion: string;
7
+ getUserAddress: string;
8
+ };
9
+ choosePayment: {
10
+ title: string;
11
+ desc1: string;
12
+ desc2: string;
13
+ addMethod: string;
14
+ noMethod: string;
15
+ };
16
+ errorSheet: {
17
+ title: string;
18
+ title1: string;
19
+ desc: string;
20
+ topup: string;
21
+ topupDesc: string;
22
+ pay: string;
23
+ payDesc: string;
24
+ tryAgain: string;
25
+ };
26
+ softbank: {
27
+ desc: string;
28
+ desc1: string;
29
+ isDisable: string;
30
+ };
31
+ '3dSecureSheet': {
32
+ title: string;
33
+ descriptionForYJCardOrPPCard: string;
34
+ description: string;
35
+ setting3DSecure: string;
36
+ about3DSecure: string;
37
+ close: string;
38
+ };
39
+ };
40
+ en: {
41
+ desktopTitle: {
42
+ addNewAddress: string;
43
+ editAddress: string;
44
+ paymentCompletion: string;
45
+ getUserAddress: string;
46
+ };
47
+ choosePayment: {
48
+ title: string;
49
+ desc1: string;
50
+ desc2: string;
51
+ addMethod: string;
52
+ noMethod: string;
53
+ };
54
+ errorSheet: {
55
+ title: string;
56
+ title1: string;
57
+ desc: string;
58
+ topup: string;
59
+ topupDesc: string;
60
+ pay: string;
61
+ payDesc: string;
62
+ tryAgain: string;
63
+ };
64
+ softbank: {
65
+ desc: string;
66
+ desc1: string;
67
+ isDisable: string;
68
+ };
69
+ '3dSecureSheet': {
70
+ title: string;
71
+ descriptionForYJCardOrPPCard: string;
72
+ description: string;
73
+ setting3DSecure: string;
74
+ about3DSecure: string;
75
+ close: string;
76
+ };
77
+ };
78
+ };
79
+ export default _default;
@@ -0,0 +1,39 @@
1
+ declare const _default: {
2
+ desktopTitle: {
3
+ addNewAddress: string;
4
+ editAddress: string;
5
+ paymentCompletion: string;
6
+ getUserAddress: string;
7
+ };
8
+ choosePayment: {
9
+ title: string;
10
+ desc1: string;
11
+ desc2: string;
12
+ addMethod: string;
13
+ noMethod: string;
14
+ };
15
+ errorSheet: {
16
+ title: string;
17
+ title1: string;
18
+ desc: string;
19
+ topup: string;
20
+ topupDesc: string;
21
+ pay: string;
22
+ payDesc: string;
23
+ tryAgain: string;
24
+ };
25
+ softbank: {
26
+ desc: string;
27
+ desc1: string;
28
+ isDisable: string;
29
+ };
30
+ '3dSecureSheet': {
31
+ title: string;
32
+ descriptionForYJCardOrPPCard: string;
33
+ description: string;
34
+ setting3DSecure: string;
35
+ about3DSecure: string;
36
+ close: string;
37
+ };
38
+ };
39
+ export default _default;
@@ -9,6 +9,11 @@ export interface GetTransactionsParams extends NativeParams<GetTransactionsResul
9
9
  cursor?: string;
10
10
  size?: number;
11
11
  }
12
+ export declare type GetTransactionsApiResponseData = {
13
+ hasNext: boolean;
14
+ nextPageKey: string;
15
+ transactions: TransactionItem[];
16
+ };
12
17
  export declare type GetTransactionsResult = {
13
18
  hasNext: boolean;
14
19
  nextCursor: string;
@@ -5,6 +5,7 @@ export interface InitClientParams extends NativeParams<InitResult> {
5
5
  env?: PPEnvType;
6
6
  mode?: string;
7
7
  debugMode?: boolean;
8
+ useLocalStorage?: boolean;
8
9
  }
9
10
  export interface InitParams extends NativeParams<InitResult> {
10
11
  clientId: string;
@@ -18,6 +19,7 @@ export interface InitParams extends NativeParams<InitResult> {
18
19
  debugMode?: boolean;
19
20
  clientSdkType?: SdkType;
20
21
  clientUrl?: string;
22
+ useLocalStorage?: boolean;
21
23
  }
22
24
  export declare const PPEnv: {
23
25
  readonly staging: "staging";
@@ -1,5 +1,4 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
- import { Address } from '../types/getUserAddress';
3
2
  import { UIComponentsError } from '../model/uiComponents';
4
3
  import { MiniAppErrorType } from '../model/miniAppError';
5
4
  export declare const Order: {
@@ -27,12 +26,6 @@ export interface MakePaymentParams extends NativeParams<MakePaymentResult> {
27
26
  storeInfo?: string;
28
27
  productType?: string;
29
28
  taxExempt?: boolean;
30
- additionalUserInfo?: {
31
- userAddress?: {
32
- visible: boolean;
33
- mandatory: boolean;
34
- };
35
- };
36
29
  merchantTimeoutAt?: number;
37
30
  orderType?: OrderType;
38
31
  }
@@ -49,7 +42,6 @@ export interface OrderItem {
49
42
  }
50
43
  export declare type MakePaymentResult = {
51
44
  jws: string;
52
- address: Address | null;
53
45
  };
54
46
  export declare const PaymentConsultResultCode: {
55
47
  EKYC_REQUIRED_FOR_DONATION: string;
@@ -105,6 +97,7 @@ declare type MethodBase = {
105
97
  paymentMethodId: string;
106
98
  paymentMethodType: PaymentMethodNameType;
107
99
  descriptionBannerInfo?: BannerInfo;
100
+ pointToggleInfo?: PointToggleInfo;
108
101
  walletInfo?: unknown;
109
102
  creditCardInfo?: unknown;
110
103
  bankInfo?: unknown;
@@ -156,10 +149,14 @@ export declare type WalletMethod = MethodBase & {
156
149
  totalEmoneyBalanceInfo?: Balance;
157
150
  prepaidBalanceInfo?: Balance;
158
151
  cashBackBalanceInfo?: Balance;
152
+ totalPayPayPointsInfo?: Balance;
159
153
  cashBackExpirableBalanceInfo?: Balance;
160
154
  };
161
155
  };
162
156
  };
157
+ declare type PointToggleInfo = {
158
+ cashBackUseStatus: 'USE' | 'SAVE' | 'INVEST' | null;
159
+ };
163
160
  export declare enum CreditTypes {
164
161
  VISA = "VISA",
165
162
  MASTER = "MASTER",
package/dist/types.d.ts CHANGED
@@ -123,9 +123,10 @@ export declare enum Environment {
123
123
  CANARY = "canary",
124
124
  PRD = "prd"
125
125
  }
126
- export interface CloseAppParams extends NativeParams<unknown> {
126
+ export interface CloseAppParams extends NativeParams<void> {
127
127
  options?: {
128
128
  deeplink?: string;
129
+ closeConfirmation?: boolean;
129
130
  };
130
131
  }
131
132
  export interface GetKycInformationParams extends NativeParams<MiniAppResult> {
@@ -210,12 +211,6 @@ export interface SmartPayParams {
210
211
  expiresAt?: number;
211
212
  agreeSimilarTransaction?: boolean;
212
213
  terminalId?: string;
213
- additionalUserInfo?: {
214
- userAddress?: {
215
- visible: boolean;
216
- mandatory: boolean;
217
- };
218
- };
219
214
  orderType?: OrderType;
220
215
  }
221
216
  export interface UserInfo {
@@ -459,6 +454,8 @@ export declare const PPUtilFunctionName: {
459
454
  readonly saveRefreshToken: "saveRefreshToken";
460
455
  readonly saveCodeVerifier: "saveCodeVerifier";
461
456
  readonly makeVisible: "makeVisible";
457
+ readonly hideIframe: "hideIframe";
458
+ readonly showIframe: "showIframe";
462
459
  readonly consoleDebugInfo: "consoleDebugInfo";
463
460
  readonly clientPopState: "clientPopState";
464
461
  };
@@ -31,6 +31,7 @@ export declare function handleLogSDKEvent(name: PPFunctionNameType, eventActionS
31
31
  export declare function test_initClientState(params: {
32
32
  clientId: string;
33
33
  clientOrigin: string;
34
- clientSdkType?: SdkType;
34
+ clientSdkType: SdkType;
35
+ useLocalStorage: boolean;
35
36
  }): void;
36
37
  export {};
@@ -1,6 +1,7 @@
1
1
  import { MiniAppErrorType } from '../model/miniAppError';
2
2
  import { UIComponentsError } from '../model/uiComponents';
3
3
  import { CashbackResponse, SmartPayParams } from '../types';
4
+ import { PPFetchResult } from './fetch';
4
5
  import { Address, NewAddress } from '../types/getUserAddress';
5
6
  import { MakePaymentParams } from '../types/makePayment';
6
7
  import { GetKycPassportInfoResult } from '../types/getKycPassportInfo';
@@ -66,72 +67,14 @@ export declare type BalanceInfo = {
66
67
  currency: string;
67
68
  };
68
69
  };
69
- export declare function topup(queryParams: TopupQuery, body: TopupBody, paymentParams?: MakePaymentParams): Promise<{
70
- ppFetchResult: "notAuthorized";
71
- errorCode: MiniAppErrorType.notAuthorized;
72
- body: null;
73
- } | {
74
- ppFetchResult: "fetchError";
75
- errorCode: MiniAppErrorType.serverError;
76
- body: null;
77
- } | {
78
- ppFetchResult: "timeout";
79
- errorCode: MiniAppErrorType.timeOut;
80
- body: null;
81
- } | {
82
- ppFetchResult: "tokenExpired";
83
- errorCode: MiniAppErrorType.tokenExpired;
84
- statusCode: number;
85
- body?: null | undefined;
86
- } | {
87
- ppFetchResult: "apiError" | "rateLimitExceeded";
88
- errorCode: MiniAppErrorType;
89
- statusCode: number;
90
- body: ({
91
- signed: {
92
- jws: string;
93
- };
94
- unsigned: {
95
- resultInfo: {
96
- code: string;
97
- codeId?: string | undefined;
98
- message?: string | undefined;
99
- };
100
- data?: {
101
- header?: {
102
- resultCode?: string | undefined;
103
- } | undefined;
104
- error?: unknown;
105
- helpUrl?: string | undefined;
106
- } | undefined;
107
- };
108
- uiComponents?: {
109
- displayErrorResponse?: UIComponentsError | undefined;
110
- } | undefined;
111
- } | {
112
- signed?: undefined;
113
- unsigned?: undefined;
114
- resultInfo: {
115
- code: string;
116
- codeId?: string | undefined;
117
- message?: string | undefined;
118
- };
119
- uiComponents?: {
120
- displayErrorResponse: UIComponentsError;
121
- } | undefined;
122
- }) & Record<string, unknown>;
123
- } | {
124
- ppFetchResult: "success";
125
- statusCode: number;
126
- body: TopupResponse;
127
- }>;
70
+ export declare function topup(queryParams: TopupQuery, body: TopupBody, paymentParams?: MakePaymentParams): Promise<PPFetchResult<TopupResponse>>;
128
71
  export declare type BalanceParams = {
129
72
  clientId?: string;
130
73
  currency?: string;
131
74
  merchant?: string;
132
75
  productType?: string;
133
76
  };
134
- export declare function getBalance(params?: BalanceParams): Promise<import("./fetch").PPFetchResult<unknown, Record<string, unknown>>>;
77
+ export declare function getBalance(params?: BalanceParams): Promise<PPFetchResult<unknown, Record<string, unknown>>>;
135
78
  declare type BalanceInfoForTopupSheetResponse = {
136
79
  data: BalanceInfo;
137
80
  };
@@ -140,7 +83,7 @@ declare type BalanceInfoForTopupSheetRequestParams = {
140
83
  productType?: string;
141
84
  clientId: string;
142
85
  };
143
- export declare function getBalanceInfoForTopupSheet(params: BalanceInfoForTopupSheetRequestParams): Promise<import("./fetch").PPFetchResult<BalanceInfoForTopupSheetResponse, Record<string, unknown>>>;
86
+ export declare function getBalanceInfoForTopupSheet(params: BalanceInfoForTopupSheetRequestParams): Promise<PPFetchResult<BalanceInfoForTopupSheetResponse, Record<string, unknown>>>;
144
87
  export declare type ShallowAddress = {
145
88
  prefecture: string;
146
89
  cityAndOaza: string;
@@ -157,7 +100,7 @@ export declare type GetAddressByZipResponse = {
157
100
  export declare type AddressParams = {
158
101
  zipcode: string;
159
102
  };
160
- export declare function getAddressByZip(params: AddressParams): Promise<import("./fetch").PPFetchResult<GetAddressByZipResponse, Record<string, unknown>>>;
103
+ export declare function getAddressByZip(params: AddressParams): Promise<PPFetchResult<GetAddressByZipResponse, Record<string, unknown>>>;
161
104
  export declare type SetSelectedAddressResponse = {
162
105
  signed: unknown;
163
106
  statusCode: number;
@@ -175,8 +118,8 @@ export declare type GetAddressListResponse = {
175
118
  };
176
119
  };
177
120
  };
178
- export declare function getAddressList(): Promise<import("./fetch").PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
179
- export declare function postAddress(body: NewAddress): Promise<import("./fetch").PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
121
+ export declare function getAddressList(): Promise<PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
122
+ export declare function postAddress(body: NewAddress): Promise<PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
180
123
  export declare type GetOTPResponse = {
181
124
  signed: {
182
125
  jws: string;
@@ -213,7 +156,7 @@ export declare type VerifyOTPBody = {
213
156
  otpKey: string;
214
157
  otp: number;
215
158
  };
216
- export declare function getOtp(): Promise<import("./fetch").PPFetchResult<GetOTPResponse, Record<string, unknown>>>;
159
+ export declare function getOtp(): Promise<PPFetchResult<GetOTPResponse, Record<string, unknown>>>;
217
160
  export declare type KycTypeResponse = {
218
161
  signed: {
219
162
  resultInfo?: {
@@ -249,11 +192,11 @@ export declare type VerifyKycPassportResponse = {
249
192
  data: GetKycPassportInfoResult;
250
193
  };
251
194
  };
252
- export declare function getInitKycPassport(params: InitKycPassportParams): Promise<import("./fetch").PPFetchResult<KycTypeResponse, Record<string, unknown>>>;
253
- export declare function verifyOtp(body: VerifyOTPBody): Promise<import("./fetch").PPFetchResult<VerifyOTPResponse, Record<string, unknown>>>;
254
- export declare function editAddress(body: NewAddress, id: number): Promise<import("./fetch").PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
255
- export declare function deleteAddress(id: number): Promise<import("./fetch").PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
256
- export declare function setSelectedAddress(addressId: number): Promise<import("./fetch").PPFetchResult<SetSelectedAddressResponse, Record<string, unknown>>>;
195
+ export declare function getInitKycPassport(params: InitKycPassportParams): Promise<PPFetchResult<KycTypeResponse, Record<string, unknown>>>;
196
+ export declare function verifyOtp(body: VerifyOTPBody): Promise<PPFetchResult<VerifyOTPResponse, Record<string, unknown>>>;
197
+ export declare function editAddress(body: NewAddress, id: number): Promise<PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
198
+ export declare function deleteAddress(id: number): Promise<PPFetchResult<GetAddressListResponse, Record<string, unknown>>>;
199
+ export declare function setSelectedAddress(addressId: number): Promise<PPFetchResult<SetSelectedAddressResponse, Record<string, unknown>>>;
257
200
  export declare type VERIFY_STATUS = 'NOT_VERIFIED' | 'VERIFIED';
258
201
  export declare type ProfileInfo = {
259
202
  firstName?: string;
@@ -284,8 +227,8 @@ export declare type ProfileResponse = {
284
227
  };
285
228
  statusCode: number;
286
229
  };
287
- export declare function getUserProfileData(): Promise<import("./fetch").PPFetchResult<ProfileResponse, Record<string, unknown>>>;
288
- export declare function getUserProfileDataV2(): Promise<import("./fetch").PPFetchResult<ProfileResponse, Record<string, unknown>>>;
230
+ export declare function getUserProfileData(): Promise<PPFetchResult<ProfileResponse, Record<string, unknown>>>;
231
+ export declare function getUserProfileDataV2(): Promise<PPFetchResult<ProfileResponse, Record<string, unknown>>>;
289
232
  export declare type RegisterEmailResponse = {
290
233
  signed: unknown;
291
234
  statusCode: number;
@@ -304,8 +247,8 @@ export declare type RegisterEmailResponse = {
304
247
  };
305
248
  };
306
249
  };
307
- export declare function registerEmail(email: string): Promise<import("./fetch").PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
308
- export declare function resendEmail(): Promise<import("./fetch").PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
250
+ export declare function registerEmail(email: string): Promise<PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
251
+ export declare function resendEmail(): Promise<PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
309
252
  export declare type UserLocationResponse = {
310
253
  unsigned: {
311
254
  data: {
@@ -318,6 +261,6 @@ export declare type UserLocationResponse = {
318
261
  };
319
262
  export declare function getUserLocationRequest(params: {
320
263
  validTimeMinutes: number;
321
- }): Promise<import("./fetch").PPFetchResult<UserLocationResponse, Record<string, unknown>>>;
322
- export declare function getExpectedCashbackInfo(orderInfo: SmartPayParams): Promise<import("./fetch").PPFetchResult<CashbackResponse, Record<string, unknown>>>;
264
+ }): Promise<PPFetchResult<UserLocationResponse, Record<string, unknown>>>;
265
+ export declare function getExpectedCashbackInfo(orderInfo: SmartPayParams): Promise<PPFetchResult<CashbackResponse, Record<string, unknown>>>;
323
266
  export {};
@@ -0,0 +1,3 @@
1
+ export declare const clientCustomization: {
2
+ HIDE_PP_POINT: string[];
3
+ };
@@ -1,3 +1,2 @@
1
1
  import { Locale } from '../types';
2
- export declare function getPayPayLanguage(): string;
3
- export declare function getTranslationLanguage(): Locale;
2
+ export declare function getTranslationLanguage(preferredLanguage?: string): Locale;