@paypay/mini-app-js-sdk 1.54.0 → 1.56.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.
@@ -1,3 +1,2 @@
1
- import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function scanCode(_params: NativeParams<MiniAppResult>): void;
1
+ import { ScanCodeParams } from '../../types';
2
+ export declare function scanCode(params: ScanCodeParams): void;
@@ -208,12 +208,17 @@ export declare type ResponseBase = {
208
208
  };
209
209
  };
210
210
  export declare type PaymentMethod = WalletMethod | CreditMethod | BankMethod | SbidBankMethod | PayLaterCCMethod | PayLaterMethod;
211
+ declare type PaymentMethodPreference = {
212
+ preTransactionAutoChargeEnabled: boolean;
213
+ prioritizedPaymentMethodsEnabled: boolean;
214
+ };
211
215
  export declare type GetPaymentMethodsResponse = ResponseBase & {
212
216
  unsigned: {
213
217
  data: {
214
218
  payload: {
215
219
  paymentMethodList: PaymentMethod[];
216
220
  appealDescription: AppealDescription | null;
221
+ paymentMethodPreference: PaymentMethodPreference;
217
222
  };
218
223
  };
219
224
  };
package/dist/types.d.ts CHANGED
@@ -468,4 +468,7 @@ export declare type ErrorSheetButton = {
468
468
  onClick?: () => void;
469
469
  actionType?: undefined;
470
470
  };
471
+ export interface ScanCodeParams extends NativeParams<MiniAppResult> {
472
+ redirectUrlOnCancel?: string;
473
+ }
471
474
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.54.0",
3
+ "version": "1.56.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",