Skip to content

    Account closure

    Accounting closure

    Account closure – MobilePOS Only! The account closure can be run by calling the closeAccount method. Only callable with an active MobilePOS TID

    closeAccount

    suspend fun closeAccount( <br>
    closeAccountData: CloseAccountData,     operationListener: OperationListener )

    The closeAccount method takes an instance of CloseAccountData as an argument and an operationListener, which will propagate the operation outcome to the caller application.

    CloseAccountData

    data class CloseAccountData(     
    val callerName: String?,     val callerTrxId: String? 
    )

    OperationListener

    interface OperationListener { <br>
        fun onSuccess(response: A2ASDKResponse? = null) 
    
        fun onFailure(error: A2ASDKResponse? = null) }

    CloseAccountData

    The CloseAccountData is a class used for holding information related to an account closure operation. Each property in the class corresponds to a different aspect of the account closure. CloseAccountData class properties are detailed below:

    Name parameter Description Type Mandatory
    callerName Represents the name of the caller initiating the account closure String yes
    callerTrxId Represents the transaction ID associated with the caller String yes

    Was this helpful?

    What was your feeling about it?