Skip to content

Commit

Permalink
fix device id serial name
Browse files Browse the repository at this point in the history
  • Loading branch information
adonese committed Dec 29, 2022
1 parent c6c9f6d commit 2208a0a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=22.12.9
version=22.12.11
5 changes: 4 additions & 1 deletion lib/src/main/java/com/tuti/api/TutiApiClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,14 @@ class TutiApiClient {
card: Card,
ipin: String,
receiverCard: Card,
deviceId: String = "",
amount: Float,
onResponse: (TutiResponse) -> Unit,
onError: (TutiResponse?, Exception?) -> Unit
) {
val request = fillRequestFields(card, ipin, amount)
request.toCard = receiverCard.PAN
request.deviceId = deviceId
sendRequest(
RequestMethods.POST,
serverURL + Operations.CARD_TRANSFER,
Expand Down Expand Up @@ -540,14 +542,15 @@ class TutiApiClient {
ipin: String,
voucherNumber: String,
amount: Float,
deviceId: String = "",
onResponse: (TutiResponse) -> Unit,
onError: (TutiResponse?, Exception?) -> Unit
) {

val request = fillRequestFields(card, ipin, amount)
request.payeeId = TelecomIDs.E15.payeeID
request.voucherNumber = voucherNumber

request.deviceId = deviceId
sendRequest(
RequestMethods.POST,
serverURL + Operations.GENERATE_VOUCHER,
Expand Down
2 changes: 2 additions & 0 deletions lib/src/main/java/com/tuti/api/ebs/EBSRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class EBSRequest {
var idNo: String? = null
var merchantCategoryCode: String? = null
val postalCode: String? = null
@SerialName("device_id")
var deviceId: String? = ""

var panCategory: String? = null

Expand Down
15 changes: 1 addition & 14 deletions lib/src/main/java/com/tuti/model/data.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ data class SignInRequest(

@kotlinx.serialization.Serializable
data class SignupRequest(

@SerialName("password")
val password: String,
@SerialName("otp")
Expand All @@ -45,22 +44,10 @@ data class GenerateOTP(
val mobile: String,
val password: String? = "",
@SerialName("fullname") val name: String? = "",

@SerialName("user_pubkey") val pubkey: String,
)

/*
Type string `json:"type"`
Date time.Time `json:"date"`
UUID string `gorm:"primaryKey"`
To string `json:"to"`
Title string `json:"title"`
Body string `json:"body"`
EBSData ebs_fields.EBSResponse `json:"data" gorm:"foreignKey:UUID;references:UUID"` // EBS parser fields holds many unnecssary info
PaymentRequest ebs_fields.QrData `json:"payment_request" gorm:"foreignKey:UUID"`
CallToAction string `json:"call_to_action"`
Phone string `json:"phone"`
**/

@kotlinx.serialization.Serializable
data class Notification(
@SerialName("phone") val phone: String?,
Expand Down

0 comments on commit 2208a0a

Please sign in to comment.