@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.
- package/dist/composition-api/dom/index.d.ts +5 -4
- package/dist/composition-api/dom/useCountDown.d.ts +20 -0
- package/dist/composition-api/dom/useEventListener.d.ts +8 -8
- package/dist/composition-api/dom/useHorizontalScrollDirective.d.ts +4 -4
- package/dist/composition-api/dom/useOnMountedOrActivated.d.ts +1 -1
- package/dist/composition-api/dom/useVerticalScrollDirective.d.ts +4 -4
- package/dist/composition-api/useErrorSheet.d.ts +3 -3
- package/dist/composition-api/useGetUserAddress.d.ts +2 -2
- package/dist/composition-api/useHeightProperties.d.ts +19 -19
- package/dist/composition-api/useInpuAddress.d.ts +2 -2
- package/dist/composition-api/useMakePayment.d.ts +3 -3
- package/dist/composition-api/useOpenApp.d.ts +3 -3
- package/dist/composition-api/useOpenMap.d.ts +3 -3
- package/dist/composition-api/useRegisterEmail.d.ts +2 -2
- package/dist/composition-api/useRenderSmartButton.d.ts +3 -3
- package/dist/composition-api/useShowAlert.d.ts +3 -3
- package/dist/composition-api/useShowUpdateWarning.d.ts +3 -3
- package/dist/composition-api/useTakePhoto.d.ts +3 -3
- package/dist/composition-api/useTopup.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/jsbridge-core/index.d.ts +4 -4
- package/dist/jsbridge-core/jsbridge.d.ts +62 -62
- package/dist/jsbridge-core/lib/browser.d.ts +3 -3
- package/dist/jsbridge-core/lib/logger.d.ts +9 -9
- package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -2
- package/dist/jsbridge-core/module.d.ts +15 -14
- package/dist/jsbridge-core/namespace.d.ts +2 -2
- package/dist/jsbridge-core/paypay-jsbridge.d.ts +17 -16
- package/dist/mini-app-api.d.ts +51 -51
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.d.ts +9 -9
- package/dist/mini-app-js-sdk.es.js +33675 -1
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +3 -3
- package/dist/model/bridge/checkPaymentMethod.d.ts +2 -2
- package/dist/model/bridge/closeApp.d.ts +2 -2
- package/dist/model/bridge/copyToClipboard.d.ts +2 -2
- package/dist/model/bridge/debug.d.ts +3 -3
- package/dist/model/bridge/getAppDetail.d.ts +3 -17
- package/dist/model/bridge/getAuthStatus.d.ts +3 -3
- package/dist/model/bridge/getBalance.d.ts +2 -2
- package/dist/model/bridge/getConfigure.d.ts +39 -39
- package/dist/model/bridge/getDeviceInformation.d.ts +3 -3
- package/dist/model/bridge/getKycInformation.d.ts +2 -2
- package/dist/model/bridge/getPermissionStatus.d.ts +2 -2
- package/dist/model/bridge/getPlatformInformation.d.ts +3 -3
- package/dist/model/bridge/getSessionData.d.ts +2 -2
- package/dist/model/bridge/getStorageData.d.ts +2 -2
- package/dist/model/bridge/getTopBarHeight.d.ts +3 -3
- package/dist/model/bridge/getUAID.d.ts +3 -3
- package/dist/model/bridge/getUserAddress.d.ts +2 -2
- package/dist/model/bridge/getUserLocation.d.ts +2 -2
- package/dist/model/bridge/getUserProfile.d.ts +3 -3
- package/dist/model/bridge/index.d.ts +43 -43
- package/dist/model/bridge/init.d.ts +2 -2
- package/dist/model/bridge/inputAddress.d.ts +2 -2
- package/dist/model/bridge/logout.d.ts +3 -3
- package/dist/model/bridge/makePayment.d.ts +2 -2
- package/dist/model/bridge/openApp.d.ts +2 -2
- package/dist/model/bridge/openMap.d.ts +2 -2
- package/dist/model/bridge/openWebview.d.ts +3 -3
- package/dist/model/bridge/registerEmail.d.ts +2 -2
- package/dist/model/bridge/registerKyc.d.ts +2 -2
- package/dist/model/bridge/removeStorageData.d.ts +2 -2
- package/dist/model/bridge/render.d.ts +2 -2
- package/dist/model/bridge/renderLoginButton.d.ts +6 -2
- package/dist/model/bridge/renderPayButton.d.ts +6 -2
- package/dist/model/bridge/request.d.ts +2 -2
- package/dist/model/bridge/requestInternal.d.ts +2 -2
- package/dist/model/bridge/scanCode.d.ts +3 -3
- package/dist/model/bridge/setSessionData.d.ts +2 -2
- package/dist/model/bridge/setStorageData.d.ts +2 -2
- package/dist/model/bridge/setTitle.d.ts +2 -2
- package/dist/model/bridge/share.d.ts +2 -2
- package/dist/model/bridge/showAlert.d.ts +2 -2
- package/dist/model/bridge/showErrorSheet.d.ts +2 -2
- package/dist/model/bridge/showUpdateWarning.d.ts +2 -2
- package/dist/model/bridge/startMultiFactorAuth.d.ts +2 -2
- package/dist/model/bridge/takePhoto.d.ts +2 -2
- package/dist/model/bridge/topup.d.ts +2 -2
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +3 -3
- package/dist/model/makePayment.d.ts +334 -324
- package/dist/model/miniAppError.d.ts +57 -57
- package/dist/model/miniAppStatus.d.ts +9 -9
- package/dist/model/permission.d.ts +21 -21
- package/dist/model/uiComponents.d.ts +24 -23
- package/dist/package/action-sheet/index.d.ts +97 -91
- package/dist/package/banner-header/index.vue.d.ts +56 -56
- package/dist/package/button/index.d.ts +77 -69
- package/dist/package/charge-amount-list/index.vue.d.ts +48 -54
- package/dist/package/charge-amount-more-list/index.vue.d.ts +23 -19
- package/dist/package/date-button/index.vue.d.ts +19 -21
- package/dist/package/desktop-header/index.d.ts +21 -0
- package/dist/package/divider/index.d.ts +21 -22
- package/dist/package/header/index.d.ts +65 -65
- package/dist/package/index.d.ts +17 -16
- package/dist/package/input/index.d.ts +209 -170
- package/dist/package/input/utils.d.ts +10 -10
- package/dist/package/lottie/index.d.ts +58 -62
- package/dist/package/overlay/index.d.ts +44 -45
- package/dist/package/payment-method/Bank.vue.d.ts +35 -35
- package/dist/package/payment-method/CreditCard.vue.d.ts +42 -42
- package/dist/package/payment-method/SbidBank.vue.d.ts +279 -21
- package/dist/package/payment-method/Wallet.vue.d.ts +289 -31
- package/dist/package/payment-method/index.d.ts +15 -15
- package/dist/package/payment-method-list/index.vue.d.ts +39 -27
- package/dist/package/payment-type/Bank.vue.d.ts +31 -31
- package/dist/package/payment-type/CreditCard.vue.d.ts +32 -32
- package/dist/package/payment-type/Sbid.vue.d.ts +275 -17
- package/dist/package/payment-type/Wallet.vue.d.ts +276 -17
- package/dist/package/payment-type/index.d.ts +13 -15
- package/dist/package/select-list/Components.d.ts +77 -65
- package/dist/package/select-list/index.d.ts +82 -73
- package/dist/package/switch/index.d.ts +22 -23
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +286 -0
- package/dist/types.d.ts +376 -344
- package/dist/utils/api.d.ts +168 -147
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/create/bem.d.ts +6 -6
- package/dist/utils/create/index.d.ts +5 -5
- package/dist/utils/fetch.d.ts +16 -16
- package/dist/utils/getImages.d.ts +36 -5
- package/dist/utils/getLanguage.d.ts +225 -3
- package/dist/utils/helper.d.ts +44 -47
- package/dist/utils/ip.d.ts +2 -2
- package/dist/utils/miniAppRequest.d.ts +9 -9
- package/dist/utils/popstateHandler.d.ts +4 -4
- package/dist/utils/secondary-list.d.ts +1 -1
- package/dist/utils/storage.d.ts +28 -26
- package/dist/utils/uiConstants.d.ts +1 -0
- package/dist/utils/useBreakpoints.d.ts +5 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/views/email-registration/App.vue.d.ts +302 -79
- package/dist/views/email-registration/components/EmailButton.vue.d.ts +45 -45
- package/dist/views/email-registration/components/icons.d.ts +2 -2
- package/dist/views/email-registration/hooks/callback.d.ts +7 -7
- package/dist/views/email-registration/hooks/ui.d.ts +29 -29
- package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +52 -52
- package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +24 -24
- package/dist/views/error-sheet/Index.vue.d.ts +310 -52
- package/dist/views/get-user-address/App.vue.d.ts +52 -52
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +307 -73
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +281 -23
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +276 -33
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +258 -35
- package/dist/views/get-user-address/Sheet/AddSheet/constants.d.ts +4 -4
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +311 -83
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +79 -70
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +264 -32
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +249 -25
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +332 -49
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +240 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +259 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +254 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +246 -0
- package/dist/views/get-user-address/hooks/ui-hooks.d.ts +57 -14
- package/dist/views/get-user-address/store/error-handle.d.ts +13 -12
- package/dist/views/get-user-address/store/root.d.ts +18 -14
- package/dist/views/input-address/App.vue.d.ts +35 -36
- package/dist/views/input-address/hook/app.d.ts +13 -13
- package/dist/views/input-address/hook/error-handle.d.ts +10 -10
- package/dist/views/input-address/hook/root.d.ts +10 -10
- package/dist/views/make-payment/App.vue.d.ts +52 -60
- package/dist/views/make-payment/Main.vue.d.ts +197 -638
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +247 -25
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +244 -20
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +277 -19
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +274 -16
- package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +24 -24
- package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +26 -26
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +311 -53
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +269 -32
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +422 -80
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +308 -49
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +833 -522
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +264 -38
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +265 -0
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -23
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +250 -27
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +328 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +428 -108
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +70 -36
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +354 -69
- package/dist/views/make-payment/hooks/app-hooks.d.ts +381 -568
- package/dist/views/make-payment/hooks/ui-hooks.d.ts +87 -72
- package/dist/views/make-payment/store/age-confirm.d.ts +9 -9
- package/dist/views/make-payment/store/handle-error.d.ts +36 -36
- package/dist/views/make-payment/store/root.d.ts +22 -22
- package/dist/views/make-payment/store/util-for-handle-error.d.ts +16 -16
- package/dist/views/make-payment/utils/paymentMethod.d.ts +5 -3
- package/dist/views/open-app/App.vue.d.ts +286 -28
- package/dist/views/open-map/App.vue.d.ts +251 -28
- package/dist/views/show-alert/App.vue.d.ts +36 -36
- package/dist/views/show-update-warning/App.vue.d.ts +286 -28
- package/dist/views/smart-button/App.vue.d.ts +87 -87
- package/dist/views/take-photo/App.vue.d.ts +248 -25
- package/dist/views/take-photo/helper.d.ts +2 -2
- package/dist/views/topup/App.vue.d.ts +378 -100
- package/dist/views/topup/BannerInfo.vue.d.ts +27 -23
- package/dist/views/topup/CashbackInfo.vue.d.ts +267 -44
- package/dist/views/topup/TopupCompletion.vue.d.ts +286 -26
- package/package.json +12 -18
- package/dist/utils/mock-data/mockData.d.ts +0 -64
package/dist/utils/api.d.ts
CHANGED
|
@@ -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:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export declare
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
export declare function
|
|
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 {};
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -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]:
|
|
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;
|
package/dist/utils/fetch.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
declare const createHeaderMiniAppApi: (urlEndpoint: string, customHeaders
|
|
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?:
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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;
|