@paypay/mini-app-js-sdk 1.16.0 → 1.20.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 +4 -4
- 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 -0
- 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 -48
- 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 +31001 -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 +17 -17
- package/dist/model/bridge/getAuthStatus.d.ts +3 -0
- 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 -41
- 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 -0
- package/dist/model/bridge/renderLoginButton.d.ts +2 -0
- package/dist/model/bridge/renderPayButton.d.ts +2 -0
- 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 +324 -323
- package/dist/model/miniAppError.d.ts +57 -55
- package/dist/model/miniAppStatus.d.ts +9 -8
- package/dist/model/permission.d.ts +21 -18
- package/dist/model/uiComponents.d.ts +23 -23
- package/dist/package/action-sheet/index.d.ts +90 -91
- package/dist/package/banner-header/index.vue.d.ts +56 -56
- package/dist/package/button/index.d.ts +69 -69
- package/dist/package/charge-amount-list/index.vue.d.ts +54 -54
- package/dist/package/charge-amount-more-list/index.vue.d.ts +19 -19
- package/dist/package/date-button/index.vue.d.ts +21 -21
- package/dist/package/divider/index.d.ts +21 -22
- package/dist/package/header/index.d.ts +65 -65
- package/dist/package/index.d.ts +16 -16
- package/dist/package/input/index.d.ts +169 -170
- package/dist/package/input/utils.d.ts +10 -10
- package/dist/package/lottie/index.d.ts +61 -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 +21 -21
- package/dist/package/payment-method/Wallet.vue.d.ts +31 -31
- package/dist/package/payment-method/index.d.ts +15 -15
- package/dist/package/payment-method-list/index.vue.d.ts +27 -27
- package/dist/package/payment-type/Bank.vue.d.ts +31 -31
- package/dist/package/payment-type/{CrediCard.vue.d.ts → CreditCard.vue.d.ts} +32 -32
- package/dist/package/payment-type/Sbid.vue.d.ts +17 -17
- package/dist/package/payment-type/Wallet.vue.d.ts +17 -17
- package/dist/package/payment-type/index.d.ts +15 -15
- package/dist/package/select-list/Components.d.ts +65 -65
- package/dist/package/select-list/index.d.ts +73 -73
- package/dist/package/switch/index.d.ts +22 -23
- package/dist/types.d.ts +344 -299
- package/dist/utils/api.d.ts +147 -142
- 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 +5 -5
- package/dist/utils/getLanguage.d.ts +3 -3
- package/dist/utils/helper.d.ts +47 -40
- 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 +26 -22
- package/dist/views/email-registration/App.vue.d.ts +79 -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 +52 -52
- package/dist/views/get-user-address/App.vue.d.ts +44 -36
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +73 -72
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +23 -23
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +33 -33
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +35 -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 +83 -75
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +62 -49
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +32 -28
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +25 -13
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +41 -30
- package/dist/views/get-user-address/hooks/ui-hooks.d.ts +14 -11
- package/dist/views/get-user-address/store/error-handle.d.ts +12 -12
- package/dist/views/get-user-address/store/root.d.ts +14 -12
- package/dist/views/input-address/App.vue.d.ts +36 -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 -36
- package/dist/views/make-payment/Main.vue.d.ts +630 -594
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +25 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +20 -20
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +19 -19
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +16 -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 +53 -53
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +32 -32
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +80 -80
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +49 -49
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +522 -520
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +38 -38
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -23
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +27 -27
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +108 -81
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +36 -36
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +69 -69
- package/dist/views/make-payment/hooks/app-hooks.d.ts +568 -565
- package/dist/views/make-payment/hooks/ui-hooks.d.ts +72 -51
- 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 +3 -3
- package/dist/views/open-app/App.vue.d.ts +28 -28
- package/dist/views/open-map/App.vue.d.ts +28 -28
- package/dist/views/show-alert/App.vue.d.ts +36 -36
- package/dist/views/show-update-warning/App.vue.d.ts +28 -28
- package/dist/views/smart-button/App.vue.d.ts +87 -0
- package/dist/views/take-photo/App.vue.d.ts +25 -25
- package/dist/views/take-photo/helper.d.ts +2 -2
- package/dist/views/topup/App.vue.d.ts +102 -100
- package/dist/views/topup/BannerInfo.vue.d.ts +23 -23
- package/dist/views/topup/CashbackInfo.vue.d.ts +44 -44
- package/dist/views/topup/TopupCompletion.vue.d.ts +26 -26
- package/package.json +9 -16
- package/dist/utils/mock-data/mockData.d.ts +0 -64
- package/dist/utils/ns.d.ts +0 -5
|
@@ -1,323 +1,324 @@
|
|
|
1
|
-
import { ErrorResponse } from '../utils/fetch';
|
|
2
|
-
import { MiniAppErrorType } from './miniAppError';
|
|
3
|
-
import { Amount } from '../types';
|
|
4
|
-
import { UIComponentsError } from './uiComponents';
|
|
5
|
-
export interface PaymentIdQuery {
|
|
6
|
-
merchant?: string;
|
|
7
|
-
sourceInfoApp?: string;
|
|
8
|
-
type?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface PaymentQuery {
|
|
11
|
-
merchant?: string;
|
|
12
|
-
agreeSimilarTransaction: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface PaymentBody {
|
|
15
|
-
merchantPaymentId: string;
|
|
16
|
-
amount: Amount;
|
|
17
|
-
orderReceiptNumber?: string;
|
|
18
|
-
orderDescription?: string;
|
|
19
|
-
orderItems?: Array<any>;
|
|
20
|
-
metaData?: any;
|
|
21
|
-
storeId?: string;
|
|
22
|
-
paymentMethodId: string;
|
|
23
|
-
terminalId: number | string;
|
|
24
|
-
merchantAlias?: string;
|
|
25
|
-
requestedAt?: number;
|
|
26
|
-
productType?: string;
|
|
27
|
-
sourceInfoApp?: string;
|
|
28
|
-
storeInfo?: string;
|
|
29
|
-
metadata?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare type Balance = {
|
|
32
|
-
balance: number;
|
|
33
|
-
currency: 'JPY';
|
|
34
|
-
usable: boolean;
|
|
35
|
-
};
|
|
36
|
-
export declare enum PaymentMethodType {
|
|
37
|
-
WALLET = "WALLET",
|
|
38
|
-
CREDIT_CARD = "CREDIT_CARD",
|
|
39
|
-
BANK = "BANK",
|
|
40
|
-
YMONEY_BANK = "YMONEY_BANK",
|
|
41
|
-
SBID_CARRIER_BILLING = "SBID_CARRIER_BILLING",
|
|
42
|
-
PAY_LATER = "PAY_LATER",
|
|
43
|
-
PAY_LATER_CC = "PAY_LATER_CC"
|
|
44
|
-
}
|
|
45
|
-
declare type MethodBase = {
|
|
46
|
-
paymentMethodId: string;
|
|
47
|
-
bankInfo: null;
|
|
48
|
-
paymentMethodType: PaymentMethodType;
|
|
49
|
-
walletInfo: null;
|
|
50
|
-
descriptionBannerInfo?: BannerInfo;
|
|
51
|
-
};
|
|
52
|
-
export declare type BannerInfo = {
|
|
53
|
-
label?: string;
|
|
54
|
-
title?: string;
|
|
55
|
-
iconImageUrl?: string;
|
|
56
|
-
displayResponse?: UIComponentsError;
|
|
57
|
-
};
|
|
58
|
-
export declare type WalletMethod = Omit<MethodBase, 'walletInfo'> & {
|
|
59
|
-
paymentMethodType: PaymentMethodType.WALLET;
|
|
60
|
-
walletInfo: {
|
|
61
|
-
cashBackBalanceInfo: Balance;
|
|
62
|
-
cashBackExpirableBalanceInfo: Balance;
|
|
63
|
-
emoneyBalanceInfo: Balance;
|
|
64
|
-
prepaidBalanceInfo: Balance;
|
|
65
|
-
walletSummary: {
|
|
66
|
-
totalBalanceInfo: Balance;
|
|
67
|
-
payoutableBalanceInfo: Balance;
|
|
68
|
-
transferableBalanceInfo: Balance;
|
|
69
|
-
};
|
|
70
|
-
walletDetail: {
|
|
71
|
-
emoneyBalanceInfo?: Balance;
|
|
72
|
-
prepaidBalanceInfo?: Balance;
|
|
73
|
-
cashBackBalanceInfo?: Balance;
|
|
74
|
-
cashBackExpirableBalanceInfo?: Balance;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export declare enum CreditTypes {
|
|
79
|
-
VISA = "VISA",
|
|
80
|
-
MASTER = "MASTER",
|
|
81
|
-
JCB = "JCB",
|
|
82
|
-
DINERS = "D",
|
|
83
|
-
AMEX = "A",
|
|
84
|
-
OTHER = "O"
|
|
85
|
-
}
|
|
86
|
-
export declare enum PaymentMethodStatus {
|
|
87
|
-
ACTIVATED = "ACTIVATED",
|
|
88
|
-
OFF = "OFF",
|
|
89
|
-
APPLYING = "APPLYING",
|
|
90
|
-
MAINTENANCE = "MAINTENANCE",
|
|
91
|
-
BUSY = "BUSY"
|
|
92
|
-
}
|
|
93
|
-
export declare type CreditMethod = Omit<MethodBase, 'creditCardInfo'> & {
|
|
94
|
-
paymentMethodId: Number;
|
|
95
|
-
paymentMethodType: PaymentMethodType.CREDIT_CARD;
|
|
96
|
-
paymentMethodDescriptionInfo: any;
|
|
97
|
-
creditCardInfo: {
|
|
98
|
-
brand: CreditTypes;
|
|
99
|
-
isAuthenticated: boolean;
|
|
100
|
-
isExpired: boolean;
|
|
101
|
-
isYjCard: boolean;
|
|
102
|
-
last4digits: string;
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
export declare type
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
export declare
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
export declare
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
export
|
|
1
|
+
import { ErrorResponse } from '../utils/fetch';
|
|
2
|
+
import { MiniAppErrorType } from './miniAppError';
|
|
3
|
+
import { Amount } from '../types';
|
|
4
|
+
import { UIComponentsError } from './uiComponents';
|
|
5
|
+
export interface PaymentIdQuery {
|
|
6
|
+
merchant?: string;
|
|
7
|
+
sourceInfoApp?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PaymentQuery {
|
|
11
|
+
merchant?: string;
|
|
12
|
+
agreeSimilarTransaction: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface PaymentBody {
|
|
15
|
+
merchantPaymentId: string;
|
|
16
|
+
amount: Amount;
|
|
17
|
+
orderReceiptNumber?: string;
|
|
18
|
+
orderDescription?: string;
|
|
19
|
+
orderItems?: Array<any>;
|
|
20
|
+
metaData?: any;
|
|
21
|
+
storeId?: string;
|
|
22
|
+
paymentMethodId: string;
|
|
23
|
+
terminalId: number | string;
|
|
24
|
+
merchantAlias?: string;
|
|
25
|
+
requestedAt?: number;
|
|
26
|
+
productType?: string;
|
|
27
|
+
sourceInfoApp?: string;
|
|
28
|
+
storeInfo?: string;
|
|
29
|
+
metadata?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare type Balance = {
|
|
32
|
+
balance: number;
|
|
33
|
+
currency: 'JPY';
|
|
34
|
+
usable: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare enum PaymentMethodType {
|
|
37
|
+
WALLET = "WALLET",
|
|
38
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
39
|
+
BANK = "BANK",
|
|
40
|
+
YMONEY_BANK = "YMONEY_BANK",
|
|
41
|
+
SBID_CARRIER_BILLING = "SBID_CARRIER_BILLING",
|
|
42
|
+
PAY_LATER = "PAY_LATER",
|
|
43
|
+
PAY_LATER_CC = "PAY_LATER_CC"
|
|
44
|
+
}
|
|
45
|
+
declare type MethodBase = {
|
|
46
|
+
paymentMethodId: string;
|
|
47
|
+
bankInfo: null;
|
|
48
|
+
paymentMethodType: PaymentMethodType;
|
|
49
|
+
walletInfo: null;
|
|
50
|
+
descriptionBannerInfo?: BannerInfo;
|
|
51
|
+
};
|
|
52
|
+
export declare type BannerInfo = {
|
|
53
|
+
label?: string;
|
|
54
|
+
title?: string;
|
|
55
|
+
iconImageUrl?: string;
|
|
56
|
+
displayResponse?: UIComponentsError;
|
|
57
|
+
};
|
|
58
|
+
export declare type WalletMethod = Omit<MethodBase, 'walletInfo'> & {
|
|
59
|
+
paymentMethodType: PaymentMethodType.WALLET;
|
|
60
|
+
walletInfo: {
|
|
61
|
+
cashBackBalanceInfo: Balance;
|
|
62
|
+
cashBackExpirableBalanceInfo: Balance;
|
|
63
|
+
emoneyBalanceInfo: Balance;
|
|
64
|
+
prepaidBalanceInfo: Balance;
|
|
65
|
+
walletSummary: {
|
|
66
|
+
totalBalanceInfo: Balance;
|
|
67
|
+
payoutableBalanceInfo: Balance;
|
|
68
|
+
transferableBalanceInfo: Balance;
|
|
69
|
+
};
|
|
70
|
+
walletDetail: {
|
|
71
|
+
emoneyBalanceInfo?: Balance;
|
|
72
|
+
prepaidBalanceInfo?: Balance;
|
|
73
|
+
cashBackBalanceInfo?: Balance;
|
|
74
|
+
cashBackExpirableBalanceInfo?: Balance;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare enum CreditTypes {
|
|
79
|
+
VISA = "VISA",
|
|
80
|
+
MASTER = "MASTER",
|
|
81
|
+
JCB = "JCB",
|
|
82
|
+
DINERS = "D",
|
|
83
|
+
AMEX = "A",
|
|
84
|
+
OTHER = "O"
|
|
85
|
+
}
|
|
86
|
+
export declare enum PaymentMethodStatus {
|
|
87
|
+
ACTIVATED = "ACTIVATED",
|
|
88
|
+
OFF = "OFF",
|
|
89
|
+
APPLYING = "APPLYING",
|
|
90
|
+
MAINTENANCE = "MAINTENANCE",
|
|
91
|
+
BUSY = "BUSY"
|
|
92
|
+
}
|
|
93
|
+
export declare type CreditMethod = Omit<MethodBase, 'creditCardInfo'> & {
|
|
94
|
+
paymentMethodId: Number;
|
|
95
|
+
paymentMethodType: PaymentMethodType.CREDIT_CARD;
|
|
96
|
+
paymentMethodDescriptionInfo: any;
|
|
97
|
+
creditCardInfo: {
|
|
98
|
+
brand: CreditTypes;
|
|
99
|
+
isAuthenticated: boolean;
|
|
100
|
+
isExpired: boolean;
|
|
101
|
+
isYjCard: boolean;
|
|
102
|
+
last4digits: string;
|
|
103
|
+
ccType: string;
|
|
104
|
+
paymentMethodStatus: PaymentMethodStatus;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export declare enum bankCode {
|
|
108
|
+
MIZUHO_BANK_CODE = "0001",
|
|
109
|
+
MUFJ_BANK_CODE = "0005",
|
|
110
|
+
SMBC_BANK_CODE = "0009",
|
|
111
|
+
RESONA_BANK_CODE = "0010",
|
|
112
|
+
S_RESONA_BANK_CODE = "0017",
|
|
113
|
+
JNB_BANK_CODE = "0033",
|
|
114
|
+
YUCHO_BANK_CODE = "9900",
|
|
115
|
+
AEON_BANK_CODE = "0040",
|
|
116
|
+
JIBUN_BANK_CODE = "0039",
|
|
117
|
+
SBI_BANK_CODE = "0038"
|
|
118
|
+
}
|
|
119
|
+
export declare enum status {
|
|
120
|
+
'ACTIVATED' = "",
|
|
121
|
+
'OFF' = "\u7121\u52B9",
|
|
122
|
+
'APPLYING' = "\u5229\u7528\u4E0D\u53EF",
|
|
123
|
+
'MAINTENANCE' = "\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u4E2D",
|
|
124
|
+
'BUSY' = "\u5229\u7528\u4E0D\u53EF"
|
|
125
|
+
}
|
|
126
|
+
export declare type BankInfo = {
|
|
127
|
+
paymentMethodStatusLabel: string;
|
|
128
|
+
paymentMethodStatus: PaymentMethodStatus;
|
|
129
|
+
bankName: string;
|
|
130
|
+
bankLogoUrl: string;
|
|
131
|
+
bankCode: string;
|
|
132
|
+
bankCardImage: {
|
|
133
|
+
cardUrl: string;
|
|
134
|
+
textColor: string;
|
|
135
|
+
uiColor: string;
|
|
136
|
+
};
|
|
137
|
+
bankBranchName: string;
|
|
138
|
+
bankBranchCode: string;
|
|
139
|
+
bankAccountType: string;
|
|
140
|
+
bankAccountNumberLast2digits: string;
|
|
141
|
+
};
|
|
142
|
+
export declare type BankMethod = Omit<MethodBase, 'bankInfo'> & {
|
|
143
|
+
paymentMethodId: Number;
|
|
144
|
+
paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
|
|
145
|
+
paymentMethodDescriptionInfo: any;
|
|
146
|
+
bankInfo: BankInfo;
|
|
147
|
+
};
|
|
148
|
+
export declare type SbidBankMethod = Omit<MethodBase, 'sbidCarrierBillingInfo'> & {
|
|
149
|
+
paymentMethodId: Number;
|
|
150
|
+
paymentMethodType: PaymentMethodType.SBID_CARRIER_BILLING;
|
|
151
|
+
paymentMethodDescriptionInfo: any;
|
|
152
|
+
sbidCarrierBillingInfo: {
|
|
153
|
+
paymentMethodStatus: PaymentMethodStatus;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
export declare type PayLaterMethod = Omit<MethodBase, ''> & {
|
|
157
|
+
paymentMethodId: Number;
|
|
158
|
+
paymentMethodType: PaymentMethodType.PAY_LATER | PaymentMethodType.PAY_LATER_CC;
|
|
159
|
+
paymentMethodDescriptionInfo: any;
|
|
160
|
+
};
|
|
161
|
+
export declare type ResponseBase = {
|
|
162
|
+
status: number;
|
|
163
|
+
signed: any;
|
|
164
|
+
uiComponents?: {
|
|
165
|
+
displayErrorResponse: UIComponentsError;
|
|
166
|
+
};
|
|
167
|
+
unsigned: {
|
|
168
|
+
resultInfo: {
|
|
169
|
+
code: MiniAppErrorType;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
export declare type PaymentMethod = WalletMethod | CreditMethod | BankMethod | SbidBankMethod | PayLaterMethod;
|
|
174
|
+
export declare type getPaymentMethodsResponse = ResponseBase & {
|
|
175
|
+
unsigned: {
|
|
176
|
+
data: {
|
|
177
|
+
payload: {
|
|
178
|
+
paymentMethodList: PaymentMethod[];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export declare const getPaymentMethods: (params: any) => Promise<ErrorResponse | getPaymentMethodsResponse>;
|
|
184
|
+
export declare type PaymentResult = {
|
|
185
|
+
requestedAt: number;
|
|
186
|
+
storeId: string;
|
|
187
|
+
amount: Amount;
|
|
188
|
+
statusLabelString: string;
|
|
189
|
+
statusLabelColor: string;
|
|
190
|
+
userAuthorizationId: string;
|
|
191
|
+
acceptedAt: number;
|
|
192
|
+
merchantName: string;
|
|
193
|
+
orderDescription: string;
|
|
194
|
+
status: 'COMPLETED' | 'AUTHORIZED';
|
|
195
|
+
paymentId: string;
|
|
196
|
+
expiresAt: number;
|
|
197
|
+
};
|
|
198
|
+
export declare type MakePaymentResponse = ResponseBase & {
|
|
199
|
+
signed: {
|
|
200
|
+
jws: string;
|
|
201
|
+
};
|
|
202
|
+
unsigned: {
|
|
203
|
+
data: PaymentResult;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
export declare const makePayment: (queryParams: PaymentQuery, body: PaymentBody, isAuthorization: Boolean) => Promise<{
|
|
207
|
+
isSuccess: boolean;
|
|
208
|
+
} & (ErrorResponse | MakePaymentResponse)>;
|
|
209
|
+
export declare type AppealDescription = {
|
|
210
|
+
backgroundColor: string;
|
|
211
|
+
color: string;
|
|
212
|
+
headerIcon: string | null;
|
|
213
|
+
isBold: true;
|
|
214
|
+
linkUrl: string;
|
|
215
|
+
text: string;
|
|
216
|
+
};
|
|
217
|
+
export declare type InsufficientBalanceInfo = {
|
|
218
|
+
appealDescription: AppealDescription;
|
|
219
|
+
insufficientAmount: number;
|
|
220
|
+
paymentMethodList: PaymentMethod[];
|
|
221
|
+
prepaidOnly: boolean | null;
|
|
222
|
+
recommendedTopupAmount: number;
|
|
223
|
+
totalBalanceInfo: {
|
|
224
|
+
balance: number;
|
|
225
|
+
currency: 'JPY';
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
export declare type ConsultError = {
|
|
229
|
+
backendResultCode: string;
|
|
230
|
+
displayErrorResponse?: UIComponentsError;
|
|
231
|
+
insufficientAmount: number;
|
|
232
|
+
insufficientBalanceInfo: InsufficientBalanceInfo;
|
|
233
|
+
paymentMethodList: PaymentMethod[];
|
|
234
|
+
recommendedTopupAmount: number;
|
|
235
|
+
};
|
|
236
|
+
export declare type ConsultResponse = ResponseBase & {
|
|
237
|
+
unsigned: {
|
|
238
|
+
resultInfo: any;
|
|
239
|
+
data: {
|
|
240
|
+
error?: ConsultError;
|
|
241
|
+
header: {
|
|
242
|
+
resultCode: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
export declare const getConsult: ({ merchant, amount, productType, }: {
|
|
248
|
+
merchant: string;
|
|
249
|
+
amount: number;
|
|
250
|
+
productType: string;
|
|
251
|
+
}) => Promise<ErrorResponse | ConsultResponse>;
|
|
252
|
+
export declare enum CashBackAnimationType {
|
|
253
|
+
TIER_CAMPAIGN_BOTTOM = "TIER_CAMPAIGN_BOTTOM",
|
|
254
|
+
LOTTERY = "LOTTERY",
|
|
255
|
+
TIER_CAMPAIGN_FULL = "TIER_CAMPAIGN_FULL"
|
|
256
|
+
}
|
|
257
|
+
export declare type CashBackDetailAnimation = {
|
|
258
|
+
soundUrl: string;
|
|
259
|
+
campaignUrl: string;
|
|
260
|
+
campaignHomeUrl?: string;
|
|
261
|
+
amount: number;
|
|
262
|
+
showAgeConfirmFlag: boolean;
|
|
263
|
+
shareDetail?: {
|
|
264
|
+
text: string;
|
|
265
|
+
imageUrl: string;
|
|
266
|
+
};
|
|
267
|
+
animationType: CashBackAnimationType;
|
|
268
|
+
optionalText: string;
|
|
269
|
+
campaignId: string;
|
|
270
|
+
url: string;
|
|
271
|
+
};
|
|
272
|
+
declare type CashBackDetailInfo = {
|
|
273
|
+
amountText: string;
|
|
274
|
+
deeplinkUrl: string;
|
|
275
|
+
campaignName: string;
|
|
276
|
+
campaignId: string;
|
|
277
|
+
status: string;
|
|
278
|
+
isMeti: boolean;
|
|
279
|
+
bannerId?: string;
|
|
280
|
+
optionalText?: string;
|
|
281
|
+
googleAnalyticsInfo?: any;
|
|
282
|
+
};
|
|
283
|
+
export declare type CashBackDetail = {
|
|
284
|
+
cashBackAmount: number;
|
|
285
|
+
cashBackAmountText?: string;
|
|
286
|
+
cashBackDetailLinkLabel: string;
|
|
287
|
+
cashBackDetailList: CashBackDetailInfo[];
|
|
288
|
+
animationInfoList: CashBackDetailAnimation[];
|
|
289
|
+
optionalText: string;
|
|
290
|
+
animationUrl: string;
|
|
291
|
+
couponCashbackDetail: string;
|
|
292
|
+
googleAnalyticsInfo: any;
|
|
293
|
+
cashBackDescription: string;
|
|
294
|
+
cashBackDetailListDescription: string;
|
|
295
|
+
lotteryAnimationUrl?: string;
|
|
296
|
+
};
|
|
297
|
+
export declare type CashBackDetailResponse = ResponseBase & {
|
|
298
|
+
unsigned: {
|
|
299
|
+
data: {
|
|
300
|
+
payload: CashBackDetail;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
export declare const getCashBackDetails: (paymentId: string) => Promise<ErrorResponse | CashBackDetailResponse>;
|
|
305
|
+
export declare type SendAgePayload = {
|
|
306
|
+
month: number;
|
|
307
|
+
orderId: string;
|
|
308
|
+
year: number;
|
|
309
|
+
orderType: 'ACQUIRING';
|
|
310
|
+
amount: number;
|
|
311
|
+
date: number;
|
|
312
|
+
campaignId: string;
|
|
313
|
+
};
|
|
314
|
+
export declare type SendAgeResponse = ResponseBase & {
|
|
315
|
+
unsigned: {
|
|
316
|
+
data: {
|
|
317
|
+
payload: {
|
|
318
|
+
isEligibleForCashBack: boolean;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
export declare const sendAge: (payload: SendAgePayload) => Promise<ErrorResponse | SendAgeResponse>;
|
|
324
|
+
export {};
|