payouts
This commit is contained in:
@@ -84,7 +84,6 @@ export const rentalAPI = {
|
||||
api.post(`/rentals/${id}/review-renter`, data),
|
||||
reviewItem: (id: string, data: any) =>
|
||||
api.post(`/rentals/${id}/review-item`, data),
|
||||
addReview: (id: string, data: any) => api.post(`/rentals/${id}/review`, data), // Legacy
|
||||
};
|
||||
|
||||
export const messageAPI = {
|
||||
@@ -119,14 +118,10 @@ export const stripeAPI = {
|
||||
}) => api.post("/stripe/create-checkout-session", data),
|
||||
getCheckoutSession: (sessionId: string) =>
|
||||
api.get(`/stripe/checkout-session/${sessionId}`),
|
||||
// createConnectedAccount: () =>
|
||||
// api.post("/stripe/accounts"),
|
||||
// createAccountLink: (data: { refreshUrl: string; returnUrl: string }) =>
|
||||
// api.post("/stripe/account-links", data),
|
||||
// getAccountStatus: () =>
|
||||
// api.get("/stripe/account-status"),
|
||||
// createPaymentIntent: (data: { rentalId: string; amount: number }) =>
|
||||
// api.post("/stripe/payment-intents", data),
|
||||
createConnectedAccount: () => api.post("/stripe/accounts"),
|
||||
createAccountLink: (data: { refreshUrl: string; returnUrl: string }) =>
|
||||
api.post("/stripe/account-links", data),
|
||||
getAccountStatus: () => api.get("/stripe/account-status"),
|
||||
};
|
||||
|
||||
export default api;
|
||||
|
||||
Reference in New Issue
Block a user