feat(medusa, medusa-plugin-brightpearl): Inventory management for Brightpearl (#3192)
This commit is contained in:
@@ -140,6 +140,12 @@ class BrightpearlClient {
|
||||
data,
|
||||
})
|
||||
},
|
||||
delete: (id) => {
|
||||
return this.client_.request({
|
||||
url: `/integration-service/webhook/${id}`,
|
||||
method: "DELETE",
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,6 +204,15 @@ class BrightpearlClient {
|
||||
data,
|
||||
})
|
||||
},
|
||||
updateReservation: (orderId, data) => {
|
||||
return this.client_
|
||||
.request({
|
||||
url: `/warehouse-service/order/${orderId}/reservation`,
|
||||
method: "PUT",
|
||||
data,
|
||||
})
|
||||
.then(({ data }) => data.response)
|
||||
},
|
||||
createReservation: (order, warehouse) => {
|
||||
const id = order.id
|
||||
const data = order.rows.map((r) => ({
|
||||
|
||||
Reference in New Issue
Block a user