AA-24 | Shashidhara | Update input pan api request body
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user