customer v 1.0.0

This commit is contained in:
Nastya 2024-06-07 19:59:44 +03:00
parent bd370901a9
commit 6df5268476
5 changed files with 5 additions and 5 deletions

@ -3,7 +3,7 @@ import makeRequest from "@api/makeRequest";
import { parseAxiosError } from "@root/utils/parse-error";
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`;
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
export const patchCart = async (
tariffId: string

@ -44,7 +44,7 @@ export type RawDetails = {
Value: string | number | KeyValue[][];
};
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`;
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
export const getHistory = async (): Promise<
[GetHistoryResponse | GetHistoryResponse2 | null, string?]

@ -1,7 +1,7 @@
import makeRequest from "@api/makeRequest";
import { parseAxiosError } from "@root/utils/parse-error";
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`;
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
type GetRecentlyPurchasedTariffsResponse = {
id: string;

@ -7,7 +7,7 @@ const isStaging = (() => {
return host.includes("s") ? "s" : "";
})();
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`;
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
interface PaymentBody {
type: string;

@ -82,7 +82,7 @@ const App = () => {
});
useUserAccountFetcher({
url: process.env.REACT_APP_DOMAIN + "/customer/account",
url: process.env.REACT_APP_DOMAIN + "/customer/v1.0.0/account",
userId,
onNewUserAccount: setUserAccount,
onError: (error) => {