From 4a4f14e8ea663c1621cc643b4eb81966c3151849 Mon Sep 17 00:00:00 2001 From: G Date: Tue, 7 May 2024 17:59:59 +0000 Subject: [PATCH] request to retrieve the list of payment types supported by the app --- src/utils/requests/getPaymentTypes.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/utils/requests/getPaymentTypes.ts diff --git a/src/utils/requests/getPaymentTypes.ts b/src/utils/requests/getPaymentTypes.ts new file mode 100644 index 0000000..3893fb9 --- /dev/null +++ b/src/utils/requests/getPaymentTypes.ts @@ -0,0 +1,14 @@ +import { IauthenticationData } from "@/contexts/Types"; +import axiosRequest from "../axios-request"; +import { IpaginatedResponse, IpaymentType } from "./Types"; + +const getPaymentTypes = async () => { + return await axiosRequest>({ + url: "/typepaiement/", + method: "GET", + + }); +}; + + +export default getPaymentTypes; \ No newline at end of file -- libgit2 0.27.1