@paypay/mini-app-js-sdk 1.22.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  2. package/dist/jsbridge-core/jsbridge.d.ts +1 -1
  3. package/dist/mini-app-js-sdk.browser.js +1 -1
  4. package/dist/mini-app-js-sdk.es.js +1617 -1349
  5. package/dist/mini-app-js-sdk.min.css +1 -1
  6. package/dist/model/bridge/checkAccessToken.d.ts +1 -1
  7. package/dist/model/bridge/closeApp.d.ts +1 -1
  8. package/dist/model/bridge/copyToClipboard.d.ts +1 -1
  9. package/dist/model/bridge/debug.d.ts +1 -1
  10. package/dist/model/bridge/getAppDetail.d.ts +1 -1
  11. package/dist/model/bridge/getConfigure.d.ts +2 -1
  12. package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
  13. package/dist/model/bridge/getSessionData.d.ts +1 -1
  14. package/dist/model/bridge/getStorageData.d.ts +1 -1
  15. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  16. package/dist/model/bridge/getUAID.d.ts +1 -1
  17. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  18. package/dist/model/bridge/inputAddress.d.ts +1 -1
  19. package/dist/model/bridge/logout.d.ts +1 -1
  20. package/dist/model/bridge/openApp.d.ts +1 -1
  21. package/dist/model/bridge/openMap.d.ts +1 -1
  22. package/dist/model/bridge/openWebview.d.ts +1 -1
  23. package/dist/model/bridge/registerEmail.d.ts +1 -1
  24. package/dist/model/bridge/registerKyc.d.ts +1 -1
  25. package/dist/model/bridge/removeStorageData.d.ts +1 -1
  26. package/dist/model/bridge/render.d.ts +1 -1
  27. package/dist/model/bridge/renderLoginButton.d.ts +1 -1
  28. package/dist/model/bridge/renderPayButton.d.ts +1 -1
  29. package/dist/model/bridge/scanCode.d.ts +1 -1
  30. package/dist/model/bridge/setSessionData.d.ts +1 -1
  31. package/dist/model/bridge/setStorageData.d.ts +1 -1
  32. package/dist/model/bridge/setTitle.d.ts +1 -1
  33. package/dist/model/bridge/showAlert.d.ts +1 -1
  34. package/dist/model/bridge/showErrorSheet.d.ts +1 -1
  35. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  36. package/dist/model/makePayment.d.ts +21 -8
  37. package/dist/package/charge-amount-list/index.vue.d.ts +27 -2
  38. package/dist/package/desktop-header/index.d.ts +3 -3
  39. package/dist/package/input/index.d.ts +0 -16
  40. package/dist/package/input/utils.d.ts +0 -4
  41. package/dist/package/overlay/index.d.ts +4 -3
  42. package/dist/package/payment-method/Bank.vue.d.ts +1 -1
  43. package/dist/package/payment-method/CreditCard.vue.d.ts +1 -1
  44. package/dist/package/payment-method/SbidBank.vue.d.ts +10 -1
  45. package/dist/package/payment-method/Wallet.vue.d.ts +9 -0
  46. package/dist/package/payment-type/Sbid.vue.d.ts +9 -0
  47. package/dist/package/payment-type/Wallet.vue.d.ts +9 -0
  48. package/dist/package/select-list/Components.d.ts +28 -0
  49. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +9 -0
  50. package/dist/types.d.ts +4 -3
  51. package/dist/utils/api.d.ts +19 -9
  52. package/dist/utils/create/bem.d.ts +1 -1
  53. package/dist/utils/create/index.d.ts +1 -1
  54. package/dist/utils/fetch.d.ts +44 -3
  55. package/dist/utils/getLanguage.d.ts +9 -0
  56. package/dist/utils/helper.d.ts +7 -2
  57. package/dist/utils/miniAppRequest.d.ts +2 -1
  58. package/dist/utils/popstateHandler.d.ts +2 -1
  59. package/dist/views/email-registration/App.vue.d.ts +11 -2
  60. package/dist/views/error-sheet/Index.vue.d.ts +9 -0
  61. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +9 -2
  62. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +9 -0
  63. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +9 -0
  64. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +9 -0
  65. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +24 -9
  66. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +9 -0
  67. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +26 -3
  68. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +10 -1
  69. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +9 -0
  70. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +9 -0
  71. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +9 -0
  72. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +9 -0
  73. package/dist/views/input-address/App.vue.d.ts +1 -1
  74. package/dist/views/input-address/hook/app.d.ts +3 -2
  75. package/dist/views/input-address/hook/error-handle.d.ts +10 -3
  76. package/dist/views/make-payment/Main.vue.d.ts +4 -2
  77. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +9 -0
  78. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +9 -0
  79. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +9 -0
  80. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +9 -0
  81. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +1 -0
  82. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +10 -1
  83. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +9 -0
  84. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +17 -0
  85. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +17 -5
  86. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +32 -12
  87. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +9 -0
  88. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +9 -0
  89. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +9 -0
  90. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +9 -0
  91. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +10 -1
  92. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +9 -0
  93. package/dist/views/make-payment/hooks/app-hooks.d.ts +14 -10
  94. package/dist/views/make-payment/hooks/ui-hooks.d.ts +3 -4
  95. package/dist/views/make-payment/store/root.d.ts +1 -1
  96. package/dist/views/open-app/App.vue.d.ts +14 -3
  97. package/dist/views/open-map/App.vue.d.ts +15 -4
  98. package/dist/views/show-update-warning/App.vue.d.ts +14 -3
  99. package/dist/views/smart-button/App.vue.d.ts +1 -1
  100. package/dist/views/take-photo/App.vue.d.ts +14 -3
  101. package/dist/views/topup/App.vue.d.ts +17 -7
  102. package/dist/views/topup/CashbackInfo.vue.d.ts +9 -0
  103. package/dist/views/topup/TopupCompletion.vue.d.ts +17 -6
  104. package/package.json +4 -2
@@ -3,4 +3,4 @@ export declare function renderPayButton(params: RenderSmartButtonParams, lg: {
3
3
  paypay: string;
4
4
  pay: string;
5
5
  cashback: string;
6
- }, preferredLanguage: string, isLoggedIn?: boolean, cashbackInfo?: string): Promise<void>;
6
+ }, preferredLanguage: string, isLoggedIn?: boolean, cashbackInfo?: string): void;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core';
2
2
  import { MiniAppResult } from '../../types';
3
- export declare function scanCode(params: NativeParams<MiniAppResult, unknown, void>): Promise<void>;
3
+ export declare function scanCode(params: NativeParams<MiniAppResult, unknown, void>): void;
@@ -1,2 +1,2 @@
1
1
  import { SetDataParams } from '../../types';
2
- export declare function setSessionData(params: SetDataParams): Promise<void>;
2
+ export declare function setSessionData(params: SetDataParams): void;
@@ -1,2 +1,2 @@
1
1
  import { SetDataParams } from '../../types';
2
- export declare function setStorageData(params: SetDataParams): Promise<void>;
2
+ export declare function setStorageData(params: SetDataParams): void;
@@ -1,2 +1,2 @@
1
1
  import { SetTitleParams } from '../../types';
2
- export declare function setTitle(params: SetTitleParams): Promise<void>;
2
+ export declare function setTitle(params: SetTitleParams): void;
@@ -1,2 +1,2 @@
1
1
  import { ShowAlertParams } from '../../types';
2
- export declare function showAlert(params: ShowAlertParams): Promise<void>;
2
+ export declare function showAlert(params: ShowAlertParams): void;
@@ -1,2 +1,2 @@
1
1
  import { ShowErrorSheetParams } from '../../types';
2
- export declare function showErrorSheet(params: ShowErrorSheetParams): Promise<void>;
2
+ export declare function showErrorSheet(params: ShowErrorSheetParams): void;
@@ -1,2 +1,2 @@
1
1
  import { ShowUpdateWarningParams } from '../../types';
2
- export declare function showUpdateWarning(params: ShowUpdateWarningParams): Promise<void>;
2
+ export declare function showUpdateWarning(params: ShowUpdateWarningParams): void;
@@ -7,10 +7,10 @@ export interface PaymentIdQuery {
7
7
  sourceInfoApp?: string;
8
8
  type?: string;
9
9
  }
10
- export interface PaymentQuery {
10
+ export declare type PaymentQuery = {
11
11
  merchant?: string;
12
12
  agreeSimilarTransaction: boolean;
13
- }
13
+ };
14
14
  interface PaymentBody {
15
15
  merchantPaymentId: string;
16
16
  amount: Amount;
@@ -63,7 +63,7 @@ declare type MethodBase = {
63
63
  bankInfo?: unknown;
64
64
  sbidCarrierBillingInfo?: unknown;
65
65
  paymentMethodDescriptionInfo?: {
66
- statusDescription: Record<string, unknown>;
66
+ statusDescription: Record<string, unknown> | null;
67
67
  };
68
68
  };
69
69
  export declare type BannerInfo = {
@@ -104,7 +104,8 @@ export declare enum PaymentMethodStatus {
104
104
  OFF = "OFF",
105
105
  APPLYING = "APPLYING",
106
106
  MAINTENANCE = "MAINTENANCE",
107
- BUSY = "BUSY"
107
+ BUSY = "BUSY",
108
+ SUSPENDED = "SUSPENDED"
108
109
  }
109
110
  export declare type CreditMethod = Omit<MethodBase, 'creditCardInfo'> & {
110
111
  creditCardInfo?: {
@@ -134,7 +135,8 @@ export declare enum status {
134
135
  'OFF' = "\u7121\u52B9",
135
136
  'APPLYING' = "\u5229\u7528\u4E0D\u53EF",
136
137
  'MAINTENANCE' = "\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u4E2D",
137
- 'BUSY' = "\u5229\u7528\u4E0D\u53EF"
138
+ 'BUSY' = "\u5229\u7528\u4E0D\u53EF",
139
+ 'SUSPENDED' = "\u5229\u7528\u4E0D\u53EF"
138
140
  }
139
141
  export declare type BankInfo = {
140
142
  paymentMethodStatusLabel?: string;
@@ -160,7 +162,12 @@ export declare type SbidBankMethod = Omit<MethodBase, 'sbidCarrierBillingInfo'>
160
162
  paymentMethodStatus?: PaymentMethodStatus;
161
163
  };
162
164
  };
163
- export declare type PayLaterMethod = Omit<MethodBase, ''>;
165
+ export declare type PayLaterMethod = Omit<MethodBase, 'payLaterCcInfo'> & {
166
+ payLaterCcInfo?: {
167
+ availableAmount?: number;
168
+ paymentMethodStatus?: PaymentMethodStatus;
169
+ };
170
+ };
164
171
  export declare type ResponseBase = {
165
172
  status: number;
166
173
  signed: {
@@ -176,7 +183,7 @@ export declare type ResponseBase = {
176
183
  };
177
184
  };
178
185
  export declare type PaymentMethod = WalletMethod | CreditMethod | BankMethod | SbidBankMethod | PayLaterMethod;
179
- export declare type getPaymentMethodsResponse = ResponseBase & {
186
+ export declare type GetPaymentMethodsResponse = ResponseBase & {
180
187
  unsigned: {
181
188
  data: {
182
189
  payload: {
@@ -190,7 +197,13 @@ export declare const getPaymentMethods: (params: {
190
197
  type: string;
191
198
  productType?: string;
192
199
  sourceInfoApp?: string;
193
- }) => Promise<ErrorResponse | getPaymentMethodsResponse>;
200
+ }) => Promise<ErrorResponse | GetPaymentMethodsResponse>;
201
+ export declare const getPaymentMethods2: (params: {
202
+ merchant?: string;
203
+ type: string;
204
+ productType?: string;
205
+ sourceInfoApp?: string;
206
+ }) => Promise<import("../utils/fetch").PPFetchResult<GetPaymentMethodsResponse, Record<string, unknown>>>;
194
207
  export declare type PaymentResult = {
195
208
  requestedAt: number;
196
209
  storeId: string;
@@ -1,4 +1,5 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, ComputedRef } from 'vue';
2
+ import { SelectType, ListType } from '../select-list/Components';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  isfullheight: {
4
5
  type: BooleanConstructor;
@@ -21,28 +22,52 @@ declare const _default: import("vue").DefineComponent<{
21
22
  type: StringConstructor;
22
23
  default: string;
23
24
  };
25
+ topupAmountText: {
26
+ type: StringConstructor;
27
+ required: false;
28
+ default: string;
29
+ };
30
+ halfsheetAmount: {
31
+ type: PropType<number[]>;
32
+ default: () => number[];
33
+ required: false;
34
+ };
24
35
  }, {
25
36
  style: Record<string, string>;
26
37
  select: (money: number) => void;
27
38
  numberWithCommas: (x?: number) => string;
28
- isSelectMoreVisible: import("vue").ComputedRef<boolean>;
39
+ isSelectMoreVisible: ComputedRef<boolean>;
40
+ isDesktop: ComputedRef<boolean>;
41
+ handleSelectMoreClick: (e: MouseEvent) => void;
42
+ SelectType: typeof SelectType;
43
+ handleChange: (e: Event) => void;
44
+ toggleDropdown: ComputedRef<boolean>;
45
+ chargeHalfsheetAmount: ComputedRef<ListType>;
46
+ chargeAmountList: ComputedRef<number[]>;
47
+ topupAmount: ComputedRef<string>;
29
48
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "setmoney" | "switchinput" | "selectmoremoney", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
30
49
  isfullheight?: unknown;
31
50
  operator?: unknown;
32
51
  small?: unknown;
33
52
  amountList?: unknown;
34
53
  itemClassName?: unknown;
54
+ topupAmountText?: unknown;
55
+ halfsheetAmount?: unknown;
35
56
  } & {
36
57
  small: boolean;
37
58
  isfullheight: boolean;
38
59
  operator: string;
39
60
  amountList: number[];
40
61
  itemClassName: string;
62
+ topupAmountText: string;
63
+ halfsheetAmount: number[];
41
64
  } & {}>, {
42
65
  small: boolean;
43
66
  isfullheight: boolean;
44
67
  operator: string;
45
68
  amountList: number[];
46
69
  itemClassName: string;
70
+ topupAmountText: string;
71
+ halfsheetAmount: number[];
47
72
  }>;
48
73
  export default _default;
@@ -1,6 +1,6 @@
1
1
  export declare const DesktopHeader: import("vue").DefineComponent<{
2
2
  class: {
3
- type: (StringConstructor | ObjectConstructor)[];
3
+ type: StringConstructor;
4
4
  required: false;
5
5
  default: string;
6
6
  };
@@ -14,8 +14,8 @@ export declare const DesktopHeader: import("vue").DefineComponent<{
14
14
  title?: unknown;
15
15
  } & {
16
16
  title: string;
17
- class: string | Record<string, any>;
17
+ class: string;
18
18
  } & {}>, {
19
19
  title: string;
20
- class: string | Record<string, any>;
20
+ class: string;
21
21
  }>;
@@ -25,11 +25,6 @@ export declare const Input: import("vue").DefineComponent<{
25
25
  required: false;
26
26
  default: string;
27
27
  };
28
- formatter: {
29
- type: FunctionConstructor;
30
- required: false;
31
- default: (v: unknown) => unknown;
32
- };
33
28
  autofocus: {
34
29
  type: BooleanConstructor;
35
30
  required: false;
@@ -85,11 +80,6 @@ export declare const Input: import("vue").DefineComponent<{
85
80
  required: false;
86
81
  default: () => {}[];
87
82
  };
88
- formatTrigger: {
89
- type: PropType<FieldValidateTrigger>;
90
- required: false;
91
- default: string;
92
- };
93
83
  validateTrigger: {
94
84
  type: PropType<FieldValidateTrigger>;
95
85
  required: false;
@@ -130,7 +120,6 @@ export declare const Input: import("vue").DefineComponent<{
130
120
  border?: unknown;
131
121
  disabled?: unknown;
132
122
  size?: unknown;
133
- formatter?: unknown;
134
123
  autofocus?: unknown;
135
124
  prepend?: unknown;
136
125
  append?: unknown;
@@ -142,7 +131,6 @@ export declare const Input: import("vue").DefineComponent<{
142
131
  inputAlign?: unknown;
143
132
  errorMessage?: unknown;
144
133
  rules?: unknown;
145
- formatTrigger?: unknown;
146
134
  validateTrigger?: unknown;
147
135
  id?: unknown;
148
136
  prependClassName?: unknown;
@@ -159,7 +147,6 @@ export declare const Input: import("vue").DefineComponent<{
159
147
  size: InputSize;
160
148
  id: string;
161
149
  border: boolean;
162
- formatter: Function;
163
150
  autofocus: boolean;
164
151
  prepend: string;
165
152
  append: string;
@@ -170,7 +157,6 @@ export declare const Input: import("vue").DefineComponent<{
170
157
  inputAlign: string;
171
158
  errorMessage: string;
172
159
  rules: FieldRule[];
173
- formatTrigger: FieldValidateTrigger;
174
160
  validateTrigger: FieldValidateTrigger;
175
161
  prependClassName: string;
176
162
  appendClassName: string;
@@ -190,7 +176,6 @@ export declare const Input: import("vue").DefineComponent<{
190
176
  size: InputSize;
191
177
  id: string;
192
178
  border: boolean;
193
- formatter: Function;
194
179
  autofocus: boolean;
195
180
  prepend: string;
196
181
  append: string;
@@ -201,7 +186,6 @@ export declare const Input: import("vue").DefineComponent<{
201
186
  inputAlign: string;
202
187
  errorMessage: string;
203
188
  rules: FieldRule[];
204
- formatTrigger: FieldValidateTrigger;
205
189
  validateTrigger: FieldValidateTrigger;
206
190
  prependClassName: string;
207
191
  appendClassName: string;
@@ -1,10 +1,6 @@
1
1
  export declare type FieldValidateTrigger = 'onSubmit' | 'onChange' | 'onBlur';
2
2
  export declare type FieldRule = {
3
3
  pattern?: RegExp;
4
- trigger?: FieldValidateTrigger;
5
4
  message?: string | ((value: unknown, rule: FieldRule) => string);
6
- required?: boolean;
7
- validator?: (value: unknown, rule: FieldRule) => boolean | Promise<boolean>;
8
- formatter?: (value: unknown, rule: FieldRule) => unknown;
9
5
  };
10
6
  export declare function runSyncRule(value: unknown, rule: FieldRule): boolean;
@@ -1,3 +1,4 @@
1
+ import { PropType } from 'vue';
1
2
  export declare const OverLay: import("vue").DefineComponent<{
2
3
  show: BooleanConstructor;
3
4
  appear: {
@@ -5,7 +6,7 @@ export declare const OverLay: import("vue").DefineComponent<{
5
6
  default: boolean;
6
7
  };
7
8
  click: {
8
- type: FunctionConstructor;
9
+ type: PropType<unknown>;
9
10
  default: () => () => void;
10
11
  };
11
12
  onTouchstart: {
@@ -32,13 +33,13 @@ export declare const OverLay: import("vue").DefineComponent<{
32
33
  } & {
33
34
  show: boolean;
34
35
  appear: boolean;
35
- click: Function;
36
+ click: () => void;
36
37
  onTouchstart: Function;
37
38
  dontPreventSwipe: boolean;
38
39
  } & {}>, {
39
40
  show: boolean;
40
41
  appear: boolean;
41
- click: Function;
42
+ click: () => void;
42
43
  onTouchstart: Function;
43
44
  dontPreventSwipe: boolean;
44
45
  }>;
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  digits: string | undefined;
20
20
  }>;
21
21
  isDisable: import("vue").ComputedRef<boolean>;
22
- paymentMethodStatus: import("vue").ComputedRef<string>;
22
+ paymentMethodStatus: import("vue").ComputedRef<unknown>;
23
23
  maintainanceInfo: import("vue").ComputedRef<unknown>;
24
24
  getClass: string;
25
25
  style: Record<string, string>;
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  imgStyle: string;
20
20
  style: string;
21
21
  }>;
22
- paymentMethodStatusText: ComputedRef<string>;
22
+ paymentMethodStatusText: ComputedRef<unknown>;
23
23
  maintainanceInfo: ComputedRef<unknown>;
24
24
  getClass: string;
25
25
  isActivated: ComputedRef<boolean>;
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
43
43
  bankIcon: string;
44
44
  confetti: string;
45
45
  };
46
- paymentMethodStatus: import("vue").ComputedRef<string>;
46
+ paymentMethodStatus: import("vue").ComputedRef<unknown>;
47
47
  maintainanceInfo: import("vue").ComputedRef<unknown>;
48
48
  getClass: string;
49
49
  lg: {
@@ -201,6 +201,7 @@ declare const _default: import("vue").DefineComponent<{
201
201
  confirmAddress: string;
202
202
  returnEdit: string;
203
203
  selectAddress: string;
204
+ selectDeliveryAddress: string;
204
205
  };
205
206
  errorSheet: {
206
207
  title: string;
@@ -221,6 +222,14 @@ declare const _default: import("vue").DefineComponent<{
221
222
  ppCardTitle: string;
222
223
  brand: string;
223
224
  };
225
+ paymentMethodStatus: {
226
+ ACTIVATED: string;
227
+ OFF: string;
228
+ APPLYING: string;
229
+ MAINTENANCE: string;
230
+ BUSY: string;
231
+ SUSPENDED: string;
232
+ };
224
233
  wallet: {
225
234
  title: string;
226
235
  desc: string;
@@ -212,6 +212,7 @@ declare const _default: import("vue").DefineComponent<{
212
212
  confirmAddress: string;
213
213
  returnEdit: string;
214
214
  selectAddress: string;
215
+ selectDeliveryAddress: string;
215
216
  };
216
217
  errorSheet: {
217
218
  title: string;
@@ -232,6 +233,14 @@ declare const _default: import("vue").DefineComponent<{
232
233
  ppCardTitle: string;
233
234
  brand: string;
234
235
  };
236
+ paymentMethodStatus: {
237
+ ACTIVATED: string;
238
+ OFF: string;
239
+ APPLYING: string;
240
+ MAINTENANCE: string;
241
+ BUSY: string;
242
+ SUSPENDED: string;
243
+ };
235
244
  wallet: {
236
245
  title: string;
237
246
  desc: string;
@@ -198,6 +198,7 @@ declare const _default: import("vue").DefineComponent<{
198
198
  confirmAddress: string;
199
199
  returnEdit: string;
200
200
  selectAddress: string;
201
+ selectDeliveryAddress: string;
201
202
  };
202
203
  errorSheet: {
203
204
  title: string;
@@ -218,6 +219,14 @@ declare const _default: import("vue").DefineComponent<{
218
219
  ppCardTitle: string;
219
220
  brand: string;
220
221
  };
222
+ paymentMethodStatus: {
223
+ ACTIVATED: string;
224
+ OFF: string;
225
+ APPLYING: string;
226
+ MAINTENANCE: string;
227
+ BUSY: string;
228
+ SUSPENDED: string;
229
+ };
221
230
  wallet: {
222
231
  title: string;
223
232
  desc: string;
@@ -198,6 +198,7 @@ declare const _default: import("vue").DefineComponent<{
198
198
  confirmAddress: string;
199
199
  returnEdit: string;
200
200
  selectAddress: string;
201
+ selectDeliveryAddress: string;
201
202
  };
202
203
  errorSheet: {
203
204
  title: string;
@@ -218,6 +219,14 @@ declare const _default: import("vue").DefineComponent<{
218
219
  ppCardTitle: string;
219
220
  brand: string;
220
221
  };
222
+ paymentMethodStatus: {
223
+ ACTIVATED: string;
224
+ OFF: string;
225
+ APPLYING: string;
226
+ MAINTENANCE: string;
227
+ BUSY: string;
228
+ SUSPENDED: string;
229
+ };
221
230
  wallet: {
222
231
  title: string;
223
232
  desc: string;
@@ -4,6 +4,10 @@ export declare type ListItem = {
4
4
  label: string;
5
5
  };
6
6
  export declare type ListType = ListItem[];
7
+ export declare enum SelectType {
8
+ SELECT = "SELECT",
9
+ DROPDOWN = "DROPDOWN"
10
+ }
7
11
  export declare const Icon: import("vue").DefineComponent<{
8
12
  class: {
9
13
  type: StringConstructor;
@@ -44,6 +48,21 @@ export declare const Select: import("vue").DefineComponent<{
44
48
  required: false;
45
49
  default: boolean;
46
50
  };
51
+ type: {
52
+ type: PropType<SelectType>;
53
+ required: false;
54
+ default: SelectType;
55
+ };
56
+ toggleDropdown: {
57
+ type: BooleanConstructor;
58
+ required: false;
59
+ default: boolean;
60
+ };
61
+ dropDownClass: {
62
+ type: StringConstructor;
63
+ required: false;
64
+ default: string;
65
+ };
47
66
  }, unknown, {
48
67
  isActive: boolean;
49
68
  }, {
@@ -62,16 +81,25 @@ export declare const Select: import("vue").DefineComponent<{
62
81
  placeholder?: unknown;
63
82
  onChange?: unknown;
64
83
  disabled?: unknown;
84
+ type?: unknown;
85
+ toggleDropdown?: unknown;
86
+ dropDownClass?: unknown;
65
87
  } & {
66
88
  value: string;
89
+ type: SelectType;
67
90
  disabled: boolean;
68
91
  onChange: (e: Event) => void;
69
92
  placeholder: string;
70
93
  list: ListType;
94
+ toggleDropdown: boolean;
95
+ dropDownClass: string;
71
96
  } & {}>, {
72
97
  value: string;
98
+ type: SelectType;
73
99
  disabled: boolean;
74
100
  onChange: (e: Event) => void;
75
101
  placeholder: string;
76
102
  list: ListType;
103
+ toggleDropdown: boolean;
104
+ dropDownClass: string;
77
105
  }>;
@@ -207,6 +207,7 @@ declare const _default: import("vue").DefineComponent<{
207
207
  confirmAddress: string;
208
208
  returnEdit: string;
209
209
  selectAddress: string;
210
+ selectDeliveryAddress: string;
210
211
  };
211
212
  errorSheet: {
212
213
  title: string;
@@ -227,6 +228,14 @@ declare const _default: import("vue").DefineComponent<{
227
228
  ppCardTitle: string;
228
229
  brand: string;
229
230
  };
231
+ paymentMethodStatus: {
232
+ ACTIVATED: string;
233
+ OFF: string;
234
+ APPLYING: string;
235
+ MAINTENANCE: string;
236
+ BUSY: string;
237
+ SUSPENDED: string;
238
+ };
230
239
  wallet: {
231
240
  title: string;
232
241
  desc: string;
package/dist/types.d.ts CHANGED
@@ -50,7 +50,7 @@ export interface InitParams extends NativeParams<MiniAppResult, MiniAppErrorResu
50
50
  env?: string;
51
51
  mode?: string;
52
52
  }
53
- interface IosMapParams {
53
+ export interface IosMapParams {
54
54
  label: string;
55
55
  scheme?: string;
56
56
  url: string;
@@ -122,7 +122,7 @@ export interface ShowErrorSheetParams extends NativeParams<void, MiniAppErrorRes
122
122
  export interface SetEnablePullDownRefreshParams extends NativeParams<void, MiniAppErrorResultType, void> {
123
123
  enabled: boolean;
124
124
  }
125
- export interface ShowUpdateWarningParams extends NativeParams<void, MiniAppErrorResultType, void> {
125
+ export interface ShowUpdateWarningParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
126
126
  isMandatory?: boolean;
127
127
  }
128
128
  interface IosOpenApp {
@@ -242,7 +242,7 @@ export interface KycData {
242
242
  address?: KycAddress;
243
243
  job?: string;
244
244
  }
245
- export interface RegisterKycParams extends NativeParams<unknown, unknown, void> {
245
+ export interface RegisterKycParams extends NativeParams<unknown, MiniAppErrorResultType, void> {
246
246
  type?: string;
247
247
  eKycDocuments?: Array<string>;
248
248
  redirectUrl?: string;
@@ -298,6 +298,7 @@ export interface UserInfo {
298
298
  avatarUrl: string;
299
299
  nickName: string;
300
300
  }
301
+ export declare type PopStateInputParams = ShowErrorSheetParams | GetUserAddressParams | InputAddressParams | MakePaymentParams | OpenAppParams | MapParams | ShowAlertParams | ShowUpdateWarningParams | TakePhotoParams | TopupParams;
301
302
  export declare type Permission = {
302
303
  blocker: boolean;
303
304
  name: string;
@@ -1,6 +1,5 @@
1
1
  import { MiniAppErrorType } from '../model/miniAppError';
2
2
  import { UIComponentsError } from '../model/uiComponents';
3
- import { Amount } from '../types';
4
3
  import { Address } from '../types';
5
4
  export declare type TopupQuery = {
6
5
  merchant?: string;
@@ -18,7 +17,21 @@ export declare type TopupBody = {
18
17
  requestedAt: number;
19
18
  prepaidOnly?: boolean;
20
19
  };
21
- export declare type TopupResponse = {
20
+ export interface TopupResponseData {
21
+ merchantTopUpId: string;
22
+ topUpId: string;
23
+ status: string;
24
+ statusLabel: string;
25
+ statusLabelColor: string;
26
+ amount: {
27
+ amount: number;
28
+ currency: string;
29
+ };
30
+ acceptedAt?: number;
31
+ requestedAt: number;
32
+ responseValidTill: number;
33
+ }
34
+ export interface TopupResponse {
22
35
  status: number;
23
36
  signed: {
24
37
  jws?: string;
@@ -30,12 +43,9 @@ export declare type TopupResponse = {
30
43
  resultInfo: {
31
44
  code: MiniAppErrorType;
32
45
  };
33
- data: {
34
- status: string;
35
- amount: Amount;
36
- };
46
+ data: TopupResponseData;
37
47
  };
38
- };
48
+ }
39
49
  declare type WalletInfoResponse = {
40
50
  data: {
41
51
  payload: {
@@ -75,9 +85,9 @@ export declare type getCashBackResponse = {
75
85
  signed: unknown;
76
86
  unsigned: unknown;
77
87
  };
78
- interface CashBackParams {
88
+ declare type CashBackParams = {
79
89
  paymentId: string;
80
- }
90
+ };
81
91
  export declare function getCashbackDetail(params: CashBackParams): Promise<unknown>;
82
92
  export declare type ShallowAddress = {
83
93
  prefecture: string;
@@ -2,5 +2,5 @@ export declare type Mod = string | {
2
2
  [key: string]: unknown;
3
3
  };
4
4
  export declare type Mods = Mod | Mod[];
5
- export declare function createBEM(name: string): (el?: Mods | undefined, mods?: Mods | undefined) => Mods;
5
+ export declare function createBEM(name: string): (el?: Mods | undefined, mods?: Mods | undefined) => string;
6
6
  export declare type BEM = ReturnType<typeof createBEM>;
@@ -1,4 +1,4 @@
1
- export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods | undefined, mods?: import("./bem").Mods | undefined) => import("./bem").Mods];
1
+ export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods | undefined, mods?: import("./bem").Mods | undefined) => string];
2
2
  export declare type ObjectLiteralStyle = {
3
3
  [className: string]: boolean;
4
4
  };