Ejemplo n.º 1
0
        /// <summary>
        /// Create a new <Prompt/> element and append it as a child of this element.
        /// </summary>
        /// <param name="for_"> Name of the credit card data element </param>
        /// <param name="errorType"> Type of error </param>
        /// <param name="cardType"> Type of the credit card </param>
        /// <param name="attempt"> Current attempt count </param>
        public Pay Prompt(Prompt.ForEnum for_ = null,
                          List <Prompt.ErrorTypeEnum> errorType = null,
                          List <Prompt.CardTypeEnum> cardType   = null,
                          List <int> attempt = null)
        {
            var newChild = new Prompt(for_, errorType, cardType, attempt);

            this.Append(newChild);
            return(this);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Prompt
 /// </summary>
 /// <param name="for_"> Name of the payment source data element </param>
 /// <param name="errorType"> Type of error </param>
 /// <param name="cardType"> Type of the credit card </param>
 /// <param name="attempt"> Current attempt count </param>
 public Prompt(Prompt.ForEnum for_ = null,
               List <Prompt.ErrorTypeEnum> errorType = null,
               List <Prompt.CardTypeEnum> cardType   = null,
               List <int> attempt = null) : base("Prompt")
 {
     this.For_      = for_;
     this.ErrorType = errorType;
     this.CardType  = cardType;
     this.Attempt   = attempt;
 }