mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
Fix Stripe API URLs in webapp
This commit is contained in:
@@ -37,7 +37,7 @@ export const useCreateStripeAccountLink = (
|
|||||||
return useMutation(
|
return useMutation(
|
||||||
(values: StripeAccountLinkValues) => {
|
(values: StripeAccountLinkValues) => {
|
||||||
return apiRequest
|
return apiRequest
|
||||||
.post('/stripe_integration/account_link', {
|
.post('/stripe/account_link', {
|
||||||
stripe_account_id: values?.stripeAccountId,
|
stripe_account_id: values?.stripeAccountId,
|
||||||
})
|
})
|
||||||
.then((res) => transformToCamelCase(res.data));
|
.then((res) => transformToCamelCase(res.data));
|
||||||
@@ -72,7 +72,7 @@ export const useCreateStripeAccountSession = (
|
|||||||
return useMutation(
|
return useMutation(
|
||||||
(values: AccountSessionValues) => {
|
(values: AccountSessionValues) => {
|
||||||
return apiRequest
|
return apiRequest
|
||||||
.post('/stripe_integration/account_session', {
|
.post('/stripe/account_session', {
|
||||||
account: values?.connectedAccountId,
|
account: values?.connectedAccountId,
|
||||||
})
|
})
|
||||||
.then((res) => res.data);
|
.then((res) => res.data);
|
||||||
@@ -100,7 +100,7 @@ export const useCreateStripeAccount = (
|
|||||||
return useMutation(
|
return useMutation(
|
||||||
(values: CreateStripeAccountValues) => {
|
(values: CreateStripeAccountValues) => {
|
||||||
return apiRequest
|
return apiRequest
|
||||||
.post('/stripe_integration/account')
|
.post('/stripe/account')
|
||||||
.then((res) => res.data);
|
.then((res) => res.data);
|
||||||
},
|
},
|
||||||
{ ...options },
|
{ ...options },
|
||||||
@@ -131,7 +131,7 @@ export const useGetStripeAccountLink = (
|
|||||||
'getStripeAccountLink',
|
'getStripeAccountLink',
|
||||||
() => {
|
() => {
|
||||||
return apiRequest
|
return apiRequest
|
||||||
.get('/stripe_integration/link')
|
.get('/stripe/link')
|
||||||
.then((res) => transformToCamelCase(res.data));
|
.then((res) => transformToCamelCase(res.data));
|
||||||
},
|
},
|
||||||
{ ...options },
|
{ ...options },
|
||||||
@@ -163,7 +163,7 @@ export const useSetStripeAccountCallback = (
|
|||||||
return useMutation(
|
return useMutation(
|
||||||
(values: StripeAccountCallbackMutationValues) => {
|
(values: StripeAccountCallbackMutationValues) => {
|
||||||
return apiRequest
|
return apiRequest
|
||||||
.post(`/stripe_integration/callback`, values)
|
.post(`/stripe/callback`, values)
|
||||||
.then(
|
.then(
|
||||||
(res) =>
|
(res) =>
|
||||||
transformToCamelCase(
|
transformToCamelCase(
|
||||||
|
|||||||
Reference in New Issue
Block a user