/// <summary>
 /// Sets the ResponseHeaderMetadata property.
 /// </summary>
 /// <param name="responseHeaderMetadata">ResponseHeaderMetadata property.</param>
 /// <returns>this instance.</returns>
 public ListOrderItemsByNextTokenResponse WithResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
 {
     this._responseHeaderMetadata = responseHeaderMetadata;
     return this;
 }
 public MarketplaceWebServiceOrdersException(string message, HttpStatusCode statusCode, ResponseHeaderMetadata rhmd)
     : base((int)statusCode, message, null, null, null, rhmd)
 {
 }
 public MarketplaceWebServiceOrdersException(string message, HttpStatusCode statusCode, string errorCode,
     string errorType, string requestId, string xml, ResponseHeaderMetadata rhmd)
     : base((int)statusCode, message, errorCode, errorType, xml, rhmd)
 {
 }
 /// <summary>
 /// Constructs MarketplaceWebServiceOrdersException with message and wrapped exception
 /// </summary>
 /// <param name="message">Overview of error</param>
 /// <param name="t">Wrapped exception</param>
 public MarketplaceWebServiceOrdersException(String message, Exception t)
     : base(message, t)
 {
     this.message = message;
     if (t is MarketplaceWebServiceOrdersException)
     {
         MarketplaceWebServiceOrdersException ex = (MarketplaceWebServiceOrdersException)t;
         this.statusCode = ex.StatusCode;
         this.errorCode = ex.ErrorCode;
         this.errorType = ex.ErrorType;
         this.requestId = ex.RequestId;
         this.xml = ex.XML;
         this.responseHeaderMetadata = ex.ResponseHeaderMetadata;
     }
 }
 /// <summary>
 /// Sets the ResponseHeaderMetadata property.
 /// </summary>
 /// <param name="responseHeaderMetadata">ResponseHeaderMetadata property.</param>
 /// <returns>this instance.</returns>
 public ListOrdersResponse WithResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
 {
     this._responseHeaderMetadata = responseHeaderMetadata;
     return this;
 }
 /// <summary>
 /// Constructs MarketplaceWebServiceOrdersException with information available from service
 /// </summary>
 /// <param name="message">Overview of error</param>
 /// <param name="statusCode">HTTP status code for error response</param>
 /// <param name="errorCode">Error Code returned by the service</param>
 /// <param name="errorType">Error type. Possible types:  Sender, Receiver or Unknown</param>
 /// <param name="requestId">Request ID returned by the service</param>
 /// <param name="xml">Compete xml found in response</param>
 public MarketplaceWebServiceOrdersException(String message, HttpStatusCode statusCode, String errorCode, String errorType, String requestId, String xml, ResponseHeaderMetadata rhm)
     : this(message, statusCode, rhm)
 {
     this.errorCode = errorCode;
     this.errorType = errorType;
     this.requestId = requestId;
     this.xml = xml;
 }
 /// <summary>
 /// Constructs MarketplaceWebServiceOrdersException with message and status code
 /// </summary>
 /// <param name="message">Overview of error</param>
 /// <param name="statusCode">HTTP status code for error response</param>
 public MarketplaceWebServiceOrdersException(String message, HttpStatusCode statusCode, ResponseHeaderMetadata rhm)
     : this(message)
 {
     this.statusCode = statusCode;
     this.responseHeaderMetadata = rhm;
 }
Exemple #8
0
 /// <summary>
 /// Sets the ResponseHeaderMetadata property.
 /// </summary>
 /// <param name="responseHeaderMetadata">ResponseHeaderMetadata property.</param>
 /// <returns>this instance.</returns>
 public ListOrdersByNextTokenResponse WithResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
 {
     this._responseHeaderMetadata = responseHeaderMetadata;
     return(this);
 }
 /// <summary>
 /// Sets the ResponseHeaderMetadata property.
 /// </summary>
 /// <param name="responseHeaderMetadata">ResponseHeaderMetadata property.</param>
 /// <returns>this instance.</returns>
 public ListOrderItemsResponse WithResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
 {
     this._responseHeaderMetadata = responseHeaderMetadata;
     return(this);
 }
Exemple #10
0
 /// <summary>
 /// Sets the ResponseHeaderMetadata property.
 /// </summary>
 /// <param name="responseHeaderMetadata">ResponseHeaderMetadata property.</param>
 /// <returns>this instance.</returns>
 public GetOrderResponse WithResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
 {
     this._responseHeaderMetadata = responseHeaderMetadata;
     return(this);
 }
 /// <summary>
 /// Sets the ResponseHeaderMetadata property.
 /// </summary>
 /// <param name="responseHeaderMetadata">ResponseHeaderMetadata property.</param>
 /// <returns>this instance.</returns>
 public GetServiceStatusResponse WithResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
 {
     this._responseHeaderMetadata = responseHeaderMetadata;
     return this;
 }
 /// <summary>
 /// Sets the ResponseHeaderMetadata property.
 /// </summary>
 /// <param name="responseHeaderMetadata">ResponseHeaderMetadata property.</param>
 /// <returns>this instance.</returns>
 public GetServiceStatusResponse WithResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
 {
     this._responseHeaderMetadata = responseHeaderMetadata;
     return(this);
 }