import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class InitialisePaymentRequest
{
public PaymentTypeEnum PaymentType = null;
public UUID Uuid = null;
public String ReferenceNumber = null;
public BigDecimal Amount = null;
public String Currency = null;
public String ItemName = null;
public String ItemDescription = null;
public Date BillingDate = null;
public FrequencyEnum Frequency = null;
public Integer Cycles = null;
public PaymentTypeEnum getPaymentType() { return PaymentType; }
public InitialisePaymentRequest setPaymentType(PaymentTypeEnum value) { this.PaymentType = value; return this; }
public UUID getUuid() { return Uuid; }
public InitialisePaymentRequest setUuid(UUID value) { this.Uuid = value; return this; }
public String getReferenceNumber() { return ReferenceNumber; }
public InitialisePaymentRequest setReferenceNumber(String value) { this.ReferenceNumber = value; return this; }
public BigDecimal getAmount() { return Amount; }
public InitialisePaymentRequest setAmount(BigDecimal value) { this.Amount = value; return this; }
public String getCurrency() { return Currency; }
public InitialisePaymentRequest setCurrency(String value) { this.Currency = value; return this; }
public String getItemName() { return ItemName; }
public InitialisePaymentRequest setItemName(String value) { this.ItemName = value; return this; }
public String getItemDescription() { return ItemDescription; }
public InitialisePaymentRequest setItemDescription(String value) { this.ItemDescription = value; return this; }
public Date getBillingDate() { return BillingDate; }
public InitialisePaymentRequest setBillingDate(Date value) { this.BillingDate = value; return this; }
public FrequencyEnum getFrequency() { return Frequency; }
public InitialisePaymentRequest setFrequency(FrequencyEnum value) { this.Frequency = value; return this; }
public Integer getCycles() { return Cycles; }
public InitialisePaymentRequest setCycles(Integer value) { this.Cycles = value; return this; }
}
public static enum PaymentTypeEnum
{
OneTime(1),
Recurring(2);
private final int value;
PaymentTypeEnum(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static enum FrequencyEnum
{
Daily(1),
Weekly(2),
Monthly(3),
Quarterly(4),
Biannually(5),
Annually(6);
private final int value;
FrequencyEnum(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class InitialisePaymentResponse extends ResponseBase
{
public String TransactionId = null;
public String Signature = null;
public String Url = null;
public String getTransactionId() { return TransactionId; }
public InitialisePaymentResponse setTransactionId(String value) { this.TransactionId = value; return this; }
public String getSignature() { return Signature; }
public InitialisePaymentResponse setSignature(String value) { this.Signature = value; return this; }
public String getUrl() { return Url; }
public InitialisePaymentResponse setUrl(String value) { this.Url = value; return this; }
}
public static class ResponseBase
{
public Boolean Status = null;
public String Message = null;
public HashMap<String,ArrayList<String>> Errors = null;
public Boolean isStatus() { return Status; }
public ResponseBase setStatus(Boolean value) { this.Status = value; return this; }
public String getMessage() { return Message; }
public ResponseBase setMessage(String value) { this.Message = value; return this; }
public HashMap<String,ArrayList<String>> getErrors() { return Errors; }
public ResponseBase setErrors(HashMap<String,ArrayList<String>> value) { this.Errors = value; return this; }
}
}
Java InitialisePaymentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/InitialisePaymentRequest HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"PaymentType":"OneTime","Uuid":"00000000000000000000000000000000","ReferenceNumber":"String","Amount":0,"Currency":"String","ItemName":"String","ItemDescription":"String","BillingDate":"0001-01-01T00:00:00.0000000","Frequency":"Daily","Cycles":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"TransactionId":"String","Signature":"String","Url":"String","Status":false,"Message":"String","Errors":{"String":["String"]}}