/// <summary>
        /// Set request property data.
        /// </summary>
        /// <param name="data">Request data</param>
        /// <returns>object.</returns>
        public RedirectInformation SetRequest(object data)
        {
            if (data != null && data.GetType() == typeof(JObject))
            {
                data = new RedirectRequest((JObject)data);
            }

            request = (RedirectRequest)data;

            return(this);
        }
 /// <summary>
 /// Initializes a new instance of the RedirectInformation class.
 /// </summary>
 /// <param name="requestId">Int request id</param>
 /// <param name="request">RedirectRequest object</param>
 /// <param name="payment">List of Transaction objects</param>
 /// <param name="subscription">SubscriptionInformation object</param>
 /// <param name="status">Status object</param>
 public RedirectInformation(
     int requestId,
     RedirectRequest request,
     List <Transaction> payment,
     SubscriptionInformation subscription,
     Status status
     )
 {
     this.requestId    = requestId;
     this.request      = request;
     this.payment      = payment;
     this.subscription = subscription;
     this.status       = status;
 }