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

io.github.eendroroy.sdk.bkash.request.PaymentSaleRequest.kt Maven / Gradle / Ivy

The newest version!
package io.github.eendroroy.sdk.bkash.request

import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonRootName
import io.github.eendroroy.sdk.bkash.definition.Currency
import io.github.eendroroy.sdk.bkash.definition.Intent

/**
 * @author indrajit
 */
@JsonRootName("request")
data class PaymentSaleRequest(
    @field:JsonProperty("amount") var amount: String? = null,
    @field:JsonProperty("currency") var currency: String? = Currency.BDT.value(),
    @field:JsonProperty("intent") var intent: String? = Intent.SALE.value(),
    @field:JsonProperty("merchantInvoiceNumber") var merchantInvoiceNumber: String? = null
) {
    fun amount(amount: String) = apply { this.amount = amount }
    fun currency(currency: String) = apply { this.currency = currency }
    fun intent(intent: String) = apply { this.intent = intent }
    fun merchantInvoiceNumber(merchantInvoiceNumber: String) = apply {
        this.merchantInvoiceNumber = merchantInvoiceNumber
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy