customer v 1.0.0
This commit is contained in:
parent
bd370901a9
commit
6df5268476
@ -3,7 +3,7 @@ import makeRequest from "@api/makeRequest";
|
|||||||
|
|
||||||
import { parseAxiosError } from "@root/utils/parse-error";
|
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 (
|
export const patchCart = async (
|
||||||
tariffId: string
|
tariffId: string
|
||||||
|
@ -44,7 +44,7 @@ export type RawDetails = {
|
|||||||
Value: string | number | KeyValue[][];
|
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<
|
export const getHistory = async (): Promise<
|
||||||
[GetHistoryResponse | GetHistoryResponse2 | null, string?]
|
[GetHistoryResponse | GetHistoryResponse2 | null, string?]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import makeRequest from "@api/makeRequest";
|
import makeRequest from "@api/makeRequest";
|
||||||
import { parseAxiosError } from "@root/utils/parse-error";
|
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 = {
|
type GetRecentlyPurchasedTariffsResponse = {
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -7,7 +7,7 @@ const isStaging = (() => {
|
|||||||
return host.includes("s") ? "s" : "";
|
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 {
|
interface PaymentBody {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -82,7 +82,7 @@ const App = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
useUserAccountFetcher({
|
useUserAccountFetcher({
|
||||||
url: process.env.REACT_APP_DOMAIN + "/customer/account",
|
url: process.env.REACT_APP_DOMAIN + "/customer/v1.0.0/account",
|
||||||
userId,
|
userId,
|
||||||
onNewUserAccount: setUserAccount,
|
onNewUserAccount: setUserAccount,
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user