Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="APSUser"/> class.
 /// </summary>
 /// <param name="StatementId">Statement identifier.</param>
 /// <param name="StatementCommonFields">Common field for all statements.</param>
 /// <param name="StatementType">Identifies the what type for statements this is</param>
 /// <param name="SpecificFields">Specific Fields allocated to statement based on  statement type</param>
 /// <exception cref="System.ArgumentNullException"></exception>
 public Statement(StatementId statementId, StatementCommonFields statementCommonFields, StatementType statementType, StatementSpecificFields statementSpecificFields, APSUser apsuser, BillingAccount billingAccount)
 {
     if (statementId != null && statementCommonFields != null && statementType != null && statementSpecificFields != null && apsuser != null && billingAccount != null)
     {
         this._statementId             = statementId;
         this._statementCommonFields   = statementCommonFields;
         this._statementType           = statementType;
         this._statementSpecificFields = statementSpecificFields;
         this._apsuser        = apsuser;
         this._billingAccount = billingAccount;
     }
     else
     {
         throw new ArgumentNullException();
     }
 }
Example #2
0
        public StatementSpecificFields createSpecificFields(string statementtypename, string[] listspecificfields)
        {
            StatementSpecificFields _specificfields = null;

            if (statementtypename.Equals("Municipality"))
            {
                _specificfields = new StatementMunicipalitySpecificFields(listspecificfields);
            }
            else if (statementtypename.Equals("CreditCardProvider"))
            {
                _specificfields = new StatementCreditCardSpecificFields(listspecificfields);
            }
            else if (statementtypename.Equals("TelcoProvider"))
            {
                _specificfields = new StatementTelcoSpecificFields(listspecificfields);
            }

            return(_specificfields);
        }