UNPKG

paypal-rest-api

Version:

A typescript module for integrating with PayPal REST APIs.

13 lines (12 loc) 510 B
import { Model } from "../abstracts"; import { Client, RequestOptions } from "../client"; import { PaymentModel } from "../payment"; import { SaleApi } from "./api"; import { ISale } from "./types"; export declare class SaleModel extends Model<ISale> { static api: SaleApi; static get(id: string, options?: Partial<RequestOptions>): Promise<SaleModel>; static init(client: Client): void; constructor(model: PaymentModel | ISale); refund(options?: Partial<RequestOptions>): Promise<this>; }