Esempio n. 1
0
        public Contribution(int? id, int? orderId, decimal? amount, int? fundId,
				int? onAccountMethodId, string fundName, string onAccountMethodName,
				ContributionAction? action, bool? decline, short? dbStatus, string notes,
				string custom0, string custom1, string custom2, string custom3, string custom4,
				string custom5, string custom6, string custom7, string custom8, string custom9)
        {
            Id = id;
            OrderId = orderId;
            Amount = amount;
            FundId = fundId;
            OnAccountMethodId = onAccountMethodId;
            FundName = fundName;
            OnAccountMethodName = onAccountMethodName;
            ContributionAction? Action = action;
            Decline = decline;
            DbStatus = dbStatus;
            Notes = notes;
            Custom0 = custom0;
            Custom1 = custom1;
            Custom2 = custom2;
            Custom3 = custom3;
            Custom4 = custom4;
            Custom5 = custom5;
            Custom6 = custom6;
            Custom7 = custom7;
            Custom8 = custom8;
            Custom9 = custom9;
        }
Esempio n. 2
0
        public static void AddContributionToFund(string sessionKey, decimal amount, int fundId,
				ContributionAction action)
        {
            DoAddContribution(sessionKey, amount, fundId, null, action);
        }
Esempio n. 3
0
        private static void DoAddContribution(string sessionKey, decimal amount, int? fundId,
				int? paymentMethodId, ContributionAction? action)
        {
            UnsecureTess.AddContribution(
                    sWebSessionID: Mask(sessionKey),
                    Amount: amount,
                    Fund: fundId ?? 0,
                    AccountMethod: paymentMethodId ?? 0,
                    Upgrade: action.HasValue ? action == ContributionAction.Upgrade : false,
                    Renew: action.HasValue ? action == ContributionAction.Renew : false);
        }
Esempio n. 4
0
        public static void AddContributionOnAccount(string sessionKey, decimal amount,
				int paymentMethodId, ContributionAction action)
        {
            DoAddContribution(sessionKey, amount, null, paymentMethodId, action);
        }