import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class InitialisePaymentRequest
{
open var PaymentType:PaymentTypeEnum? = null
open var Uuid:UUID? = null
open var ReferenceNumber:String? = null
open var Amount:BigDecimal? = null
open var Currency:String? = null
open var ItemName:String? = null
open var ItemDescription:String? = null
open var BillingDate:Date? = null
open var Frequency:FrequencyEnum? = null
open var Cycles:Int? = null
}
enum class PaymentTypeEnum(val value:Int)
{
OneTime(1),
Recurring(2),
}
enum class FrequencyEnum(val value:Int)
{
Daily(1),
Weekly(2),
Monthly(3),
Quarterly(4),
Biannually(5),
Annually(6),
}
open class InitialisePaymentResponse : ResponseBase()
{
open var TransactionId:String? = null
open var Signature:String? = null
open var Url:String? = null
}
open class ResponseBase
{
open var Status:Boolean? = null
open var Message:String? = null
open var Errors:HashMap<String,ArrayList<String>>? = null
}
Kotlin InitialisePaymentRequest 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 /jsv/reply/InitialisePaymentRequest HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PaymentType: OneTime,
Uuid: 00000000000000000000000000000000,
ReferenceNumber: String,
Amount: 0,
Currency: String,
ItemName: String,
ItemDescription: String,
BillingDate: 0001-01-01,
Frequency: Daily,
Cycles: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
TransactionId: String,
Signature: String,
Url: String,
Status: False,
Message: String,
Errors:
{
String:
[
String
]
}
}