@yuno-payments/dashboard-api-mfe 0.36.60 → 0.36.61-CORECM-13617.2

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,7 +1,7 @@
1
1
  import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
2
2
  import { HttpClient } from '../lib/http-client';
3
3
  import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings } from './api.types';
4
- import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection } from '../types';
4
+ import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, GetInstallmentPlansResponse } from '../types';
5
5
  import { ConversionRateParams, ConversionRateBody, ConversionRateOverview, ConversionRateOverviewFraud3ds } from '../types/data-report/conversion-rate.types';
6
6
  import { RoutingMonitors } from '../types/routing-monitors';
7
7
  import { ChangePaymentsWebhook } from '../mutations';
@@ -357,6 +357,7 @@ export declare class Api extends HttpClient {
357
357
  code: any;
358
358
  }): Promise<AxiosResponse<T, any>>;
359
359
  getTimezone<T>(organizationCode: string): Promise<AxiosResponse<T, any>>;
360
+ getInstallmentPlans(accountCode: string): Promise<AxiosResponse<GetInstallmentPlansResponse>>;
360
361
  firebaseUserSubscribe<T>(payload: FirebaseUserSubscribe): Promise<AxiosResponse<T>>;
361
362
  postUserSettings<T>(payload: TimeZoneCatalog | PaymentsSettings): Promise<AxiosResponse<T>>;
362
363
  postUserSettingsTables<T>(payload: PaymentsSettings, section: string): Promise<AxiosResponse<T>>;
@@ -5,3 +5,4 @@ export declare function useGetPaymentLinkByCode(paymentLinkCode: any): UseQueryR
5
5
  export declare function useGetCountriesConfigPaymentLink(enabled?: boolean): UseQueryResult<PaymentLinks.GetCountriesConfig, unknown>;
6
6
  export declare function useGetCountriesConfigPaymentLinkV2(acceptLanguage?: string): UseQueryResult<PaymentLinks.GetCountriesConfig, unknown>;
7
7
  export declare function useGetTimezonePaymentLink(organizationCode: string): UseQueryResult<any, unknown>;
8
+ export declare function useGetInstallmentPlans(accountCode: string): UseQueryResult<import("../../types").GetInstallmentPlansResponse, unknown>;
@@ -13,3 +13,44 @@ export declare namespace PaymentLinks {
13
13
  countries: DataCountries[];
14
14
  }
15
15
  }
16
+ export interface InstallmentAmount {
17
+ currency: string;
18
+ value: string;
19
+ total_value: string;
20
+ }
21
+ export interface InstallmentPlanItem {
22
+ id: string;
23
+ installment: number;
24
+ rate: number | null;
25
+ provider_id: string;
26
+ amount?: {
27
+ currency: string;
28
+ value: string;
29
+ total_value: string;
30
+ };
31
+ type?: string;
32
+ }
33
+ export interface PlanAmount {
34
+ currency: string;
35
+ min_value: string;
36
+ max_value: string;
37
+ }
38
+ export interface Availability {
39
+ start_at: string;
40
+ finish_at: string;
41
+ }
42
+ export interface InstallmentPlan {
43
+ id: string;
44
+ code: string;
45
+ name: string;
46
+ account_id: string[];
47
+ merchant_reference: string;
48
+ installments_plan: InstallmentPlanItem[];
49
+ country_code: string;
50
+ amount: PlanAmount;
51
+ availability: Availability;
52
+ types_list?: string[];
53
+ created_at?: string;
54
+ updated_at?: string;
55
+ }
56
+ export type GetInstallmentPlansResponse = InstallmentPlan[];