feat: integration api expired initiate lockey
This commit is contained in:
@@ -6,6 +6,7 @@ const url = {
|
||||
findLocationByQrCode: (qrCode) => `/locations/findOne/${qrCode}`,
|
||||
createOrder: () => `/bots/create-order`,
|
||||
checkTransaction: (orderId) => `/bots/find/one-history/${orderId}`,
|
||||
expiredOrder: (id) => `/bots/expired-status/${id}`,
|
||||
}
|
||||
|
||||
const hooks = {
|
||||
@@ -22,6 +23,14 @@ const api = {
|
||||
const res = await http.fetcher(url.checkTransaction(orderId));
|
||||
return res
|
||||
},
|
||||
|
||||
async createOrder(body) {
|
||||
return await http.post(url.createOrder(), body)
|
||||
},
|
||||
|
||||
updateStatusExpiredOrder(id) {
|
||||
return http.put(url.expiredOrder(id));
|
||||
}
|
||||
}
|
||||
|
||||
export const botsRepository = {
|
||||
|
||||
Reference in New Issue
Block a user