transactions
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import { api } from "@/config/axios";
|
||||
import { CouponsResponse, WalletResponse } from "../types/Types";
|
||||
import {
|
||||
CouponsResponse,
|
||||
WalletResponse,
|
||||
TransactionsResponse,
|
||||
} from "../types/Types";
|
||||
|
||||
export const getMyCoupons = async (): Promise<CouponsResponse> => {
|
||||
const { data } = await api.get<CouponsResponse>("/public/coupons/me");
|
||||
@@ -15,3 +19,8 @@ export const convertScoreToWallet = async () => {
|
||||
const { data } = await api.post("/public/user/convert-score-to-wallet");
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getTransactions = async (): Promise<TransactionsResponse> => {
|
||||
const { data } = await api.get<TransactionsResponse>("/public/payments");
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user