@paypay/mini-app-js-sdk 1.14.2 → 1.17.1
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/useMakePayment.d.ts +1 -1
- package/dist/composition-api/useRenderSmartButton.d.ts +3 -0
- package/dist/mini-app-api.d.ts +4 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +1 -1
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/getAuthStatus.d.ts +3 -0
- package/dist/model/bridge/index.d.ts +2 -0
- package/dist/model/bridge/makePayment.d.ts +1 -1
- 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/makePayment.d.ts +2 -1
- package/dist/model/miniAppError.d.ts +7 -3
- package/dist/model/miniAppStatus.d.ts +3 -1
- package/dist/model/permission.d.ts +1 -0
- package/dist/package/action-sheet/index.d.ts +14 -1
- package/dist/package/banner-header/index.vue.d.ts +9 -1
- package/dist/package/button/index.d.ts +13 -1
- package/dist/package/charge-amount-list/index.vue.d.ts +9 -2
- package/dist/package/charge-amount-more-list/index.vue.d.ts +2 -0
- package/dist/package/date-button/index.vue.d.ts +2 -0
- package/dist/package/divider/index.d.ts +3 -0
- package/dist/package/header/index.d.ts +14 -3
- package/dist/package/input/index.d.ts +31 -2
- package/dist/package/lottie/index.d.ts +10 -1
- package/dist/package/overlay/index.d.ts +6 -0
- package/dist/package/payment-method/Bank.vue.d.ts +3 -0
- package/dist/package/payment-method/CreditCard.vue.d.ts +3 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +2 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +2 -0
- package/dist/package/payment-method/index.d.ts +2 -0
- package/dist/package/payment-method-list/index.vue.d.ts +3 -0
- package/dist/package/payment-type/Bank.vue.d.ts +3 -0
- package/dist/package/payment-type/{CrediCard.vue.d.ts → CreditCard.vue.d.ts} +3 -1
- package/dist/package/payment-type/Sbid.vue.d.ts +2 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +2 -0
- package/dist/package/payment-type/index.d.ts +2 -0
- package/dist/package/select-list/Components.d.ts +9 -1
- package/dist/package/select-list/index.d.ts +12 -1
- package/dist/package/switch/index.d.ts +7 -1
- package/dist/types.d.ts +46 -1
- package/dist/utils/api.d.ts +5 -0
- package/dist/utils/helper.d.ts +7 -0
- package/dist/utils/storage.d.ts +4 -0
- package/dist/views/email-registration/App.vue.d.ts +11 -3
- package/dist/views/email-registration/components/EmailButton.vue.d.ts +9 -1
- package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +7 -1
- package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +6 -1
- package/dist/views/error-sheet/Index.vue.d.ts +13 -4
- package/dist/views/get-user-address/App.vue.d.ts +21 -1
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +12 -2
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +6 -1
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +6 -1
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +23 -4
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +29 -3
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +9 -2
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +17 -2
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +28 -3
- package/dist/views/get-user-address/hooks/ui-hooks.d.ts +4 -1
- package/dist/views/get-user-address/store/root.d.ts +2 -0
- package/dist/views/input-address/App.vue.d.ts +6 -2
- package/dist/views/make-payment/App.vue.d.ts +29 -1
- package/dist/views/make-payment/Main.vue.d.ts +49 -1
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +25 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +5 -1
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +11 -2
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +8 -1
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +6 -1
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +42 -5
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +7 -0
- package/dist/views/make-payment/hooks/app-hooks.d.ts +5 -2
- package/dist/views/make-payment/hooks/ui-hooks.d.ts +23 -2
- package/dist/views/make-payment/store/root.d.ts +2 -2
- package/dist/views/make-payment/store/util-for-handle-error.d.ts +1 -1
- package/dist/views/open-app/App.vue.d.ts +6 -1
- package/dist/views/open-map/App.vue.d.ts +6 -1
- package/dist/views/show-alert/App.vue.d.ts +8 -1
- package/dist/views/show-update-warning/App.vue.d.ts +6 -1
- package/dist/views/smart-button/App.vue.d.ts +87 -0
- package/dist/views/take-photo/App.vue.d.ts +6 -1
- package/dist/views/topup/App.vue.d.ts +6 -1
- package/dist/views/topup/BannerInfo.vue.d.ts +5 -1
- package/dist/views/topup/CashbackInfo.vue.d.ts +8 -1
- package/dist/views/topup/TopupCompletion.vue.d.ts +5 -1
- package/package.json +21 -21
- package/dist/utils/ns.d.ts +0 -5
|
@@ -25,6 +25,12 @@ export declare const OverLay: import("vue").DefineComponent<{
|
|
|
25
25
|
emit: (event: string, ...args: any[]) => void;
|
|
26
26
|
preventSwipe: (e: Event) => void;
|
|
27
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
28
|
+
show?: unknown;
|
|
29
|
+
appear?: unknown;
|
|
30
|
+
click?: unknown;
|
|
31
|
+
onTouchstart?: unknown;
|
|
32
|
+
dontPreventSwipe?: unknown;
|
|
33
|
+
} & {
|
|
28
34
|
show: boolean;
|
|
29
35
|
appear: boolean;
|
|
30
36
|
click: Function;
|
|
@@ -24,6 +24,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
getClass: string;
|
|
25
25
|
style: Record<string, string>;
|
|
26
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
27
|
+
bank?: unknown;
|
|
28
|
+
round?: unknown;
|
|
29
|
+
} & {
|
|
27
30
|
bank: BankMethod;
|
|
28
31
|
round: boolean;
|
|
29
32
|
} & {}>, {
|
|
@@ -31,6 +31,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
}>;
|
|
32
32
|
isExpired: ComputedRef<boolean>;
|
|
33
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
34
|
+
credit?: unknown;
|
|
35
|
+
round?: unknown;
|
|
36
|
+
} & {
|
|
34
37
|
credit: CreditMethod;
|
|
35
38
|
round: boolean;
|
|
36
39
|
} & {}>, {
|
|
@@ -14,6 +14,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
lg: any;
|
|
15
15
|
style: Record<string, string>;
|
|
16
16
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
17
|
+
sbid?: unknown;
|
|
18
|
+
} & {
|
|
17
19
|
sbid: SbidBankMethod;
|
|
18
20
|
} & {}>, {}>;
|
|
19
21
|
export default _default;
|
|
@@ -24,6 +24,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
images: any;
|
|
25
25
|
lg: any;
|
|
26
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
27
|
+
wallet?: unknown;
|
|
28
|
+
} & {
|
|
27
29
|
wallet: WalletMethod;
|
|
28
30
|
} & {}>, {}>;
|
|
29
31
|
export default _default;
|
|
@@ -7,6 +7,8 @@ export declare const PaymentMethod: import("vue").DefineComponent<{
|
|
|
7
7
|
default: () => void;
|
|
8
8
|
};
|
|
9
9
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
10
|
+
paymentMethod?: unknown;
|
|
11
|
+
} & {
|
|
10
12
|
paymentMethod: TPaymentMethod;
|
|
11
13
|
} & {}>, {
|
|
12
14
|
paymentMethod: TPaymentMethod;
|
|
@@ -15,6 +15,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
style: Record<string, string>;
|
|
16
16
|
select: (index: number) => void;
|
|
17
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
18
|
+
paymentMethods?: unknown;
|
|
19
|
+
selectPaymentIndex?: unknown;
|
|
20
|
+
} & {
|
|
18
21
|
paymentMethods: TPaymentMethod[];
|
|
19
22
|
selectPaymentIndex: number;
|
|
20
23
|
} & {}>, {
|
|
@@ -20,6 +20,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
}>;
|
|
21
21
|
style: Record<string, string>;
|
|
22
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
23
|
+
bank?: unknown;
|
|
24
|
+
round?: unknown;
|
|
25
|
+
} & {
|
|
23
26
|
bank: BankMethod;
|
|
24
27
|
round: boolean;
|
|
25
28
|
} & {}>, {
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
}>;
|
|
16
16
|
creditInfo: import("vue").ComputedRef<{
|
|
17
17
|
label: any;
|
|
18
|
-
logo:
|
|
18
|
+
logo: any;
|
|
19
19
|
style?: undefined;
|
|
20
20
|
} | {
|
|
21
21
|
label: any;
|
|
@@ -25,6 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
paymentMethodStatus: import("vue").ComputedRef<status>;
|
|
26
26
|
style: Record<string, string>;
|
|
27
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
28
|
+
credit?: unknown;
|
|
29
|
+
} & {
|
|
28
30
|
credit: CreditMethod;
|
|
29
31
|
} & {}>, {}>;
|
|
30
32
|
export default _default;
|
|
@@ -10,6 +10,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
images: any;
|
|
11
11
|
lg: any;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
13
|
+
sbid?: unknown;
|
|
14
|
+
} & {
|
|
13
15
|
sbid: SbidBankMethod;
|
|
14
16
|
} & {}>, {}>;
|
|
15
17
|
export default _default;
|
|
@@ -10,6 +10,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
images: any;
|
|
11
11
|
lg: any;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
13
|
+
wallet?: unknown;
|
|
14
|
+
} & {
|
|
13
15
|
wallet: WalletMethod;
|
|
14
16
|
} & {}>, {}>;
|
|
15
17
|
export default _default;
|
|
@@ -7,6 +7,8 @@ export declare const PaymentType: import("vue").DefineComponent<{
|
|
|
7
7
|
default: () => void;
|
|
8
8
|
};
|
|
9
9
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
10
|
+
paymentMethod?: unknown;
|
|
11
|
+
} & {
|
|
10
12
|
paymentMethod: TPaymentMethod;
|
|
11
13
|
} & {}>, {
|
|
12
14
|
paymentMethod: TPaymentMethod;
|
|
@@ -11,11 +11,13 @@ export declare const Icon: import("vue").DefineComponent<{
|
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
13
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
14
|
+
class?: unknown;
|
|
15
|
+
} & {
|
|
14
16
|
class: string;
|
|
15
17
|
} & {}>, {
|
|
16
18
|
class: string;
|
|
17
19
|
}>;
|
|
18
|
-
export declare const SubText: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {}>, {}>;
|
|
20
|
+
export declare const SubText: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
|
19
21
|
export declare const Select: import("vue").DefineComponent<{
|
|
20
22
|
list: {
|
|
21
23
|
type: PropType<ListType>;
|
|
@@ -43,6 +45,12 @@ export declare const Select: import("vue").DefineComponent<{
|
|
|
43
45
|
default: boolean;
|
|
44
46
|
};
|
|
45
47
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
48
|
+
list?: unknown;
|
|
49
|
+
value?: unknown;
|
|
50
|
+
placeholder?: unknown;
|
|
51
|
+
onChange?: unknown;
|
|
52
|
+
disabled?: unknown;
|
|
53
|
+
} & {
|
|
46
54
|
value: string;
|
|
47
55
|
list: ListType;
|
|
48
56
|
placeholder: string;
|
|
@@ -43,6 +43,15 @@ export declare const SelectList: import("vue").DefineComponent<{
|
|
|
43
43
|
}, {
|
|
44
44
|
onChange: (e: any) => void;
|
|
45
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
46
|
+
list?: unknown;
|
|
47
|
+
prepare?: unknown;
|
|
48
|
+
append?: unknown;
|
|
49
|
+
modelValue?: unknown;
|
|
50
|
+
appendClassName?: unknown;
|
|
51
|
+
prepareClassName?: unknown;
|
|
52
|
+
placeholder?: unknown;
|
|
53
|
+
disabled?: unknown;
|
|
54
|
+
} & {
|
|
46
55
|
list: ListType;
|
|
47
56
|
prepare: string;
|
|
48
57
|
append: string;
|
|
@@ -51,7 +60,9 @@ export declare const SelectList: import("vue").DefineComponent<{
|
|
|
51
60
|
prepareClassName: string;
|
|
52
61
|
placeholder: string;
|
|
53
62
|
disabled: boolean;
|
|
54
|
-
} & {}
|
|
63
|
+
} & {}> & {
|
|
64
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
65
|
+
}, {
|
|
55
66
|
list: ListType;
|
|
56
67
|
prepare: string;
|
|
57
68
|
append: string;
|
|
@@ -7,10 +7,16 @@ export declare const Switch: import("vue").DefineComponent<{
|
|
|
7
7
|
checked: BooleanConstructor;
|
|
8
8
|
disabled: BooleanConstructor;
|
|
9
9
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggleSwitch"[], "toggleSwitch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
10
|
+
label?: unknown;
|
|
11
|
+
checked?: unknown;
|
|
12
|
+
disabled?: unknown;
|
|
13
|
+
} & {
|
|
10
14
|
label: string;
|
|
11
15
|
checked: boolean;
|
|
12
16
|
disabled: boolean;
|
|
13
|
-
} & {}
|
|
17
|
+
} & {}> & {
|
|
18
|
+
onToggleSwitch?: (...args: any[]) => any;
|
|
19
|
+
}, {
|
|
14
20
|
label: string;
|
|
15
21
|
checked: boolean;
|
|
16
22
|
disabled: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface MakePaymentParams extends NativeParams<MiniAppResult, unknown,
|
|
|
32
32
|
storeInfo?: string;
|
|
33
33
|
productType?: string;
|
|
34
34
|
taxExempt?: boolean;
|
|
35
|
+
additionalUserInfo?: any;
|
|
35
36
|
}
|
|
36
37
|
export interface CopyToClipBoardParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
37
38
|
value: string;
|
|
@@ -232,6 +233,48 @@ export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult,
|
|
|
232
233
|
type: string;
|
|
233
234
|
callbackUrl: string;
|
|
234
235
|
}
|
|
236
|
+
export declare type SmartButtonType = 'login' | 'pay';
|
|
237
|
+
export declare type SmartButtonSize = 'lg' | 'sm';
|
|
238
|
+
export declare type SmartButtonTheme = 'light' | 'dark' | 'red';
|
|
239
|
+
export declare type SmartButtonLg = 'en' | 'ja';
|
|
240
|
+
export interface RenderSmartButtonParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
241
|
+
type: SmartButtonType;
|
|
242
|
+
containerId: string;
|
|
243
|
+
locale?: SmartButtonLg;
|
|
244
|
+
isShortText?: Boolean;
|
|
245
|
+
buttonSize?: SmartButtonSize;
|
|
246
|
+
theme?: SmartButtonTheme;
|
|
247
|
+
url?: string;
|
|
248
|
+
orderInfo?: SmartPayParams;
|
|
249
|
+
callback: Function;
|
|
250
|
+
}
|
|
251
|
+
export interface SmartButtonParam {
|
|
252
|
+
title: String;
|
|
253
|
+
avatarUrl?: String;
|
|
254
|
+
cashbackInfo?: String;
|
|
255
|
+
}
|
|
256
|
+
declare type SmartPayCurrency = 'JPY';
|
|
257
|
+
interface SmartPayAmount {
|
|
258
|
+
amount: number;
|
|
259
|
+
currency: SmartPayCurrency;
|
|
260
|
+
}
|
|
261
|
+
interface SmartPayOrderItems {
|
|
262
|
+
name: string;
|
|
263
|
+
category?: string;
|
|
264
|
+
quantity: number;
|
|
265
|
+
productId?: string;
|
|
266
|
+
unitPrice: SmartPayAmount;
|
|
267
|
+
cashbackPercentage?: number;
|
|
268
|
+
}
|
|
269
|
+
export interface SmartPayParams {
|
|
270
|
+
amount: SmartPayAmount;
|
|
271
|
+
requestedAt: number;
|
|
272
|
+
orderItems?: Array<SmartPayOrderItems>;
|
|
273
|
+
productType?: string;
|
|
274
|
+
storeId?: string;
|
|
275
|
+
merchantPaymentId?: string;
|
|
276
|
+
merchantAlias?: string;
|
|
277
|
+
}
|
|
235
278
|
export declare type Permission = {
|
|
236
279
|
blocker: boolean;
|
|
237
280
|
name: string;
|
|
@@ -289,7 +332,9 @@ export declare enum PpLocalStorageKey {
|
|
|
289
332
|
lastTopup = "ppjssdk.lastTopup",
|
|
290
333
|
appDetail = "ppjssdk.appDetail",
|
|
291
334
|
appConfig = "ppjssdk.appConfig",
|
|
292
|
-
clientId = "ppjssdk.clientId"
|
|
335
|
+
clientId = "ppjssdk.clientId",
|
|
336
|
+
address = "ppjssdk.address",
|
|
337
|
+
userInfo = "ppjssdk.userInfo"
|
|
293
338
|
}
|
|
294
339
|
export declare enum CookieDuration {
|
|
295
340
|
oneDay = 1,
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -95,7 +95,12 @@ export declare type AddressParams = {
|
|
|
95
95
|
};
|
|
96
96
|
export declare function getAddressByZip(params: AddressParams): Promise<import("./fetch").ErrorResponse | GetAddressByZipResponse>;
|
|
97
97
|
export declare type GetAddressListResponse = {
|
|
98
|
+
status: number;
|
|
99
|
+
signed: any;
|
|
98
100
|
unsigned: {
|
|
101
|
+
resultInfo: {
|
|
102
|
+
code: MiniAppErrorType;
|
|
103
|
+
};
|
|
99
104
|
data: {
|
|
100
105
|
addresses: Address[];
|
|
101
106
|
};
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -17,11 +17,16 @@ interface PersistenceLastPayment {
|
|
|
17
17
|
price: number;
|
|
18
18
|
}
|
|
19
19
|
export declare function savePayment(lastPayment: PersistenceLastPayment): boolean;
|
|
20
|
+
interface PersistenceLastAddress {
|
|
21
|
+
addressId: number;
|
|
22
|
+
}
|
|
23
|
+
export declare function saveAddress(lastAddress: PersistenceLastAddress): boolean;
|
|
20
24
|
interface PersistenceLastTopup {
|
|
21
25
|
amount: number;
|
|
22
26
|
}
|
|
23
27
|
export declare function saveTopup(lastTopup: PersistenceLastTopup): boolean;
|
|
24
28
|
export declare function getLastPayment(): any;
|
|
29
|
+
export declare function getLastAddress(): any;
|
|
25
30
|
export declare function existDuplicatePayment(price: number): boolean;
|
|
26
31
|
export declare enum MiniAppRuntime {
|
|
27
32
|
android = "ANDROID",
|
|
@@ -37,4 +42,6 @@ export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string
|
|
|
37
42
|
errorCode: MiniAppErrorType;
|
|
38
43
|
jws: string;
|
|
39
44
|
};
|
|
45
|
+
export declare const getSelectedAddressId: (addressList: any) => any;
|
|
46
|
+
export declare function updateLocalisedString(data: string, target: string, value: string): string;
|
|
40
47
|
export {};
|
package/dist/utils/storage.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export declare function getEnv(): string;
|
|
|
10
10
|
export declare function getClientUUID(): string;
|
|
11
11
|
export declare function getDeviceUUID(): string;
|
|
12
12
|
export declare function saveLastPayment(payment: string): void;
|
|
13
|
+
export declare function saveLastAddress(addressId: string): void;
|
|
14
|
+
export declare function getLastAddress(): string;
|
|
13
15
|
export declare function getLastPayment(): string;
|
|
14
16
|
export declare function saveLastTopup(topup: string): void;
|
|
15
17
|
export declare function getLastTopup(): string;
|
|
@@ -20,3 +22,5 @@ export declare function saveAppConfig(appConfig: string): void;
|
|
|
20
22
|
export declare function getAppConfig(): string;
|
|
21
23
|
export declare function getClientId(): string;
|
|
22
24
|
export declare function saveClientId(id: string): void;
|
|
25
|
+
export declare function getUserInfo(): string;
|
|
26
|
+
export declare function saveUserInfo(userData: string): void;
|
|
@@ -56,14 +56,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
}>;
|
|
57
57
|
emailRegisteredOnRecheck: (email: string) => void;
|
|
58
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
59
|
-
show
|
|
59
|
+
show?: unknown;
|
|
60
|
+
data?: unknown;
|
|
61
|
+
params?: unknown;
|
|
62
|
+
emailRegistered?: unknown;
|
|
63
|
+
email?: unknown;
|
|
64
|
+
} & {
|
|
60
65
|
data: Record<string, any>;
|
|
66
|
+
show: boolean;
|
|
61
67
|
params: {};
|
|
62
68
|
emailRegistered: boolean;
|
|
63
69
|
email: string;
|
|
64
|
-
} & {}
|
|
65
|
-
|
|
70
|
+
} & {}> & {
|
|
71
|
+
onClick?: (...args: any[]) => any;
|
|
72
|
+
}, {
|
|
66
73
|
data: Record<string, any>;
|
|
74
|
+
show: boolean;
|
|
67
75
|
params: {};
|
|
68
76
|
emailRegistered: boolean;
|
|
69
77
|
email: string;
|
|
@@ -26,10 +26,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
disableResendButton: import("vue").ComputedRef<boolean>;
|
|
27
27
|
timerCount: import("vue").ComputedRef<number>;
|
|
28
28
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("email-register" | "email-resend" | "email-verified")[], "email-register" | "email-resend" | "email-verified", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
29
|
+
emailRegistered?: unknown;
|
|
30
|
+
email?: unknown;
|
|
31
|
+
emailResend?: unknown;
|
|
32
|
+
} & {
|
|
29
33
|
emailRegistered: boolean;
|
|
30
34
|
email: string;
|
|
31
35
|
emailResend: ResendEmail;
|
|
32
|
-
} & {}
|
|
36
|
+
} & {}> & {
|
|
37
|
+
"onEmail-register"?: (...args: any[]) => any;
|
|
38
|
+
"onEmail-resend"?: (...args: any[]) => any;
|
|
39
|
+
"onEmail-verified"?: (...args: any[]) => any;
|
|
40
|
+
}, {
|
|
33
41
|
emailRegistered: boolean;
|
|
34
42
|
email: string;
|
|
35
43
|
emailResend: ResendEmail;
|
|
@@ -37,9 +37,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
headerStyles: {};
|
|
38
38
|
}>;
|
|
39
39
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "close-register-email")[], "close" | "close-register-email", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
40
|
+
isVisible?: unknown;
|
|
41
|
+
sendEmail?: unknown;
|
|
42
|
+
} & {
|
|
40
43
|
isVisible: boolean;
|
|
41
44
|
sendEmail: (email: string) => Promise<void>;
|
|
42
|
-
} & {}
|
|
45
|
+
} & {}> & {
|
|
46
|
+
onClose?: (...args: any[]) => any;
|
|
47
|
+
"onClose-register-email"?: (...args: any[]) => any;
|
|
48
|
+
}, {
|
|
43
49
|
isVisible: boolean;
|
|
44
50
|
sendEmail: (email: string) => Promise<void>;
|
|
45
51
|
}>;
|
|
@@ -10,9 +10,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
close: () => void;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close-resend-email-sheet"[], "close-resend-email-sheet", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
13
|
+
isVisible?: unknown;
|
|
14
|
+
email?: unknown;
|
|
15
|
+
} & {
|
|
13
16
|
isVisible: boolean;
|
|
14
17
|
email: string;
|
|
15
|
-
} & {}
|
|
18
|
+
} & {}> & {
|
|
19
|
+
"onClose-resend-email-sheet"?: (...args: any[]) => any;
|
|
20
|
+
}, {
|
|
16
21
|
isVisible: boolean;
|
|
17
22
|
email: string;
|
|
18
23
|
}>;
|
|
@@ -28,12 +28,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
}, {}, {
|
|
29
29
|
buttonClick(buttonInfo: UIComponentsErrorButton): void;
|
|
30
30
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close-click"[], "close-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
31
|
+
show?: unknown;
|
|
32
|
+
errorTitle?: unknown;
|
|
33
|
+
errorText?: unknown;
|
|
34
|
+
iconUrl?: unknown;
|
|
35
|
+
buttonList?: unknown;
|
|
36
|
+
} & {
|
|
31
37
|
show: boolean;
|
|
32
38
|
errorTitle: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
} & {
|
|
40
|
+
errorText?: string;
|
|
41
|
+
iconUrl?: string;
|
|
42
|
+
buttonList?: unknown[];
|
|
43
|
+
}> & {
|
|
44
|
+
"onClose-click"?: (...args: any[]) => any;
|
|
45
|
+
}, {
|
|
37
46
|
show: boolean;
|
|
38
47
|
errorTitle: string;
|
|
39
48
|
errorText: string;
|
|
@@ -16,17 +16,37 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
required: true;
|
|
17
17
|
default: () => Address[];
|
|
18
18
|
};
|
|
19
|
+
isMakepayment: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
defaultSelected: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
required: false;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
19
29
|
}, {
|
|
20
30
|
errorShow: import("vue").ComputedRef<boolean>;
|
|
21
31
|
errorIcon: import("vue").ComputedRef<string>;
|
|
22
32
|
errorTitle: import("vue").ComputedRef<string>;
|
|
23
33
|
errorDescription: import("vue").ComputedRef<string>;
|
|
24
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click" | "back" | "makepayment", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
35
|
+
show?: unknown;
|
|
36
|
+
getUserAddressParams?: unknown;
|
|
37
|
+
addresses?: unknown;
|
|
38
|
+
isMakepayment?: unknown;
|
|
39
|
+
defaultSelected?: unknown;
|
|
40
|
+
} & {
|
|
25
41
|
show: boolean;
|
|
26
42
|
getUserAddressParams: {};
|
|
27
43
|
addresses: Address[];
|
|
44
|
+
isMakepayment: boolean;
|
|
45
|
+
defaultSelected: number;
|
|
28
46
|
} & {}>, {
|
|
29
47
|
getUserAddressParams: {};
|
|
30
48
|
addresses: Address[];
|
|
49
|
+
isMakepayment: boolean;
|
|
50
|
+
defaultSelected: number;
|
|
31
51
|
}>;
|
|
32
52
|
export default _default;
|
|
@@ -35,6 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
visibilities: {
|
|
36
36
|
[x: string]: boolean;
|
|
37
37
|
};
|
|
38
|
+
id: number;
|
|
38
39
|
title: string;
|
|
39
40
|
receiver: string;
|
|
40
41
|
zip: string;
|
|
@@ -51,12 +52,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
52
|
lg: unknown;
|
|
52
53
|
kyc: import("vue").ComputedRef<boolean>;
|
|
53
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
55
|
+
loading?: unknown;
|
|
56
|
+
open?: unknown;
|
|
57
|
+
address?: unknown;
|
|
58
|
+
rootStyle?: unknown;
|
|
59
|
+
show?: unknown;
|
|
60
|
+
} & {
|
|
54
61
|
loading: boolean;
|
|
55
62
|
open: boolean;
|
|
56
|
-
address: Address;
|
|
57
63
|
rootStyle: Record<string, any>;
|
|
58
64
|
show: boolean;
|
|
59
|
-
} & {
|
|
65
|
+
} & {
|
|
66
|
+
address?: Address;
|
|
67
|
+
}> & {
|
|
68
|
+
onSubmit?: (...args: any[]) => any;
|
|
69
|
+
}, {
|
|
60
70
|
address: Address;
|
|
61
71
|
rootStyle: Record<string, any>;
|
|
62
72
|
}>;
|
|
@@ -11,8 +11,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
lg: unknown;
|
|
12
12
|
img: any;
|
|
13
13
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "del")[], "close" | "del", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
14
|
+
open?: unknown;
|
|
15
|
+
} & {
|
|
14
16
|
open: boolean;
|
|
15
|
-
} & {}
|
|
17
|
+
} & {}> & {
|
|
18
|
+
onClose?: (...args: any[]) => any;
|
|
19
|
+
onDel?: (...args: any[]) => any;
|
|
20
|
+
}, {
|
|
16
21
|
open: boolean;
|
|
17
22
|
}>;
|
|
18
23
|
export default _default;
|
|
@@ -22,6 +22,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
lg: unknown;
|
|
23
23
|
open: import("vue").ComputedRef<boolean>;
|
|
24
24
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
25
|
+
disabled?: unknown;
|
|
26
|
+
loading?: unknown;
|
|
27
|
+
show?: unknown;
|
|
28
|
+
} & {
|
|
25
29
|
disabled: boolean;
|
|
26
30
|
loading: boolean;
|
|
27
31
|
show: boolean;
|
|
@@ -21,9 +21,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
lg: any;
|
|
22
22
|
open: import("vue").ComputedRef<boolean>;
|
|
23
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
24
|
+
modelValue?: unknown;
|
|
25
|
+
disabled?: unknown;
|
|
26
|
+
} & {
|
|
24
27
|
modelValue: string[];
|
|
25
28
|
disabled: boolean;
|
|
26
|
-
} & {}
|
|
29
|
+
} & {}> & {
|
|
30
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
31
|
+
}, {
|
|
27
32
|
modelValue: string[];
|
|
28
33
|
disabled: boolean;
|
|
29
34
|
}>;
|
|
@@ -28,6 +28,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
required: false;
|
|
30
30
|
};
|
|
31
|
+
isMakepayment: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
31
36
|
}, {
|
|
32
37
|
heightStyles: import("vue").ComputedRef<{
|
|
33
38
|
rootHeight: {
|
|
@@ -48,17 +53,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
53
|
showDeleteSheet: import("vue").ComputedRef<boolean>;
|
|
49
54
|
openDeleteSheet: () => void;
|
|
50
55
|
closeDeleteSheet: () => void;
|
|
51
|
-
deleteAddress: () => void
|
|
56
|
+
deleteAddress: () => Promise<void>;
|
|
52
57
|
kycAddress: import("vue").ComputedRef<string>;
|
|
53
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "submit" | "del")[], "close" | "submit" | "del", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
59
|
+
show?: unknown;
|
|
60
|
+
loading?: unknown;
|
|
61
|
+
address?: unknown;
|
|
62
|
+
heightStyle?: unknown;
|
|
63
|
+
noOverlay?: unknown;
|
|
64
|
+
isMakepayment?: unknown;
|
|
65
|
+
} & {
|
|
54
66
|
show: boolean;
|
|
55
67
|
noOverlay: boolean;
|
|
56
68
|
loading: boolean;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
69
|
+
isMakepayment: boolean;
|
|
70
|
+
} & {
|
|
71
|
+
address?: Address;
|
|
72
|
+
heightStyle?: any;
|
|
73
|
+
}> & {
|
|
74
|
+
onClose?: (...args: any[]) => any;
|
|
75
|
+
onSubmit?: (...args: any[]) => any;
|
|
76
|
+
onDel?: (...args: any[]) => any;
|
|
77
|
+
}, {
|
|
60
78
|
noOverlay: boolean;
|
|
61
79
|
address: Address;
|
|
62
80
|
heightStyle: any;
|
|
81
|
+
isMakepayment: boolean;
|
|
63
82
|
}>;
|
|
64
83
|
export default _default;
|