@paypay/mini-app-js-sdk 1.18.0 → 1.22.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 (203) hide show
  1. package/dist/composition-api/dom/index.d.ts +5 -4
  2. package/dist/composition-api/dom/useCountDown.d.ts +20 -0
  3. package/dist/composition-api/dom/useEventListener.d.ts +8 -8
  4. package/dist/composition-api/dom/useHorizontalScrollDirective.d.ts +4 -4
  5. package/dist/composition-api/dom/useOnMountedOrActivated.d.ts +1 -1
  6. package/dist/composition-api/dom/useVerticalScrollDirective.d.ts +4 -4
  7. package/dist/composition-api/useErrorSheet.d.ts +3 -3
  8. package/dist/composition-api/useGetUserAddress.d.ts +2 -2
  9. package/dist/composition-api/useHeightProperties.d.ts +19 -19
  10. package/dist/composition-api/useInpuAddress.d.ts +2 -2
  11. package/dist/composition-api/useMakePayment.d.ts +3 -3
  12. package/dist/composition-api/useOpenApp.d.ts +3 -3
  13. package/dist/composition-api/useOpenMap.d.ts +3 -3
  14. package/dist/composition-api/useRegisterEmail.d.ts +2 -2
  15. package/dist/composition-api/useRenderSmartButton.d.ts +3 -3
  16. package/dist/composition-api/useShowAlert.d.ts +3 -3
  17. package/dist/composition-api/useShowUpdateWarning.d.ts +3 -3
  18. package/dist/composition-api/useTakePhoto.d.ts +3 -3
  19. package/dist/composition-api/useTopup.d.ts +3 -3
  20. package/dist/index.d.ts +3 -3
  21. package/dist/jsbridge-core/index.d.ts +4 -4
  22. package/dist/jsbridge-core/jsbridge.d.ts +62 -62
  23. package/dist/jsbridge-core/lib/browser.d.ts +3 -3
  24. package/dist/jsbridge-core/lib/logger.d.ts +9 -9
  25. package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -2
  26. package/dist/jsbridge-core/module.d.ts +15 -14
  27. package/dist/jsbridge-core/namespace.d.ts +2 -2
  28. package/dist/jsbridge-core/paypay-jsbridge.d.ts +17 -16
  29. package/dist/mini-app-api.d.ts +51 -51
  30. package/dist/mini-app-js-sdk.browser.js +1 -1
  31. package/dist/mini-app-js-sdk.d.ts +9 -9
  32. package/dist/mini-app-js-sdk.es.js +33675 -1
  33. package/dist/mini-app-js-sdk.min.css +1 -1
  34. package/dist/model/bridge/checkAccessToken.d.ts +3 -3
  35. package/dist/model/bridge/checkPaymentMethod.d.ts +2 -2
  36. package/dist/model/bridge/closeApp.d.ts +2 -2
  37. package/dist/model/bridge/copyToClipboard.d.ts +2 -2
  38. package/dist/model/bridge/debug.d.ts +3 -3
  39. package/dist/model/bridge/getAppDetail.d.ts +3 -17
  40. package/dist/model/bridge/getAuthStatus.d.ts +3 -3
  41. package/dist/model/bridge/getBalance.d.ts +2 -2
  42. package/dist/model/bridge/getConfigure.d.ts +39 -39
  43. package/dist/model/bridge/getDeviceInformation.d.ts +3 -3
  44. package/dist/model/bridge/getKycInformation.d.ts +2 -2
  45. package/dist/model/bridge/getPermissionStatus.d.ts +2 -2
  46. package/dist/model/bridge/getPlatformInformation.d.ts +3 -3
  47. package/dist/model/bridge/getSessionData.d.ts +2 -2
  48. package/dist/model/bridge/getStorageData.d.ts +2 -2
  49. package/dist/model/bridge/getTopBarHeight.d.ts +3 -3
  50. package/dist/model/bridge/getUAID.d.ts +3 -3
  51. package/dist/model/bridge/getUserAddress.d.ts +2 -2
  52. package/dist/model/bridge/getUserLocation.d.ts +2 -2
  53. package/dist/model/bridge/getUserProfile.d.ts +3 -3
  54. package/dist/model/bridge/index.d.ts +43 -43
  55. package/dist/model/bridge/init.d.ts +2 -2
  56. package/dist/model/bridge/inputAddress.d.ts +2 -2
  57. package/dist/model/bridge/logout.d.ts +3 -3
  58. package/dist/model/bridge/makePayment.d.ts +2 -2
  59. package/dist/model/bridge/openApp.d.ts +2 -2
  60. package/dist/model/bridge/openMap.d.ts +2 -2
  61. package/dist/model/bridge/openWebview.d.ts +3 -3
  62. package/dist/model/bridge/registerEmail.d.ts +2 -2
  63. package/dist/model/bridge/registerKyc.d.ts +2 -2
  64. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  65. package/dist/model/bridge/render.d.ts +2 -2
  66. package/dist/model/bridge/renderLoginButton.d.ts +6 -2
  67. package/dist/model/bridge/renderPayButton.d.ts +6 -2
  68. package/dist/model/bridge/request.d.ts +2 -2
  69. package/dist/model/bridge/requestInternal.d.ts +2 -2
  70. package/dist/model/bridge/scanCode.d.ts +3 -3
  71. package/dist/model/bridge/setSessionData.d.ts +2 -2
  72. package/dist/model/bridge/setStorageData.d.ts +2 -2
  73. package/dist/model/bridge/setTitle.d.ts +2 -2
  74. package/dist/model/bridge/share.d.ts +2 -2
  75. package/dist/model/bridge/showAlert.d.ts +2 -2
  76. package/dist/model/bridge/showErrorSheet.d.ts +2 -2
  77. package/dist/model/bridge/showUpdateWarning.d.ts +2 -2
  78. package/dist/model/bridge/startMultiFactorAuth.d.ts +2 -2
  79. package/dist/model/bridge/takePhoto.d.ts +2 -2
  80. package/dist/model/bridge/topup.d.ts +2 -2
  81. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +3 -3
  82. package/dist/model/makePayment.d.ts +334 -324
  83. package/dist/model/miniAppError.d.ts +57 -57
  84. package/dist/model/miniAppStatus.d.ts +9 -9
  85. package/dist/model/permission.d.ts +21 -21
  86. package/dist/model/uiComponents.d.ts +24 -23
  87. package/dist/package/action-sheet/index.d.ts +97 -91
  88. package/dist/package/banner-header/index.vue.d.ts +56 -56
  89. package/dist/package/button/index.d.ts +77 -69
  90. package/dist/package/charge-amount-list/index.vue.d.ts +48 -54
  91. package/dist/package/charge-amount-more-list/index.vue.d.ts +23 -19
  92. package/dist/package/date-button/index.vue.d.ts +19 -21
  93. package/dist/package/desktop-header/index.d.ts +21 -0
  94. package/dist/package/divider/index.d.ts +21 -22
  95. package/dist/package/header/index.d.ts +65 -65
  96. package/dist/package/index.d.ts +17 -16
  97. package/dist/package/input/index.d.ts +209 -170
  98. package/dist/package/input/utils.d.ts +10 -10
  99. package/dist/package/lottie/index.d.ts +58 -62
  100. package/dist/package/overlay/index.d.ts +44 -45
  101. package/dist/package/payment-method/Bank.vue.d.ts +35 -35
  102. package/dist/package/payment-method/CreditCard.vue.d.ts +42 -42
  103. package/dist/package/payment-method/SbidBank.vue.d.ts +279 -21
  104. package/dist/package/payment-method/Wallet.vue.d.ts +289 -31
  105. package/dist/package/payment-method/index.d.ts +15 -15
  106. package/dist/package/payment-method-list/index.vue.d.ts +39 -27
  107. package/dist/package/payment-type/Bank.vue.d.ts +31 -31
  108. package/dist/package/payment-type/CreditCard.vue.d.ts +32 -32
  109. package/dist/package/payment-type/Sbid.vue.d.ts +275 -17
  110. package/dist/package/payment-type/Wallet.vue.d.ts +276 -17
  111. package/dist/package/payment-type/index.d.ts +13 -15
  112. package/dist/package/select-list/Components.d.ts +77 -65
  113. package/dist/package/select-list/index.d.ts +82 -73
  114. package/dist/package/switch/index.d.ts +22 -23
  115. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +286 -0
  116. package/dist/types.d.ts +376 -344
  117. package/dist/utils/api.d.ts +168 -147
  118. package/dist/utils/common.d.ts +2 -2
  119. package/dist/utils/create/bem.d.ts +6 -6
  120. package/dist/utils/create/index.d.ts +5 -5
  121. package/dist/utils/fetch.d.ts +16 -16
  122. package/dist/utils/getImages.d.ts +36 -5
  123. package/dist/utils/getLanguage.d.ts +225 -3
  124. package/dist/utils/helper.d.ts +44 -47
  125. package/dist/utils/ip.d.ts +2 -2
  126. package/dist/utils/miniAppRequest.d.ts +9 -9
  127. package/dist/utils/popstateHandler.d.ts +4 -4
  128. package/dist/utils/secondary-list.d.ts +1 -1
  129. package/dist/utils/storage.d.ts +28 -26
  130. package/dist/utils/uiConstants.d.ts +1 -0
  131. package/dist/utils/useBreakpoints.d.ts +5 -0
  132. package/dist/utils/utils.d.ts +2 -0
  133. package/dist/views/email-registration/App.vue.d.ts +302 -79
  134. package/dist/views/email-registration/components/EmailButton.vue.d.ts +45 -45
  135. package/dist/views/email-registration/components/icons.d.ts +2 -2
  136. package/dist/views/email-registration/hooks/callback.d.ts +7 -7
  137. package/dist/views/email-registration/hooks/ui.d.ts +29 -29
  138. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +52 -52
  139. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +24 -24
  140. package/dist/views/error-sheet/Index.vue.d.ts +310 -52
  141. package/dist/views/get-user-address/App.vue.d.ts +52 -52
  142. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +307 -73
  143. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +281 -23
  144. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +276 -33
  145. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +258 -35
  146. package/dist/views/get-user-address/Sheet/AddSheet/constants.d.ts +4 -4
  147. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +311 -83
  148. package/dist/views/get-user-address/Sheet/App.vue.d.ts +79 -70
  149. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +264 -32
  150. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +249 -25
  151. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +332 -49
  152. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +240 -0
  153. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +259 -0
  154. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +254 -0
  155. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +246 -0
  156. package/dist/views/get-user-address/hooks/ui-hooks.d.ts +57 -14
  157. package/dist/views/get-user-address/store/error-handle.d.ts +13 -12
  158. package/dist/views/get-user-address/store/root.d.ts +18 -14
  159. package/dist/views/input-address/App.vue.d.ts +35 -36
  160. package/dist/views/input-address/hook/app.d.ts +13 -13
  161. package/dist/views/input-address/hook/error-handle.d.ts +10 -10
  162. package/dist/views/input-address/hook/root.d.ts +10 -10
  163. package/dist/views/make-payment/App.vue.d.ts +52 -60
  164. package/dist/views/make-payment/Main.vue.d.ts +197 -638
  165. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +247 -25
  166. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +244 -20
  167. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +277 -19
  168. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +274 -16
  169. package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +24 -24
  170. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +26 -26
  171. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +311 -53
  172. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +269 -32
  173. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +422 -80
  174. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +308 -49
  175. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +833 -522
  176. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +264 -38
  177. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +265 -0
  178. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -23
  179. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +250 -27
  180. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +328 -0
  181. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +428 -108
  182. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +70 -36
  183. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +354 -69
  184. package/dist/views/make-payment/hooks/app-hooks.d.ts +381 -568
  185. package/dist/views/make-payment/hooks/ui-hooks.d.ts +87 -72
  186. package/dist/views/make-payment/store/age-confirm.d.ts +9 -9
  187. package/dist/views/make-payment/store/handle-error.d.ts +36 -36
  188. package/dist/views/make-payment/store/root.d.ts +22 -22
  189. package/dist/views/make-payment/store/util-for-handle-error.d.ts +16 -16
  190. package/dist/views/make-payment/utils/paymentMethod.d.ts +5 -3
  191. package/dist/views/open-app/App.vue.d.ts +286 -28
  192. package/dist/views/open-map/App.vue.d.ts +251 -28
  193. package/dist/views/show-alert/App.vue.d.ts +36 -36
  194. package/dist/views/show-update-warning/App.vue.d.ts +286 -28
  195. package/dist/views/smart-button/App.vue.d.ts +87 -87
  196. package/dist/views/take-photo/App.vue.d.ts +248 -25
  197. package/dist/views/take-photo/helper.d.ts +2 -2
  198. package/dist/views/topup/App.vue.d.ts +378 -100
  199. package/dist/views/topup/BannerInfo.vue.d.ts +27 -23
  200. package/dist/views/topup/CashbackInfo.vue.d.ts +267 -44
  201. package/dist/views/topup/TopupCompletion.vue.d.ts +286 -26
  202. package/package.json +12 -18
  203. package/dist/utils/mock-data/mockData.d.ts +0 -64
@@ -1,147 +1,168 @@
1
- import { MiniAppErrorType } from '../model/miniAppError';
2
- import { UIComponentsError } from '../model/uiComponents';
3
- import { Amount } from '../types';
4
- import { Address } from '../types';
5
- export declare type TopupQuery = {
6
- merchant?: string;
7
- agreeSimilarTransaction?: boolean;
8
- };
9
- export declare type PaymentAmount = {
10
- amount: number;
11
- currency?: string;
12
- };
13
- export declare type TopupBody = {
14
- paymentMethodType: string;
15
- paymentMethodId: string;
16
- merchantTopUpId: string;
17
- amount: PaymentAmount;
18
- requestedAt: number;
19
- prepaidOnly?: boolean;
20
- };
21
- export declare type TopupResponse = {
22
- status: number;
23
- signed: any;
24
- uiComponents?: {
25
- displayErrorResponse: UIComponentsError;
26
- };
27
- unsigned: {
28
- resultInfo: {
29
- code: MiniAppErrorType;
30
- };
31
- data: {
32
- status: string;
33
- amount: Amount;
34
- };
35
- };
36
- };
37
- export declare type walletInfoResponse = {
38
- data: {
39
- payload: {
40
- walletSummary: {
41
- allTotalBalanceInfo: {
42
- balance: Number;
43
- currency: String;
44
- };
45
- totalBalanceInfo: {
46
- balance: Number;
47
- currency: String;
48
- };
49
- transferableBalanceInfo: {
50
- balance: Number;
51
- currency: String;
52
- };
53
- payoutableBalanceInfo: {
54
- balance: Number;
55
- currency: String;
56
- };
57
- };
58
- cashBackUseStatus: String;
59
- };
60
- };
61
- };
62
- export declare function topup(queryParams: TopupQuery, body: TopupBody): Promise<TopupResponse | import("./fetch").ErrorResponse>;
63
- export declare type BalanceParams = {
64
- clientId?: string;
65
- currency?: string;
66
- merchant?: string;
67
- productType?: string;
68
- sourceInfoApp?: string;
69
- };
70
- export declare function getBalance(params?: BalanceParams): Promise<unknown>;
71
- export declare function getCashBackInfo(): Promise<walletInfoResponse | import("./fetch").ErrorResponse>;
72
- export declare type getCashBackResponse = {
73
- signed: any;
74
- unsigned: any;
75
- };
76
- interface CashBackParams {
77
- paymentId: string;
78
- }
79
- export declare function getCashbackDetail(params: CashBackParams): Promise<unknown>;
80
- export declare type ShallowAddress = {
81
- prefecture: string;
82
- cityAndOaza: string;
83
- };
84
- export declare type GetAddressByZipResponse = {
85
- unsigned: {
86
- data: {
87
- payload: {
88
- addressList: ShallowAddress[];
89
- };
90
- };
91
- };
92
- };
93
- export declare type AddressParams = {
94
- zipcode: string;
95
- };
96
- export declare function getAddressByZip(params: AddressParams): Promise<import("./fetch").ErrorResponse | GetAddressByZipResponse>;
97
- export declare type GetAddressListResponse = {
98
- status: number;
99
- signed: any;
100
- unsigned: {
101
- resultInfo: {
102
- code: MiniAppErrorType;
103
- };
104
- data: {
105
- addresses: Address[];
106
- };
107
- };
108
- };
109
- export declare function getAddressList(): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
110
- export declare function postAddress(body: Address): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
111
- export declare function editAddress(body: Address, id: number): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
112
- export declare function deleteAddress(id: number): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
113
- export declare type VERIFY_STATUS = 'NOT_VERIFIED' | 'VERIFIED';
114
- export declare type ProfileInfo = {
115
- firstName?: string;
116
- lastName?: string;
117
- firstNameKana?: string;
118
- lastNameKana?: string;
119
- email?: string;
120
- photoKey?: string;
121
- hasPhoto: boolean;
122
- photoUrl?: string;
123
- mobile?: string;
124
- dateOfBirth?: string;
125
- displayName?: string;
126
- scopesExcluded: Array<string>;
127
- emailStatus?: VERIFY_STATUS;
128
- mobileStatus?: VERIFY_STATUS;
129
- kycFlag?: boolean;
130
- signUpCompletedAt?: string;
131
- };
132
- export declare type ProfileResponse = {
133
- unsigned: {
134
- data: ProfileInfo;
135
- };
136
- statusCode: number;
137
- };
138
- export declare function getUserProfileData(): Promise<import("./fetch").ErrorResponse | ProfileResponse>;
139
- export declare type RegisterEmailResponse = {
140
- signed: {};
141
- statusCode: number;
142
- unsigned: {};
143
- };
144
- export declare function registerEmail(email: string): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
145
- export declare function resendEmail(): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
146
- export declare function isValidUrl(urlChallenge: string): boolean;
147
- export {};
1
+ import { MiniAppErrorType } from '../model/miniAppError';
2
+ import { UIComponentsError } from '../model/uiComponents';
3
+ import { Amount } from '../types';
4
+ import { Address } from '../types';
5
+ export declare type TopupQuery = {
6
+ merchant?: string;
7
+ agreeSimilarTransaction?: boolean;
8
+ };
9
+ export declare type PaymentAmount = {
10
+ amount: number;
11
+ currency?: string;
12
+ };
13
+ export declare type TopupBody = {
14
+ paymentMethodType: string;
15
+ paymentMethodId: string;
16
+ merchantTopUpId: string;
17
+ amount: PaymentAmount;
18
+ requestedAt: number;
19
+ prepaidOnly?: boolean;
20
+ };
21
+ export declare type TopupResponse = {
22
+ status: number;
23
+ signed: {
24
+ jws?: string;
25
+ };
26
+ uiComponents?: {
27
+ displayErrorResponse: UIComponentsError;
28
+ };
29
+ unsigned: {
30
+ resultInfo: {
31
+ code: MiniAppErrorType;
32
+ };
33
+ data: {
34
+ status: string;
35
+ amount: Amount;
36
+ };
37
+ };
38
+ };
39
+ declare type WalletInfoResponse = {
40
+ data: {
41
+ payload: {
42
+ walletSummary: {
43
+ allTotalBalanceInfo: {
44
+ balance: number;
45
+ currency: string;
46
+ };
47
+ totalBalanceInfo: {
48
+ balance: number;
49
+ currency: string;
50
+ };
51
+ transferableBalanceInfo: {
52
+ balance: number;
53
+ currency: string;
54
+ };
55
+ payoutableBalanceInfo: {
56
+ balance: number;
57
+ currency: string;
58
+ };
59
+ };
60
+ cashBackUseStatus: string;
61
+ };
62
+ };
63
+ };
64
+ export declare function topup(queryParams: TopupQuery, body: TopupBody): Promise<import("./fetch").ErrorResponse | TopupResponse>;
65
+ export declare type BalanceParams = {
66
+ clientId?: string;
67
+ currency?: string;
68
+ merchant?: string;
69
+ productType?: string;
70
+ sourceInfoApp?: string;
71
+ };
72
+ export declare function getBalance(params?: BalanceParams): Promise<unknown>;
73
+ export declare function getCashBackInfo(): Promise<import("./fetch").ErrorResponse | WalletInfoResponse>;
74
+ export declare type getCashBackResponse = {
75
+ signed: unknown;
76
+ unsigned: unknown;
77
+ };
78
+ interface CashBackParams {
79
+ paymentId: string;
80
+ }
81
+ export declare function getCashbackDetail(params: CashBackParams): Promise<unknown>;
82
+ export declare type ShallowAddress = {
83
+ prefecture: string;
84
+ cityAndOaza: string;
85
+ };
86
+ export declare type GetAddressByZipResponse = {
87
+ unsigned: {
88
+ data: {
89
+ payload: {
90
+ addressList: ShallowAddress[];
91
+ };
92
+ };
93
+ };
94
+ };
95
+ export declare type AddressParams = {
96
+ zipcode: string;
97
+ };
98
+ export declare function getAddressByZip(params: AddressParams): Promise<import("./fetch").ErrorResponse | GetAddressByZipResponse>;
99
+ export declare type SetSelectedAddressResponse = {
100
+ signed: unknown;
101
+ statusCode: number;
102
+ unsigned: unknown;
103
+ };
104
+ export declare type GetAddressListResponse = {
105
+ status: number;
106
+ signed: unknown;
107
+ unsigned: {
108
+ resultInfo: {
109
+ code: MiniAppErrorType;
110
+ };
111
+ data: {
112
+ addresses: Address[];
113
+ };
114
+ };
115
+ };
116
+ export declare function getAddressList(): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
117
+ export declare function postAddress(body: Address): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
118
+ export declare function editAddress(body: Address, id: number): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
119
+ export declare function deleteAddress(id: number): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
120
+ export declare function setSelectedAddress(addressId: number): Promise<import("./fetch").ErrorResponse | SetSelectedAddressResponse>;
121
+ export declare type VERIFY_STATUS = 'NOT_VERIFIED' | 'VERIFIED';
122
+ export declare type ProfileInfo = {
123
+ firstName?: string;
124
+ lastName?: string;
125
+ firstNameKana?: string;
126
+ lastNameKana?: string;
127
+ email?: string;
128
+ photoKey?: string;
129
+ hasPhoto: boolean;
130
+ photoUrl?: string;
131
+ mobile?: string;
132
+ dateOfBirth?: string;
133
+ displayName?: string;
134
+ scopesExcluded: Array<string>;
135
+ emailStatus?: VERIFY_STATUS;
136
+ mobileStatus?: VERIFY_STATUS;
137
+ kycFlag?: boolean;
138
+ signUpCompletedAt?: string;
139
+ };
140
+ export declare type ProfileResponse = {
141
+ unsigned: {
142
+ data: ProfileInfo;
143
+ };
144
+ statusCode: number;
145
+ };
146
+ export declare function getUserProfileData(): Promise<import("./fetch").ErrorResponse | ProfileResponse>;
147
+ export declare type RegisterEmailResponse = {
148
+ signed: unknown;
149
+ statusCode: number;
150
+ unsigned: unknown;
151
+ };
152
+ export declare function registerEmail(email: string): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
153
+ export declare function resendEmail(): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
154
+ export declare type UserLocationResponse = {
155
+ unsigned: {
156
+ data: {
157
+ location?: {
158
+ lat: string;
159
+ lon: string;
160
+ };
161
+ };
162
+ };
163
+ };
164
+ export declare function getUserLocationRequest(params: {
165
+ validTimeMinutes: number;
166
+ }): Promise<import("./fetch").ErrorResponse | UserLocationResponse>;
167
+ export declare function isValidUrl(urlChallenge: string): boolean;
168
+ export {};
@@ -1,2 +1,2 @@
1
- import { PaymentMethod } from '../model/makePayment';
2
- export declare function filterUnsupportedPaymentMethod(paymentMethods: PaymentMethod[]): PaymentMethod[];
1
+ import { PaymentMethod } from '../model/makePayment';
2
+ export declare function filterUnsupportedPaymentMethod(paymentMethods: PaymentMethod[]): PaymentMethod[];
@@ -1,6 +1,6 @@
1
- export declare type Mod = string | {
2
- [key: string]: any;
3
- };
4
- export declare type Mods = Mod | Mod[];
5
- export declare function createBEM(name: string): (el?: Mods, mods?: Mods) => Mods;
6
- export declare type BEM = ReturnType<typeof createBEM>;
1
+ export declare type Mod = string | {
2
+ [key: string]: unknown;
3
+ };
4
+ export declare type Mods = Mod | Mod[];
5
+ export declare function createBEM(name: string): (el?: Mods | undefined, mods?: Mods | undefined) => Mods;
6
+ export declare type BEM = ReturnType<typeof createBEM>;
@@ -1,5 +1,5 @@
1
- export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods, mods?: import("./bem").Mods) => import("./bem").Mods];
2
- export declare type ObjectLiteralStyle = {
3
- [className: string]: boolean;
4
- };
5
- export declare function useObjectLiteralStyle(params: ObjectLiteralStyle): string;
1
+ export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods | undefined, mods?: import("./bem").Mods | undefined) => import("./bem").Mods];
2
+ export declare type ObjectLiteralStyle = {
3
+ [className: string]: boolean;
4
+ };
5
+ export declare function useObjectLiteralStyle(params: ObjectLiteralStyle): string;
@@ -1,16 +1,16 @@
1
- declare const createHeaderMiniAppApi: (urlEndpoint: string, customHeaders: Record<string, string>) => Headers | undefined;
2
- export declare type ErrorResponse = {
3
- error: {
4
- message: string;
5
- };
6
- };
7
- declare function ppFetch<T>(options: {
8
- method: string;
9
- url: string;
10
- params?: any;
11
- data?: any;
12
- headers?: Record<string, string>;
13
- suppressRefresh?: boolean;
14
- timeout?: number;
15
- }): Promise<T | ErrorResponse>;
16
- export { createHeaderMiniAppApi, ppFetch };
1
+ declare const createHeaderMiniAppApi: (urlEndpoint: string, customHeaders?: Record<string, string> | undefined) => Headers | undefined;
2
+ export declare type ErrorResponse = {
3
+ error: {
4
+ message: string;
5
+ };
6
+ };
7
+ declare function ppFetch<T>(options: {
8
+ method: string;
9
+ url: string;
10
+ params?: any;
11
+ data?: unknown;
12
+ headers?: Record<string, string>;
13
+ suppressRefresh?: boolean;
14
+ timeout?: number;
15
+ }): Promise<T | ErrorResponse>;
16
+ export { createHeaderMiniAppApi, ppFetch };
@@ -1,5 +1,36 @@
1
- export declare function images(): any;
2
- export declare const IMAGE_KEY = "images";
3
- export interface IMG_TYPE {
4
- [key: string]: string;
5
- }
1
+ export declare function getImages(): {
2
+ iconBalanceError: string;
3
+ animationDone: string;
4
+ merchant: string;
5
+ cashback: string;
6
+ iconCopy: string;
7
+ iconError: string;
8
+ iconOpenApp: string;
9
+ iconAppUpdate: string;
10
+ iconBackArrow: string;
11
+ paypay: string;
12
+ copyIcon: string;
13
+ jcb: string;
14
+ visa: string;
15
+ master: string;
16
+ amex: string;
17
+ iconAlert: string;
18
+ checkGreen: string;
19
+ yahoo: string;
20
+ ppCard: string;
21
+ softbank: string;
22
+ iconBirthday: string;
23
+ iconMinorAge: string;
24
+ iconClose: string;
25
+ myOffer: string;
26
+ lightBlue: string;
27
+ iconBalanceIcon: string;
28
+ share: string;
29
+ rightArrow: string;
30
+ iconGrayError: string;
31
+ paypayRec: string;
32
+ paypayRecWhite: string;
33
+ downArrow: string;
34
+ bankIcon: string;
35
+ confetti: string;
36
+ };
@@ -1,3 +1,225 @@
1
- export declare function language(): any;
2
- export declare function getPayPayLanguage(): string;
3
- export declare const LANGUAGE_KEY = "lg";
1
+ export declare function getLanguage(): {
2
+ showUpdateWarning: {
3
+ closeBtn: string;
4
+ notNow: string;
5
+ update: string;
6
+ title: string;
7
+ errorText: string;
8
+ desc1: string;
9
+ desc2: string;
10
+ };
11
+ openApp: {
12
+ title: string;
13
+ body: string;
14
+ errorText: string;
15
+ openApp: string;
16
+ cancel: string;
17
+ };
18
+ openMap: {
19
+ title: string;
20
+ errorText: string;
21
+ };
22
+ topup: {
23
+ title: string;
24
+ balMoney: string;
25
+ charge: string;
26
+ minAmount: string;
27
+ maxAmount: string;
28
+ moneyLabel: string;
29
+ noMethod: string;
30
+ loading: string;
31
+ payBtn: string;
32
+ availableBalance: string;
33
+ availableBalanceAfter: string;
34
+ allBalance: string;
35
+ };
36
+ takePhoto: {
37
+ camera: string;
38
+ photo: string;
39
+ };
40
+ payment: {
41
+ title: string;
42
+ payAmount: string;
43
+ payAmountTaxExempt: string;
44
+ method: string;
45
+ address: string;
46
+ insufficientAmount: string;
47
+ paying: string;
48
+ pay: string;
49
+ charge: string;
50
+ cancel: string;
51
+ noAddress: string;
52
+ change: string;
53
+ close: string;
54
+ };
55
+ duplicate: {
56
+ header: string;
57
+ text1: string;
58
+ text2: string;
59
+ cancel: string;
60
+ agreeButtonText: string;
61
+ topHeader: string;
62
+ topText1: string;
63
+ topText2: string;
64
+ topAgreeButtonText: string;
65
+ };
66
+ birthdayConfirm: {
67
+ title: string;
68
+ title2: string;
69
+ desc: string;
70
+ desc1: string;
71
+ desc2: string;
72
+ desc3: string;
73
+ date: string;
74
+ primaryBtn: string;
75
+ cancelBtn: string;
76
+ };
77
+ birthdayConfirmError: {
78
+ title: string;
79
+ title2: string;
80
+ desc: string;
81
+ desc2: string;
82
+ helpBtn: string;
83
+ closeBtn: string;
84
+ };
85
+ cashbackDet: {
86
+ button1: string;
87
+ button2: string;
88
+ button3: string;
89
+ };
90
+ topContent: {
91
+ title: string;
92
+ chargeTitle: string;
93
+ chargeLabel: string;
94
+ loading: string;
95
+ unavailable1: string;
96
+ unavailable2: string;
97
+ amount: string;
98
+ return: string;
99
+ };
100
+ topInfo: {
101
+ sufficientRow: string;
102
+ insufficientAmount: string;
103
+ insufficientAmountText: string;
104
+ paymentAmount: string;
105
+ };
106
+ choosePayment: {
107
+ title: string;
108
+ desc1: string;
109
+ desc2: string;
110
+ title2: string;
111
+ addMethod: string;
112
+ noMethod: string;
113
+ };
114
+ topupCompletion: {
115
+ title: string;
116
+ idInfo: string;
117
+ copied: string;
118
+ };
119
+ userAddress: {
120
+ title: string;
121
+ header: string;
122
+ tagForm: string;
123
+ home: string;
124
+ work: string;
125
+ billing: string;
126
+ footer: string;
127
+ titlePre: string;
128
+ titleApp: string;
129
+ titlePlace: string;
130
+ receiverPre: string;
131
+ receiverPlace: string;
132
+ inputPre: string;
133
+ statePre: string;
134
+ statePlace: string;
135
+ cityPre: string;
136
+ cityPlace: string;
137
+ street1Pre: string;
138
+ streetPlace: string;
139
+ street2Pre: string;
140
+ street2Place: string;
141
+ footerBtn1: string;
142
+ footerBtn2: string;
143
+ displayTitle: string;
144
+ deleteTitle: string;
145
+ delete: string;
146
+ close: string;
147
+ addAddress: string;
148
+ address: string;
149
+ return: string;
150
+ change: string;
151
+ noAddress: string;
152
+ registerAddress: string;
153
+ confirmAddress: string;
154
+ returnEdit: string;
155
+ selectAddress: string;
156
+ };
157
+ errorSheet: {
158
+ title: string;
159
+ title1: string;
160
+ desc: string;
161
+ topup: string;
162
+ topupDesc: string;
163
+ pay: string;
164
+ payDesc: string;
165
+ };
166
+ paymentMethod: {
167
+ expired: string;
168
+ ordinary: string;
169
+ current: string;
170
+ checkGreen: string;
171
+ authenticated: string;
172
+ yjTitle: string;
173
+ ppCardTitle: string;
174
+ brand: string;
175
+ };
176
+ wallet: {
177
+ title: string;
178
+ desc: string;
179
+ eMoney: string;
180
+ nonUsable: string;
181
+ cashBackUsable: string;
182
+ cashBackExpirable: string;
183
+ balance: string;
184
+ };
185
+ softbank: {
186
+ desc: string;
187
+ desc1: string;
188
+ isDisable: string;
189
+ };
190
+ registerEmail: {
191
+ title: string;
192
+ warning: string;
193
+ cancelTxt: string;
194
+ errorTitleAlreadyRegistered: string;
195
+ errorDescriptionAlreadyRegistered: string;
196
+ errorTitle: string;
197
+ errorDescription: string;
198
+ };
199
+ smartLogin: {
200
+ title: string;
201
+ signIn: string;
202
+ continueAs: string;
203
+ };
204
+ smartPay: {
205
+ pay: string;
206
+ paypay: string;
207
+ cashback: string;
208
+ };
209
+ cashbackList: {
210
+ close: string;
211
+ };
212
+ desktopTitle: {
213
+ Payment: string;
214
+ addNewAddress: string;
215
+ editAddress: string;
216
+ paymentCompletion: string;
217
+ getUserAddress: string;
218
+ };
219
+ closeConfirmation: {
220
+ title: string;
221
+ confirm: string;
222
+ cancel: string;
223
+ };
224
+ };
225
+ export declare function getPayPayLanguage(): string;