import axiosInstance from "../axios";

type CreateNewCard = {
    holderName: string,
    PAN: string,
    IBAN: string
}

type DeleteCard = {
    id: string | number | null
}

export const createNewCardMutation = (payload: CreateNewCard) => axiosInstance.post<any>("gps/bank-card", payload)
export const deleteCardMutation = (payload: DeleteCard) => axiosInstance.delete<any>(`gps/bank-card/${payload?.id}`)
export const getUserCardsList = () => axiosInstance.get<any>("gps/bank-card")