✨ Ajouter et Retirer des points de fidélité
This commit is contained in:
@@ -6,4 +6,12 @@ export function registerCustomer(customer) {
|
||||
|
||||
export function findCustomerByPhone(phoneNumber) {
|
||||
return client.get(`/api/customers/phone/${encodeURIComponent(phoneNumber)}`);
|
||||
}
|
||||
|
||||
export function addLoyaltyPoints(customerId, points) {
|
||||
return client.post(`/api/customers/${customerId}/loyalty/add`, null, { params: { points } });
|
||||
}
|
||||
|
||||
export function subtractLoyaltyPoints(customerId, points) {
|
||||
return client.post(`/api/customers/${customerId}/loyalty/subtract`, null, { params: { points } });
|
||||
}
|
||||
Reference in New Issue
Block a user