All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kushkipagos.android.Transfer.kt Maven / Gradle / Ivy

There is a newer version: 1.8.1
Show newest version
package com.kushkipagos.android

import org.json.JSONObject

class Transfer(private val amount: Amount, private val callbackUrl: String,private val userType: String,
               private val documentType: String, private val documentNumber: String,
               private val email: String, private val currency: String,private val paymentDescription:String = "") {

    fun toJsonObject(): JSONObject {
        return JSONObject()
                .put("amount", amount.toJsonObject())
                .put("callbackUrl", callbackUrl)
                .put("userType", userType)
                .put("documentType",documentType)
                .put("documentNumber", documentNumber)
                .put("email", email)
                .put("currency",currency)
                .put("paymentDescription",paymentDescription)
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy