| Requires the role: | Admin | Requires the permission: | ReadData |
| GET | /stig/history |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class StigHistoryRequest
{
public String fullPhoneNumber = null;
public Integer skip = null;
public Integer take = null;
public Boolean includeHolds = null;
public String getFullPhoneNumber() { return fullPhoneNumber; }
public StigHistoryRequest setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
public Integer getSkip() { return skip; }
public StigHistoryRequest setSkip(Integer value) { this.skip = value; return this; }
public Integer getTake() { return take; }
public StigHistoryRequest setTake(Integer value) { this.take = value; return this; }
public Boolean isIncludeHolds() { return includeHolds; }
public StigHistoryRequest setIncludeHolds(Boolean value) { this.includeHolds = value; return this; }
}
public static class StigHistoryResult
{
public String fullPhoneNumber = null;
public Boolean known = null;
public ArrayList<StigHistoryEntry> items = null;
public Integer totalCount = null;
public Integer skip = null;
public Integer take = null;
public Integer statusCode = null;
public String message = null;
public String getFullPhoneNumber() { return fullPhoneNumber; }
public StigHistoryResult setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
public Boolean isKnown() { return known; }
public StigHistoryResult setKnown(Boolean value) { this.known = value; return this; }
public ArrayList<StigHistoryEntry> getItems() { return items; }
public StigHistoryResult setItems(ArrayList<StigHistoryEntry> value) { this.items = value; return this; }
public Integer getTotalCount() { return totalCount; }
public StigHistoryResult setTotalCount(Integer value) { this.totalCount = value; return this; }
public Integer getSkip() { return skip; }
public StigHistoryResult setSkip(Integer value) { this.skip = value; return this; }
public Integer getTake() { return take; }
public StigHistoryResult setTake(Integer value) { this.take = value; return this; }
public Integer getStatusCode() { return statusCode; }
public StigHistoryResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public StigHistoryResult setMessage(String value) { this.message = value; return this; }
}
public static class StigHistoryEntry
{
public Integer id = null;
public String kind = null;
public LocalizedMessage label = null;
public Integer amount = null;
public Boolean affectsBalance = null;
public Integer eventId = null;
public String eventName = null;
public Date eventTimeUtc = null;
public Integer ownerId = null;
public String ownerName = null;
public Integer ticketId = null;
public String orderReference = null;
public Integer sourceAmountMinor = null;
public Integer multiplierBasisPoints = null;
public String campaignCode = null;
public String status = null;
public Date createdUtc = null;
public String note = null;
public Integer getId() { return id; }
public StigHistoryEntry setId(Integer value) { this.id = value; return this; }
public String getKind() { return kind; }
public StigHistoryEntry setKind(String value) { this.kind = value; return this; }
public LocalizedMessage getLabel() { return label; }
public StigHistoryEntry setLabel(LocalizedMessage value) { this.label = value; return this; }
public Integer getAmount() { return amount; }
public StigHistoryEntry setAmount(Integer value) { this.amount = value; return this; }
public Boolean isAffectsBalance() { return affectsBalance; }
public StigHistoryEntry setAffectsBalance(Boolean value) { this.affectsBalance = value; return this; }
public Integer getEventId() { return eventId; }
public StigHistoryEntry setEventId(Integer value) { this.eventId = value; return this; }
public String getEventName() { return eventName; }
public StigHistoryEntry setEventName(String value) { this.eventName = value; return this; }
public Date getEventTimeUtc() { return eventTimeUtc; }
public StigHistoryEntry setEventTimeUtc(Date value) { this.eventTimeUtc = value; return this; }
public Integer getOwnerId() { return ownerId; }
public StigHistoryEntry setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getOwnerName() { return ownerName; }
public StigHistoryEntry setOwnerName(String value) { this.ownerName = value; return this; }
public Integer getTicketId() { return ticketId; }
public StigHistoryEntry setTicketId(Integer value) { this.ticketId = value; return this; }
public String getOrderReference() { return orderReference; }
public StigHistoryEntry setOrderReference(String value) { this.orderReference = value; return this; }
public Integer getSourceAmountMinor() { return sourceAmountMinor; }
public StigHistoryEntry setSourceAmountMinor(Integer value) { this.sourceAmountMinor = value; return this; }
public Integer getMultiplierBasisPoints() { return multiplierBasisPoints; }
public StigHistoryEntry setMultiplierBasisPoints(Integer value) { this.multiplierBasisPoints = value; return this; }
public String getCampaignCode() { return campaignCode; }
public StigHistoryEntry setCampaignCode(String value) { this.campaignCode = value; return this; }
public String getStatus() { return status; }
public StigHistoryEntry setStatus(String value) { this.status = value; return this; }
public Date getCreatedUtc() { return createdUtc; }
public StigHistoryEntry setCreatedUtc(Date value) { this.createdUtc = value; return this; }
public String getNote() { return note; }
public StigHistoryEntry setNote(String value) { this.note = value; return this; }
}
public static class LocalizedMessage
{
public String is = null;
public String en = null;
public String getIs() { return is; }
public LocalizedMessage setIs(String value) { this.is = value; return this; }
public String getEn() { return en; }
public LocalizedMessage setEn(String value) { this.en = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /stig/history HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<StigHistoryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<FullPhoneNumber>String</FullPhoneNumber>
<Items>
<StigHistoryEntry>
<AffectsBalance>false</AffectsBalance>
<Amount>0</Amount>
<CampaignCode>String</CampaignCode>
<CreatedUtc>0001-01-01T00:00:00</CreatedUtc>
<EventId>0</EventId>
<EventName>String</EventName>
<EventTimeUtc>0001-01-01T00:00:00</EventTimeUtc>
<Id>0</Id>
<Kind>String</Kind>
<Label>
<En>String</En>
<Is>String</Is>
</Label>
<MultiplierBasisPoints>0</MultiplierBasisPoints>
<Note>String</Note>
<OrderReference>String</OrderReference>
<OwnerId>0</OwnerId>
<OwnerName>String</OwnerName>
<SourceAmountMinor>0</SourceAmountMinor>
<Status>String</Status>
<TicketId>0</TicketId>
</StigHistoryEntry>
</Items>
<Known>false</Known>
<Message>String</Message>
<Skip>0</Skip>
<StatusCode>0</StatusCode>
<Take>0</Take>
<TotalCount>0</TotalCount>
</StigHistoryResult>