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

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

package com.kushkipagos.android

import org.json.JSONObject

class TransferSubscriptions(private val documentNumber: String, private val bankCode: String, private val name: String,
                            private val lastName: String, private val accountNumber: String,
                            private val documentType:String,
                            private val accountType:String , private val totalAmount: Number,
                            private val email:String, private val currency:String
                            ) {

    fun toJsonObject(): JSONObject {
        return JSONObject()
                .put("documentNumber", documentNumber)
                .put("bankCode", bankCode)
                .put("name", name)
                .put("lastName", lastName)
                .put("accountNumber",accountNumber)
                .put("documentType",documentType)
                .put("accountType",accountType)
                .put("totalAmount",totalAmount)
                .put("email",email)
                .put("currency",currency)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy