omnipay-savings-sdk
Version:
Omnipay Savings SDK
41 lines (40 loc) • 2.01 kB
TypeScript
import { CreateSavingsParams, UpdateSavingsParams, FundSavingsParams } from './types';
import { InterestBreakdownType } from '../utils/types';
export declare const getAllSavingsCategories: (apiKey: string) => Promise<any>;
export declare const getAllPlans: (apiKey: string) => Promise<any>;
export declare const createPlan: (apiKey: string, planName: string) => Promise<any>;
export declare const createSavingsAccount: (apiKey: string, params: CreateSavingsParams) => Promise<any>;
export declare const updateSavingsAccount: (apiKey: string, params: UpdateSavingsParams) => Promise<any>;
export declare const getSavingsListByCustomerId: (apiKey: string) => Promise<any>;
export declare const getSavingsDetailsBySavingsId: (apiKey: string, savingsId: string) => Promise<any>;
export declare const getTotalAccountTransactionsByCustomerId: (apiKey: string) => Promise<any>;
export declare const getSavingsTransactionsList: (apiKey: string, params: {
savingsId: string;
recordsPerPage?: number;
transactionType?: string;
startDate?: string;
endDate?: string;
search?: string;
narration?: string;
status?: string;
nextPageToken?: string;
}) => Promise<any>;
export declare const getSavingsTransactionHistory: (apiKey: string, params: {
recordsPerPage?: number;
transactionType?: string;
startDate?: string;
endDate?: string;
nextPageToken?: string;
}) => Promise<any>;
export declare const getWalletBalance: (apiKey: string) => Promise<any>;
export declare const fundSavingsAccount: (apiKey: string, params: FundSavingsParams) => Promise<any>;
export declare const withdrawFromSavingsAccount: (apiKey: string, params: {
savingsId: string;
amount: number;
}) => Promise<any>;
export declare const getInterestBreakdownBySavingsId: (savingsId: string, apiKey: string) => Promise<{
error: boolean;
message: string;
data: InterestBreakdownType[];
}>;
export declare const getLockedSavingsInterestRateTiers: (apiKey: string) => Promise<any>;