mpp-sdk
Version:
SDK to talk to the Memento Payments Platform
15 lines (14 loc) • 610 B
TypeScript
import { AxiosRequestConfig } from "axios";
import { MPPConfig } from "../";
import { Filter, FilterOp } from "../types/filters";
export declare const isIdempotent: (method: string) => boolean;
export declare const uuidv4: () => string;
export declare type URLOptions = {
[key: string]: string;
};
export declare const headers: (axiosConfig: AxiosRequestConfig, mppConfig: MPPConfig) => {
[key: string]: string;
};
export declare const filtersToParams: <TFilterOp extends FilterOp, TSortKey extends string, F extends Filter<TFilterOp, TSortKey>>(options: F) => {
[key: string]: string | number;
};