import Core from "../interfaces/core"; import { List, ListOption, PaymentMethod, PaymentMethodParams } from "../types"; import BaseResource from "./base"; export default class PaymentMethodsResource extends BaseResource implements Core { constructor(apiKey: string, maxRetries: number, timeout: number); /** Creates a payment method */ create(params: PaymentMethodParams): Promise; /** Retrieves a payment method. */ retrieve(id: string): Promise; /** Returns a list of payment methods. */ list(options?: ListOption): Promise>; /** Removes a payment method from a customer. Once removed, it can't be used for payments or added back to the customer. */ detach(id: string): Promise; /** Attaches a payment method to a customer. */ attach(id: string, customer: string): Promise; }