implment send amount gift api
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
EGIFT_CARDS_URL,
|
||||
REDEEM_DETAILS_URL,
|
||||
LOYALTY_HISTORY_URL,
|
||||
CREATE_GIFT_AMOUNT_URL,
|
||||
} from "utils/constants";
|
||||
|
||||
import { OrderDetails } from "pages/checkout/hooks/types";
|
||||
@@ -202,6 +203,13 @@ export const branchApi = baseApi.injectEndpoints({
|
||||
return response.result.data.orders;
|
||||
},
|
||||
}),
|
||||
createGiftAmount: builder.mutation({
|
||||
query: (body: any) => ({
|
||||
url: CREATE_GIFT_AMOUNT_URL,
|
||||
method: "POST",
|
||||
body,
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
});
|
||||
export const {
|
||||
@@ -218,4 +226,5 @@ export const {
|
||||
useGetEGiftCardsQuery,
|
||||
useGetRedeemDetailsQuery,
|
||||
useGetLoyaltyHistoryQuery,
|
||||
useCreateGiftAmountMutation,
|
||||
} = branchApi;
|
||||
|
||||
Reference in New Issue
Block a user