C# 클래스 Nop.Core.Domain.Customers.CustomerExtentions

파일 보기 프로젝트 열기: emilianionascu/NopCommerce

공개 메소드들

메소드 설명
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