modem-pay
Version:
A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.
17 lines (16 loc) • 831 B
TypeScript
import Core from "../interfaces/core";
import { List, ListOption, PaymentLink, PaymentLinkParams, PaymentLinkUpdateParams } from "../types";
import BaseResource from "./base";
export default class PaymentLinksResource extends BaseResource implements Core<PaymentLink> {
constructor(apiKey: string, maxRetries: number, timeout: number);
/** Creates a payment link */
create(params: PaymentLinkParams): Promise<PaymentLink>;
/** Retrieves a payment link. */
retrieve(id: string): Promise<PaymentLink>;
/** Updates the payment link. */
update(id: string, params: PaymentLinkUpdateParams): Promise<PaymentLink>;
/** Returns a list of payment links. */
list(options?: ListOption): Promise<List<PaymentLink>>;
/** Permanently deletes the payment link. */
delete(id: string): Promise<void>;
}