| POST | /api/Financial/ExchangeRateBase |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ExchangeRateBaseParams extends ExchangeRateBaseParams
{
}
public static class ExchangeRateBase
{
public ExchangeRate ExchangeRate = null;
public BigDecimal BaseAmount = null;
public ExchangeRate getExchangeRate() { return ExchangeRate; }
public ExchangeRateBase setExchangeRate(ExchangeRate value) { this.ExchangeRate = value; return this; }
public BigDecimal getBaseAmount() { return BaseAmount; }
public ExchangeRateBase setBaseAmount(BigDecimal value) { this.BaseAmount = value; return this; }
}
public static class ExchangeRate implements ILazyLoadMemoryCacheValue
{
public String BaseCurrency = null;
public String ForeignCurrency = null;
public BigDecimal Rate = null;
public Date TimeStamp = null;
public Boolean FromCache = null;
public String getBaseCurrency() { return BaseCurrency; }
public ExchangeRate setBaseCurrency(String value) { this.BaseCurrency = value; return this; }
public String getForeignCurrency() { return ForeignCurrency; }
public ExchangeRate setForeignCurrency(String value) { this.ForeignCurrency = value; return this; }
public BigDecimal getRate() { return Rate; }
public ExchangeRate setRate(BigDecimal value) { this.Rate = value; return this; }
public Date getTimeStamp() { return TimeStamp; }
public ExchangeRate setTimeStamp(Date value) { this.TimeStamp = value; return this; }
public Boolean isFromCache() { return FromCache; }
public ExchangeRate setFromCache(Boolean value) { this.FromCache = value; return this; }
}
}
Java ExchangeRateBaseParams DTOs
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.
POST /api/Financial/ExchangeRateBase HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProcessingCurrency: String,
AmountDue: 0,
BaseCurrency: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ExchangeRate:
{
BaseCurrency: String,
ForeignCurrency: String,
Rate: 0,
TimeStamp: 0001-01-01,
FromCache: False
},
BaseAmount: 0
}