AA-24 | Shashidhara | Update input pan api request body

This commit is contained in:
Shashidhara Gopal
2019-11-14 19:48:42 +05:30
parent 546e50e380
commit 26310726fe
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
package com.navi.medici.androidCustomerApp.models.request
data class InputPanRequest(val pan: String)
data class InputPanRequest(val type: String = "PAN", val number: String)

View File

@@ -20,7 +20,7 @@ class InputPanViewModel : ViewModel() {
private val inputPanRepository = InputPanRepository(InputPanApi())
fun submitPan(pan: String, context: Context) {
val inputPanRequest = InputPanRequest(pan)
val inputPanRequest = InputPanRequest(number = pan)
coroutineScope.launch {
val response = inputPanRepository.submitPan(
PreferenceManager.getApplicationId(context).toString(),