C# Класс Nop.Core.Domain.Customers.CustomerExtentions

Показать файл Открыть проект

Открытые методы

Метод Описание
AddRewardPointsHistoryEntry ( this customer, int points, string message = "", Nop.Core.Domain.Orders.Order usedWithOrder = null, decimal usedAmount = 0M ) : void
ApplyGiftCardCouponCode ( this customer, string couponCode ) : void

Adds a coupon code

GetRewardPointsBalance ( this customer ) : int

Gets reward points balance

IsAdmin ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is administrator

IsForumModerator ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is a forum moderator

IsGuest ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is guest

IsInCustomerRole ( this customer, string customerRoleSystemName, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is in a certain customer role

IsRegistered ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is registered

IsSearchEngineAccount ( this customer ) : bool

Gets a value indicating whether customer a search engine

ParseAppliedGiftCardCouponCodes ( this customer ) : string[]

Gets coupon codes

RemoveAddress ( this customer, Nop.Core.Domain.Common.Address address ) : void
RemoveGiftCardCouponCode ( this customer, string couponCode ) : void

Removes a coupon code

Описание методов

AddRewardPointsHistoryEntry() публичный статический Метод

public static AddRewardPointsHistoryEntry ( this customer, int points, string message = "", Nop.Core.Domain.Orders.Order usedWithOrder = null, decimal usedAmount = 0M ) : void
customer this
points int
message string
usedWithOrder Nop.Core.Domain.Orders.Order
usedAmount decimal
Результат void

ApplyGiftCardCouponCode() публичный статический Метод

Adds a coupon code
public static ApplyGiftCardCouponCode ( this customer, string couponCode ) : void
customer this Customer
couponCode string Coupon code
Результат void

GetRewardPointsBalance() публичный статический Метод

Gets reward points balance
public static GetRewardPointsBalance ( this customer ) : int
customer this
Результат int

IsAdmin() публичный статический Метод

Gets a value indicating whether customer is administrator
public static IsAdmin ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsForumModerator() публичный статический Метод

Gets a value indicating whether customer is a forum moderator
public static IsForumModerator ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsGuest() публичный статический Метод

Gets a value indicating whether customer is guest
public static IsGuest ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsInCustomerRole() публичный статический Метод

Gets a value indicating whether customer is in a certain customer role
public static IsInCustomerRole ( this customer, string customerRoleSystemName, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
customerRoleSystemName string Customer role system name
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsRegistered() публичный статический Метод

Gets a value indicating whether customer is registered
public static IsRegistered ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
Результат bool

IsSearchEngineAccount() публичный статический Метод

Gets a value indicating whether customer a search engine
public static IsSearchEngineAccount ( this customer ) : bool
customer this Customer
Результат bool

ParseAppliedGiftCardCouponCodes() публичный статический Метод

Gets coupon codes
public static ParseAppliedGiftCardCouponCodes ( this customer ) : string[]
customer this Customer
Результат string[]

RemoveAddress() публичный статический Метод

public static RemoveAddress ( this customer, Nop.Core.Domain.Common.Address address ) : void
customer this
address Nop.Core.Domain.Common.Address
Результат void

RemoveGiftCardCouponCode() публичный статический Метод

Removes a coupon code
public static RemoveGiftCardCouponCode ( this customer, string couponCode ) : void
customer this Customer
couponCode string Coupon code to remove
Результат void