@fenil265/fundly-payment-sdk
Version:
Fundly Payment SDK for seamless integration with Fundly Pay systems.
53 lines • 1.5 kB
TypeScript
/**
* Payment API Service
* All payment-related API calls
*/
import type { PaymentOptionsResponse } from "../../types/payment.types";
export interface PaymentOptionsPayload {
distributorBusinessId: string | null;
source: string | null;
chemistBusinessId: string | null;
payableAmount: string | number | null;
salesmanId?: number;
collectType?: string | null;
}
export interface MakePaymentPayload {
paymentMode: string;
paymentDate: string;
paymentType: string;
paymentInvoice?: any;
invoices?: any[];
tenure?: number;
otp?: string;
orderId?: string;
installmentAmount?: number;
numberOfInstallments?: number;
startDate?: string;
totalLoanAmount?: number;
fiCode?: string;
chemistBusinessId?: string | null;
paymentProof?: {
id: string;
};
source?: string | null;
payerMobileNumber?: string;
salesmanId?: number;
}
export interface MakePaymentResponse {
transactionId?: string;
link?: string;
[key: string]: any;
}
/**
* Fetch payment options
*/
export declare const fetchPaymentOptions: (payload: PaymentOptionsPayload) => Promise<PaymentOptionsResponse>;
/**
* Make a payment (used for various payment modes)
*/
export declare const makePayment: (payload: MakePaymentPayload) => Promise<MakePaymentResponse>;
/**
* Upload payment proof (for cash/cheque)
*/
export declare const uploadPaymentProof: (file: File) => Promise<any>;
//# sourceMappingURL=payment.api.d.ts.map