-
Notifications
You must be signed in to change notification settings - Fork 528
Expand file tree
/
Copy pathICustomerManagerService.cs
More file actions
55 lines (49 loc) · 1.89 KB
/
ICustomerManagerService.cs
File metadata and controls
55 lines (49 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using Grand.Business.Core.Utilities.Customers;
using Grand.Domain.Customers;
namespace Grand.Business.Core.Interfaces.Customers
{
/// <summary>
/// Customer manager interface
/// </summary>
public partial interface ICustomerManagerService
{
/// <summary>
/// Login customer
/// </summary>
/// <param name="usernameOrEmail">Username or email</param>
/// <param name="password">Password</param>
/// <returns>Result</returns>
Task<CustomerLoginResults> LoginCustomer(string usernameOrEmail, string password);
/// <summary>
/// Login customer with E-mail Code
/// </summary>
/// <param name="userId">UserId of the record</param>
/// <param name="loginCode">loginCode provided in e-mail</param>
/// <returns>Result</returns>
Task<CustomerLoginResults> LoginCustomerWithMagicLink(string userId, string loginCode);
/// <summary>
/// Register customer
/// </summary>
/// <param name="request">Request</param>
/// <returns>Result</returns>
Task<RegistrationResult> RegisterCustomer(RegistrationRequest request);
/// <summary>
/// Change password
/// </summary>
/// <param name="request">Request</param>
/// <returns>Result</returns>
Task<ChangePasswordResult> ChangePassword(ChangePasswordRequest request);
/// <summary>
/// Sets a user email
/// </summary>
/// <param name="customer">Customer</param>
/// <param name="newEmail">New email</param>
Task SetEmail(Customer customer, string newEmail);
/// <summary>
/// Sets a customer username
/// </summary>
/// <param name="customer">Customer</param>
/// <param name="newUsername">New Username</param>
Task SetUsername(Customer customer, string newUsername);
}
}