Files
fetcherpay-node/dist/api/payment-methods.d.ts
2026-02-19 12:07:39 -05:00

28 lines
802 B
TypeScript

import { AxiosInstance } from 'axios';
import { PaymentMethod, CreatePaymentMethodRequest, ListResponse, PaginationParams } from '../types';
/**
* Payment Methods API client
*/
export declare class PaymentMethodsClient {
private http;
constructor(http: AxiosInstance);
/**
* Create a new payment method
*/
create(params: CreatePaymentMethodRequest, idempotencyKey?: string): Promise<PaymentMethod>;
/**
* Retrieve a payment method by ID
*/
retrieve(paymentMethodId: string): Promise<PaymentMethod>;
/**
* List all payment methods
*/
list(params?: PaginationParams & {
type?: string;
}): Promise<ListResponse<PaymentMethod>>;
/**
* Delete a payment method
*/
delete(paymentMethodId: string): Promise<void>;
}