@paypay/mini-app-js-sdk 1.67.0 → 1.69.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.
@@ -64,6 +64,11 @@ declare type MethodBase = {
64
64
  statusDescription: DescriptionInfo | null;
65
65
  additionalDescription: DescriptionInfo | null;
66
66
  detailDescription: DescriptionInfo | null;
67
+ amountInfo?: {
68
+ label: string;
69
+ amount: number;
70
+ currency: string;
71
+ };
67
72
  };
68
73
  };
69
74
  export declare type DescriptionInfo = {
@@ -168,6 +173,7 @@ export declare type BankInfo = {
168
173
  bankAccountType?: string;
169
174
  bankAccountNumberLast2digits?: string;
170
175
  preTransactionAutoChargeSupported?: boolean;
176
+ showAmount?: boolean;
171
177
  };
172
178
  export declare type BankMethod = MethodBase & {
173
179
  paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
@@ -58,7 +58,8 @@ export declare enum MiniAppErrorType {
58
58
  unacceptableOp = "UNACCEPTABLE_OP",
59
59
  kycUpdateRequired = "KYC_UPDATE_REQUIRED",
60
60
  notCompleted = "NOT_COMPLETED",
61
- kycValidationInProcess = "KYC_VALIDATION_IN_PROCESS"
61
+ kycValidationInProcess = "KYC_VALIDATION_IN_PROCESS",
62
+ noLocationData = "NO_LOCATION_DATA"
62
63
  }
63
64
  export declare class MiniAppError extends Error {
64
65
  constructor(type: MiniAppErrorType);
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { AnimationItem } from 'lottie-web/build/player/lottie_svg';
3
3
  import { RenderType } from '../../types';
4
- declare type TRenderType = typeof RenderType[keyof typeof RenderType];
4
+ declare type TRenderType = (typeof RenderType)[keyof typeof RenderType];
5
5
  export declare const Lottie: import("vue").DefineComponent<{
6
6
  loop: {
7
7
  type: BooleanConstructor;
@@ -27,6 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  paymentMethodStatusText: import("vue").ComputedRef<unknown>;
28
28
  getClass: string;
29
29
  style: Record<string, string>;
30
+ balance: import("vue").ComputedRef<string | null>;
30
31
  payMethodDescriptionInfo: import("vue").ComputedRef<DescriptionInfo[]>;
31
32
  getMaintenanceStyle: import("vue").ComputedRef<(info: DescriptionInfo) => {
32
33
  color: string;
@@ -23,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
23
23
  branchName: string | undefined;
24
24
  digits: string | undefined;
25
25
  }>;
26
+ balance: import("vue").ComputedRef<string | null>;
26
27
  style: Record<string, string>;
27
28
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
29
  bank: {
package/dist/types.d.ts CHANGED
@@ -187,6 +187,7 @@ export interface GetUserLocationResult {
187
187
  export interface GetUserLocationParams extends NativeParams<GetUserLocationResult> {
188
188
  validTimeMinutes?: number;
189
189
  accuracy?: string;
190
+ fallbackToGeolocation?: boolean;
190
191
  }
191
192
  export interface SetTitleParams extends NativeParams<void> {
192
193
  title?: string;
@@ -422,13 +423,13 @@ export declare const PaymentFeatureTypes: {
422
423
  readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
423
424
  readonly RECOMMEND: "RECOMMEND";
424
425
  };
425
- export declare type PaymentFeatureType = typeof PaymentFeatureTypes[keyof typeof PaymentFeatureTypes];
426
+ export declare type PaymentFeatureType = (typeof PaymentFeatureTypes)[keyof typeof PaymentFeatureTypes];
426
427
  export declare const ConsultPaymentFeatureTypes: {
427
428
  readonly PRE_TRANSACTION_AUTO_CHARGE: "PRE_TRANSACTION_AUTO_CHARGE";
428
429
  readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
429
430
  readonly NONE: "NONE";
430
431
  };
431
- export declare type ConsultPaymentFeatureType = typeof ConsultPaymentFeatureTypes[keyof typeof ConsultPaymentFeatureTypes];
432
+ export declare type ConsultPaymentFeatureType = (typeof ConsultPaymentFeatureTypes)[keyof typeof ConsultPaymentFeatureTypes];
432
433
  export interface RegisterPaymentFeaturesParams extends NativeParams<void> {
433
434
  paymentFeatureType: PaymentFeatureType;
434
435
  redirectUrl?: string;
@@ -491,14 +492,14 @@ export declare const AddShortcutTypes: {
491
492
  readonly FAVORITE: "FAVORITE";
492
493
  readonly OS_HOME_SCREEN_ICON: "OS_HOME_SCREEN_ICON";
493
494
  };
494
- export declare type AddShortcutType = typeof AddShortcutTypes[keyof typeof AddShortcutTypes];
495
+ export declare type AddShortcutType = (typeof AddShortcutTypes)[keyof typeof AddShortcutTypes];
495
496
  export interface AddShortcutParams extends NativeParams<void> {
496
497
  type: AddShortcutType;
497
498
  }
498
499
  export declare const ShortcutExistsTypes: {
499
500
  readonly FAVORITE: "FAVORITE";
500
501
  };
501
- export declare type ShortcutExistsType = typeof ShortcutExistsTypes[keyof typeof ShortcutExistsTypes];
502
+ export declare type ShortcutExistsType = (typeof ShortcutExistsTypes)[keyof typeof ShortcutExistsTypes];
502
503
  export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
503
504
  type: ShortcutExistsType;
504
505
  }
@@ -59,4 +59,5 @@ export declare function openUrl(linkUrl: string): void;
59
59
  export declare function getButtonType(button: UIComponentsErrorButton | ErrorSheetButton, onlyButton?: boolean): "success" | "default" | "primary" | "warning" | "danger" | "link" | "outLined";
60
60
  export declare function isAlphabet(value: string): boolean;
61
61
  export declare function reconstructKycPassportCallbackUrl(url: string, type: string): string;
62
+ export declare function getValueFromUA(paramName: string): string | undefined;
62
63
  export {};
@@ -3,4 +3,4 @@ export declare const GetKycPassportErrorSheet: {
3
3
  readonly VERIFY_EXPIRED: "verifyExpired";
4
4
  readonly FALLBACK_SMS: "fallbackSMS";
5
5
  };
6
- export declare type GetKycPassportErrorSheetType = typeof GetKycPassportErrorSheet[keyof typeof GetKycPassportErrorSheet];
6
+ export declare type GetKycPassportErrorSheetType = (typeof GetKycPassportErrorSheet)[keyof typeof GetKycPassportErrorSheet];