digitaluapi

<back to all web services

InitialisePaymentRequest

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 .other suffix or ?format=other

HTTP + 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"]}}