Method | Description | |
---|---|---|
CustomerService ( ICacheManager cacheManager, IRepository |
||
DeleteAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
DeleteCustomer ( |
Delete a customer
|
|
DeleteCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void |
Delete a customer role
|
|
DeleteCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void | ||
DeleteCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void |
Delete a customer role product
|
|
DeleteGuestCustomers ( System.DateTime createdFromUtc, System.DateTime createdToUtc, bool onlyWithoutShoppingCart ) : int |
Delete guest customer records
|
|
DeleteShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void | ||
GetAllCustomerRoles ( bool showHidden = false ) : IList |
Gets all customer roles
|
|
GetAllCustomers ( System.DateTime createdFromUtc = null, System.DateTime createdToUtc = null, int affiliateId, int vendorId, int customerRoleIds = null, string email = null, string username = null, string firstName = null, string lastName = null, int dayOfBirth, int monthOfBirth, string company = null, string phone = null, string zipPostalCode = null, bool loadOnlyWithShoppingCart = false, ShoppingCartType sct = null, int pageIndex, int pageSize = 2147483647 ) : IPagedList |
Gets all customers
|
|
GetAllCustomersByPasswordFormat ( PasswordFormat passwordFormat ) : IList |
Gets all customers by customer format (including deleted ones)
|
|
GetCustomerByEmail ( string email ) : |
Get customer by email
|
|
GetCustomerByGuid ( System.Guid customerGuid ) : |
Gets a customer by GUID
|
|
GetCustomerById ( int customerId ) : |
Gets a customer
|
|
GetCustomerBySystemName ( string systemName ) : |
Get customer by system name
|
|
GetCustomerByUsername ( string username ) : |
Get customer by username
|
|
GetCustomerRoleById ( int customerRoleId ) : Nop.Core.Domain.Customers.CustomerRole |
Gets a customer role
|
|
GetCustomerRoleBySystemName ( string systemName ) : Nop.Core.Domain.Customers.CustomerRole |
Gets a customer role
|
|
GetCustomerRoleProduct ( int customerRoleId, int productId ) : Nop.Core.Domain.Customers.CustomerRoleProduct |
Gets customer roles products for customer role
|
|
GetCustomerRoleProductById ( int id ) : Nop.Core.Domain.Customers.CustomerRoleProduct |
Gets customer roles product
|
|
GetCustomerRoleProducts ( int customerRoleId ) : IList |
Gets customer roles products for customer role
|
|
GetCustomersByIds ( int customerIds ) : IList |
Get customers by identifiers
|
|
GetOnlineCustomers ( System.DateTime lastActivityFromUtc, int customerRoleIds, int pageIndex, int pageSize = int.MaxValue ) : IPagedList |
Gets online customers
|
|
InsertAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
InsertCustomer ( |
Insert a customer
|
|
InsertCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void |
Inserts a customer role
|
|
InsertCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void | ||
InsertCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void |
Inserts a customer role product
|
|
InsertGuestCustomer ( ) : |
Insert a guest customer
|
|
InsertShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void | ||
RemoveShippingAddress ( int customerId ) : void | ||
ResetCheckoutData ( |
Reset data required for checkout
|
|
UpdateActive ( |
||
UpdateAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
UpdateAffiliate ( |
Updates the customer - last activity date
|
|
UpdateBillingAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
UpdateCustomer ( |
Updates the customer
|
|
UpdateCustomerLastActivityDate ( |
Updates the customer - last activity date
|
|
UpdateCustomerLastIpAddress ( |
Updates the customer - last activity date
|
|
UpdateCustomerLastLoginDate ( |
Updates the customer - last activity date
|
|
UpdateCustomerPassword ( |
Updates the customer - password
|
|
UpdateCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void |
Updates the customer role
|
|
UpdateCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void |
Updates the customer role product
|
|
UpdateCustomerVendor ( |
||
UpdateCustomerinAdminPanel ( |
||
UpdateHasBlogComments ( int customerId ) : void | ||
UpdateHasForumPost ( int customerId ) : void | ||
UpdateHasForumTopic ( int customerId ) : void | ||
UpdateHasOrders ( int customerId ) : void | ||
UpdateHasPoolVoting ( int customerId ) : void | ||
UpdateHasProductReview ( int customerId ) : void | ||
UpdateHasProductReviewH ( int customerId ) : void | ||
UpdateHasShoppingCartItems ( |
||
UpdateNewsItem ( |
||
UpdateShippingAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
UpdateShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void |
public CustomerService ( ICacheManager cacheManager, IRepository |
||
cacheManager | ICacheManager | |
customerRepository | IRepository |
|
customerRoleRepository | IRepository |
|
customerRoleProductRepository | IRepository |
|
orderRepository | IRepository |
|
forumPostRepository | IRepository |
|
forumTopicRepository | IRepository |
|
blogCommentRepository | IRepository |
|
newsCommentRepository | IRepository |
|
pollVotingRecordRepository | IRepository |
|
productReviewRepository | IRepository |
|
productReviewHelpfulnessRepository | IRepository |
|
genericAttributeService | IGenericAttributeService | |
dataProvider | IDataProvider | |
eventPublisher | IEventPublisher | |
customerSettings | ||
commonSettings | ||
return | System |
public DeleteAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | |
return | void |
public DeleteCustomer ( |
||
customer | Customer | |
return | void |
public DeleteCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void | ||
customerRole | Nop.Core.Domain.Customers.CustomerRole | Customer role |
return | void |
public DeleteCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void | ||
customerRole | Nop.Core.Domain.Customers.CustomerRole | |
return | void |
public DeleteCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void | ||
customerRoleProduct | Nop.Core.Domain.Customers.CustomerRoleProduct | Customer role product |
return | void |
public DeleteGuestCustomers ( System.DateTime createdFromUtc, System.DateTime createdToUtc, bool onlyWithoutShoppingCart ) : int | ||
createdFromUtc | System.DateTime | Created date from (UTC); null to load all records |
createdToUtc | System.DateTime | Created date to (UTC); null to load all records |
onlyWithoutShoppingCart | bool | A value indicating whether to delete customers only without shopping cart |
return | int |
public DeleteShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void | ||
shoppingCartItem | Nop.Core.Domain.Orders.ShoppingCartItem | |
return | void |
public GetAllCustomerRoles ( bool showHidden = false ) : IList |
||
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetAllCustomers ( System.DateTime createdFromUtc = null, System.DateTime createdToUtc = null, int affiliateId, int vendorId, int customerRoleIds = null, string email = null, string username = null, string firstName = null, string lastName = null, int dayOfBirth, int monthOfBirth, string company = null, string phone = null, string zipPostalCode = null, bool loadOnlyWithShoppingCart = false, ShoppingCartType sct = null, int pageIndex, int pageSize = 2147483647 ) : IPagedList |
||
createdFromUtc | System.DateTime | Created date from (UTC); null to load all records |
createdToUtc | System.DateTime | Created date to (UTC); null to load all records |
affiliateId | int | Affiliate identifier |
vendorId | int | Vendor identifier |
customerRoleIds | int | A list of customer role identifiers to filter by (at least one match); pass null or empty list in order to load all customers; |
string | Email; null to load all customers | |
username | string | Username; null to load all customers |
firstName | string | First name; null to load all customers |
lastName | string | Last name; null to load all customers |
dayOfBirth | int | Day of birth; 0 to load all customers |
monthOfBirth | int | Month of birth; 0 to load all customers |
company | string | Company; null to load all customers |
phone | string | Phone; null to load all customers |
zipPostalCode | string | Phone; null to load all customers |
loadOnlyWithShoppingCart | bool | Value indicating whether to load customers only with shopping cart |
sct | ShoppingCartType | Value indicating what shopping cart type to filter; userd when 'loadOnlyWithShoppingCart' param is 'true' |
pageIndex | int | Page index |
pageSize | int | Page size |
return | IPagedList |
public GetAllCustomersByPasswordFormat ( PasswordFormat passwordFormat ) : IList |
||
passwordFormat | PasswordFormat | Password format |
return | IList |
public GetCustomerByEmail ( string email ) : |
||
string | ||
return |
public GetCustomerByGuid ( System.Guid customerGuid ) : |
||
customerGuid | System.Guid | Customer GUID |
return |
public GetCustomerById ( int customerId ) : |
||
customerId | int | Customer identifier |
return |
public GetCustomerBySystemName ( string systemName ) : |
||
systemName | string | System name |
return |
public GetCustomerByUsername ( string username ) : |
||
username | string | Username |
return |
public GetCustomerRoleById ( int customerRoleId ) : Nop.Core.Domain.Customers.CustomerRole | ||
customerRoleId | int | Customer role identifier |
return | Nop.Core.Domain.Customers.CustomerRole |
public GetCustomerRoleBySystemName ( string systemName ) : Nop.Core.Domain.Customers.CustomerRole | ||
systemName | string | Customer role system name |
return | Nop.Core.Domain.Customers.CustomerRole |
public GetCustomerRoleProduct ( int customerRoleId, int productId ) : Nop.Core.Domain.Customers.CustomerRoleProduct | ||
customerRoleId | int | Customer role id |
productId | int | Product id |
return | Nop.Core.Domain.Customers.CustomerRoleProduct |
public GetCustomerRoleProductById ( int id ) : Nop.Core.Domain.Customers.CustomerRoleProduct | ||
id | int | |
return | Nop.Core.Domain.Customers.CustomerRoleProduct |
public GetCustomerRoleProducts ( int customerRoleId ) : IList |
||
customerRoleId | int | Customer role id |
return | IList |
public GetCustomersByIds ( int customerIds ) : IList |
||
customerIds | int | Customer identifiers |
return | IList |
public GetOnlineCustomers ( System.DateTime lastActivityFromUtc, int customerRoleIds, int pageIndex, int pageSize = int.MaxValue ) : IPagedList |
||
lastActivityFromUtc | System.DateTime | Customer last activity date (from) |
customerRoleIds | int | A list of customer role identifiers to filter by (at least one match); pass null or empty list in order to load all customers; |
pageIndex | int | Page index |
pageSize | int | Page size |
return | IPagedList |
public InsertAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | |
return | void |
public InsertCustomer ( |
||
customer | Customer | |
return | void |
public InsertCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void | ||
customerRole | Nop.Core.Domain.Customers.CustomerRole | Customer role |
return | void |
public InsertCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void | ||
customerRole | Nop.Core.Domain.Customers.CustomerRole | |
return | void |
public InsertCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void | ||
customerRoleProduct | Nop.Core.Domain.Customers.CustomerRoleProduct | Customer role product |
return | void |
public InsertGuestCustomer ( ) : |
||
return |
public InsertShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void | ||
shoppingCartItem | Nop.Core.Domain.Orders.ShoppingCartItem | |
return | void |
public RemoveShippingAddress ( int customerId ) : void | ||
customerId | int | |
return | void |
public ResetCheckoutData ( |
||
customer | Customer | |
storeId | int | Store identifier |
clearCouponCodes | bool | A value indicating whether to clear coupon code |
clearCheckoutAttributes | bool | A value indicating whether to clear selected checkout attributes |
clearRewardPoints | bool | A value indicating whether to clear "Use reward points" flag |
clearShippingMethod | bool | A value indicating whether to clear selected shipping method |
clearPaymentMethod | bool | A value indicating whether to clear selected payment method |
return | void |
public UpdateActive ( |
||
customer | ||
return | void |
public UpdateAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | |
return | void |
public UpdateAffiliate ( |
||
customer | Customer | |
return | void |
public UpdateBillingAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | |
return | void |
public UpdateCustomer ( |
||
customer | Customer | |
return | void |
public UpdateCustomerLastActivityDate ( |
||
customer | Customer | |
return | void |
public UpdateCustomerLastIpAddress ( |
||
customer | Customer | |
return | void |
public UpdateCustomerLastLoginDate ( |
||
customer | Customer | |
return | void |
public UpdateCustomerPassword ( |
||
customer | Customer | |
return | void |
public UpdateCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void | ||
customerRole | Nop.Core.Domain.Customers.CustomerRole | Customer role |
return | void |
public UpdateCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void | ||
customerRoleProduct | Nop.Core.Domain.Customers.CustomerRoleProduct | Customer role product |
return | void |
public UpdateCustomerVendor ( |
||
customer | Customer | |
return | void |
public UpdateCustomerinAdminPanel ( |
||
customer | ||
return | void |
public UpdateHasBlogComments ( int customerId ) : void | ||
customerId | int | |
return | void |
public UpdateHasForumPost ( int customerId ) : void | ||
customerId | int | |
return | void |
public UpdateHasForumTopic ( int customerId ) : void | ||
customerId | int | |
return | void |
public UpdateHasOrders ( int customerId ) : void | ||
customerId | int | |
return | void |
public UpdateHasPoolVoting ( int customerId ) : void | ||
customerId | int | |
return | void |
public UpdateHasProductReview ( int customerId ) : void | ||
customerId | int | |
return | void |
public UpdateHasProductReviewH ( int customerId ) : void | ||
customerId | int | |
return | void |
public UpdateHasShoppingCartItems ( |
||
customer | ||
return | void |
public UpdateNewsItem ( |
||
customer | ||
return | void |
public UpdateShippingAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | |
return | void |
public UpdateShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void | ||
shoppingCartItem | Nop.Core.Domain.Orders.ShoppingCartItem | |
return | void |