@mft/moneyhub-api-client
Version:
Node.JS client for the Moneyhub API
20 lines • 1.24 kB
TypeScript
import { ApiResponse, ExtraOptions } from "../../request";
import { PaymentsClaims, RecurringPaymentRequest, RecurringPaymentSearchParams, FundsConfirmationRequest, FundsConfirmationResponse } from "../../schema/payment";
export interface RecurringPaymentsRequests {
getRecurringPayments: (params?: RecurringPaymentSearchParams, options?: ExtraOptions) => Promise<ApiResponse<RecurringPaymentRequest[]>>;
getRecurringPayment: ({ recurringPaymentId, }: {
recurringPaymentId: string;
}, options?: ExtraOptions) => Promise<ApiResponse<RecurringPaymentRequest>>;
makeRecurringPayment: ({ recurringPaymentId, payment, }: {
recurringPaymentId: string;
payment: PaymentsClaims;
}, options?: ExtraOptions) => Promise<ApiResponse<RecurringPaymentRequest>>;
revokeRecurringPayment: ({ recurringPaymentId, }: {
recurringPaymentId: string;
}, options?: ExtraOptions) => Promise<number>;
confirmFundsForRecurringPayment: ({ recurringPaymentId, fundsConfirmation, }: {
recurringPaymentId: string;
fundsConfirmation: FundsConfirmationRequest;
}, options?: ExtraOptions) => Promise<ApiResponse<FundsConfirmationResponse>>;
}
//# sourceMappingURL=recurring-payments.d.ts.map