import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DataStoreRequest
{
public RequestorCredentials Credentials = null;
public DataStoreFor Scope = null;
public RequestorCredentials getCredentials() { return Credentials; }
public DataStoreRequest setCredentials(RequestorCredentials value) { this.Credentials = value; return this; }
public DataStoreFor getScope() { return Scope; }
public DataStoreRequest setScope(DataStoreFor value) { this.Scope = value; return this; }
}
public static class RequestorCredentials
{
@Required()
public String MerchantId = null;
@Required()
public String UserName = null;
@Required()
public String Password = null;
@Required()
public String Version = null;
public String getMerchantId() { return MerchantId; }
public RequestorCredentials setMerchantId(String value) { this.MerchantId = value; return this; }
public String getUserName() { return UserName; }
public RequestorCredentials setUserName(String value) { this.UserName = value; return this; }
public String getPassword() { return Password; }
public RequestorCredentials setPassword(String value) { this.Password = value; return this; }
public String getVersion() { return Version; }
public RequestorCredentials setVersion(String value) { this.Version = value; return this; }
}
public static class DataStoreFor
{
public DataStoreScope StoreScope = null;
public String Value = null;
public DataStoreScope getStoreScope() { return StoreScope; }
public DataStoreFor setStoreScope(DataStoreScope value) { this.StoreScope = value; return this; }
public String getValue() { return Value; }
public DataStoreFor setValue(String value) { this.Value = value; return this; }
}
public static enum DataStoreScope
{
AllMerchants,
SingleMerchant;
}
public static class DataStore
{
public String ErrorCode = null;
public String ErrorMessage = null;
public String getErrorCode() { return ErrorCode; }
public DataStore setErrorCode(String value) { this.ErrorCode = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public DataStore setErrorMessage(String value) { this.ErrorMessage = 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.
POST /jsv/reply/DataStoreRequest HTTP/1.1
Host: api.paysecure.acculynk.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Credentials:
{
MerchantId: String,
UserName: String,
Password: String,
Version: String
},
Scope:
{
StoreScope: AllMerchants,
Value: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { ErrorCode: String, ErrorMessage: String }