Ejemplo n.º 1
0
        protected bool EligibilityRequirements(Customer customer, string siteType)
        {
            var request = new GetPointAccountRequest()
            {
                CustomerID     = customer.CustomerID,
                PointAccountID = PointAccounts.RecruitingRewards
            };
            var rewardAmount = Exigo.GetRecruitingReward(request);

            return(rewardAmount > 0M);
        }
Ejemplo n.º 2
0
        public static decimal GetEnrolleeReward(GetPointAccountRequest request)
        {
            var enrolleeReward = GetCustomerPointAccount(request.CustomerID, request.PointAccountID);

            return(null != enrolleeReward ? enrolleeReward.Balance : 0M);
        }
Ejemplo n.º 3
0
        public static decimal GetRecruitingReward(GetPointAccountRequest request)
        {
            var recruitingReward = GetCustomerPointAccount(request.CustomerID, request.PointAccountID);

            return(null != recruitingReward ? recruitingReward.Balance : 0M);
        }
Ejemplo n.º 4
0
 /// <remarks/>
 public void GetPointAccountAsync(GetPointAccountRequest GetPointAccountRequest, object userState) {
     if ((this.GetPointAccountOperationCompleted == null)) {
         this.GetPointAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPointAccountOperationCompleted);
     }
     this.InvokeAsync("GetPointAccount", new object[] {
                 GetPointAccountRequest}, this.GetPointAccountOperationCompleted, userState);
 }
Ejemplo n.º 5
0
 /// <remarks/>
 public void GetPointAccountAsync(GetPointAccountRequest GetPointAccountRequest) {
     this.GetPointAccountAsync(GetPointAccountRequest, null);
 }