Initial Node.js SDK v1.0.0

This commit is contained in:
garfieldheron
2026-02-19 12:07:39 -05:00
commit 6c252b7495
24 changed files with 1837 additions and 0 deletions

27
dist/api/payment-methods.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
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>;
}