| PUT,OPTIONS | /v1/OrderHeaders/UpdateOrderStatus |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class OrderStatusUpdateRequest
{
public Integer OrderId = null;
public Integer StatusId = null;
public Integer getOrderId() { return OrderId; }
public OrderStatusUpdateRequest setOrderId(Integer value) { this.OrderId = value; return this; }
public Integer getStatusId() { return StatusId; }
public OrderStatusUpdateRequest setStatusId(Integer value) { this.StatusId = value; return this; }
}
public static class OrderStatusUpdateResponse
{
public Boolean Success = null;
public ResponseStatus ResponseStatus = null;
public Boolean isSuccess() { return Success; }
public OrderStatusUpdateResponse setSuccess(Boolean value) { this.Success = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public OrderStatusUpdateResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java OrderStatusUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/OrderHeaders/UpdateOrderStatus HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"OrderId":0,"StatusId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Success":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}