@yuno-payments/dashboard-api-mfe 1.2.2-CORECM-15741.2 → 1.2.3

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.
@@ -414,7 +414,7 @@ export declare class Api extends HttpClient {
414
414
  getSubscriptionPayments<T>(subscriptionCode: string, page?: number, size?: number): Promise<AxiosResponse<T, any>>;
415
415
  postListSubscriptions<T>(payload: ListSubscriptionsParams): Promise<AxiosResponse<T, any>>;
416
416
  getTimezone<T>(organizationCode: string): Promise<AxiosResponse<T, any>>;
417
- getInstallmentPlans(): Promise<AxiosResponse<Installments.GetInstallmentsPlansResponse>>;
417
+ getInstallmentPlans(params?: Installments.GetInstallmentsPlansParams): Promise<AxiosResponse<Installments.GetInstallmentsPlansResponse>>;
418
418
  createInstallmentsPlan<T, P = unknown>(payload: P): Promise<AxiosResponse<T>>;
419
419
  updateInstallmentsPlan<T, P = unknown>(code: string, payload: P): Promise<AxiosResponse<T>>;
420
420
  deleteInstallmentsPlan<T>(code: string): Promise<AxiosResponse<T>>;
@@ -1,3 +1,3 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { Installments } from '../../types';
3
- export declare function useGetInstallmentsPlans(accountCode: string, enabled?: boolean): UseQueryResult<Installments.GetInstallmentsPlansResponse, Error>;
3
+ export declare function useGetInstallmentsPlans(accountCode: string, enabled?: boolean, params?: Installments.GetInstallmentsPlansParams): UseQueryResult<Installments.GetInstallmentsPlansResponse, Error>;
@@ -1,4 +1,17 @@
1
1
  export declare namespace Installments {
2
+ interface GetInstallmentsPlansParams {
3
+ account_id?: string | string[];
4
+ country_code?: string | string[];
5
+ brand?: string | string[];
6
+ name?: string;
7
+ merchant_reference?: string;
8
+ issuer?: string | string[];
9
+ bin?: string | string[];
10
+ start_date?: string;
11
+ end_date?: string;
12
+ page?: number;
13
+ size?: number;
14
+ }
2
15
  interface FinancialCost {
3
16
  type: 'CFT' | 'TEA' | string;
4
17
  rate: number;
@@ -0,0 +1,3 @@
1
+ export { useIsTesting } from './use-is-testing';
2
+ export { useLocalStorage, useOrganizationCode } from './use-localstorage';
3
+ export { useAccountCode } from './use-account-code';
@@ -1,2 +1 @@
1
- declare const useAccountCode: () => any;
2
- export default useAccountCode;
1
+ export declare const useAccountCode: () => any;
@@ -6,3 +6,4 @@ export * from './store';
6
6
  export * from './types';
7
7
  export * from './constants';
8
8
  export * from './websockets';
9
+ export * from './utils';