| 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 .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
fullPhoneNumber: String,
known: False,
items:
[
{
id: 0,
kind: String,
label:
{
is: String,
en: String
},
amount: 0,
affectsBalance: False,
eventId: 0,
eventName: String,
eventTimeUtc: 0001-01-01,
ownerId: 0,
ownerName: String,
ticketId: 0,
orderReference: String,
sourceAmountMinor: 0,
multiplierBasisPoints: 0,
campaignCode: String,
status: String,
createdUtc: 0001-01-01,
note: String
}
],
totalCount: 0,
skip: 0,
take: 0,
statusCode: 0,
message: String
}