@squadco/js
Version:
Simplify the integration process with Squad's comprehensive payment solutions using the Squad JavaScript SDK.
22 lines (21 loc) • 1.22 kB
TypeScript
import SquadDisputeResolver from "./dispute";
import type { PosInterfaceResponseProps } from "./interfaces/pos.interface";
export default abstract class SquadPOS extends SquadDisputeResolver {
/**
* @desc This is the sub class for the Squad POS Module
* @arg {string} publicKey - Squad public key
* @arg {string} privateKey - Squad private key
* @arg {string} environment - The environment to use for the client. If not specified, defaults to "development".
*/
private basePosUrl;
constructor(publicKey: string, privateKey: string, environment: "production" | "development");
/**
* This method gets all the transactions made on the POS
* @param {number} page - The page number
* @param {number} perPage - The number of transactions per page
* @param {string} dateFrom - Format YYYY-MM-DD startDate
* @param {string} dateTo - Format YYYY-MM-DD endDate
* @param {string} sort_by_dir - This arranges transactions in Ascending or Descending order. Possible values are ASC or DESC
*/
getAllPosTransactions(page: number, perPage: number, dateFrom?: string, dateTo?: string, sort_by_dir?: "ASC" | "DESC"): Promise<PosInterfaceResponseProps>;
}