TicketUserServices

<back to all web services

StigBalanceRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
GET/stig/balance
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class StigBalanceRequest
    {
        public String fullPhoneNumber = null;
        
        public String getFullPhoneNumber() { return fullPhoneNumber; }
        public StigBalanceRequest setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
    }

    public static class StigBalanceResult
    {
        public String fullPhoneNumber = null;
        public Boolean known = null;
        public Boolean excluded = null;
        public Integer balance = null;
        public Integer heldStig = null;
        public Integer available = null;
        public Integer lifetimeEarned = null;
        public Date updatedUtc = null;
        public Integer statusCode = null;
        public String message = null;
        
        public String getFullPhoneNumber() { return fullPhoneNumber; }
        public StigBalanceResult setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
        public Boolean isKnown() { return known; }
        public StigBalanceResult setKnown(Boolean value) { this.known = value; return this; }
        public Boolean isExcluded() { return excluded; }
        public StigBalanceResult setExcluded(Boolean value) { this.excluded = value; return this; }
        public Integer getBalance() { return balance; }
        public StigBalanceResult setBalance(Integer value) { this.balance = value; return this; }
        public Integer getHeldStig() { return heldStig; }
        public StigBalanceResult setHeldStig(Integer value) { this.heldStig = value; return this; }
        public Integer getAvailable() { return available; }
        public StigBalanceResult setAvailable(Integer value) { this.available = value; return this; }
        public Integer getLifetimeEarned() { return lifetimeEarned; }
        public StigBalanceResult setLifetimeEarned(Integer value) { this.lifetimeEarned = value; return this; }
        public Date getUpdatedUtc() { return updatedUtc; }
        public StigBalanceResult setUpdatedUtc(Date value) { this.updatedUtc = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public StigBalanceResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public StigBalanceResult setMessage(String value) { this.message = value; return this; }
    }

}

Java StigBalanceRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /stig/balance 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,
	excluded: False,
	balance: 0,
	heldStig: 0,
	available: 0,
	lifetimeEarned: 0,
	updatedUtc: 0001-01-01,
	statusCode: 0,
	message: String
}