Skip to content

Commit

Permalink
update urls
Browse files Browse the repository at this point in the history
  • Loading branch information
MariamEskander committed Oct 2, 2023
1 parent 35b5817 commit 935d249
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ConvertedInSdk {


companion object {
var apiUrl: String = "https://test.convertedin.com/api/"
var apiUrl: String = "https://app.converted.in/api/"
private var sInstance: ConvertedInSdk? = null
private var helper: PixelHelper? = null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface EventApis {
): Single<Any>

companion object {
const val API_IDENTITY = "identity"
const val API_IDENTITY = "identify"
const val API_EVENTS = "events"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import com.google.gson.annotations.SerializedName

data class EventRequest(
@SerializedName("event") var event: String,
@SerializedName("cid") var cid: String?,
@SerializedName("cuid") var cuid: String?,
@SerializedName("data") var data: EventData?,
)
Expand All @@ -19,7 +18,5 @@ data class EventData(
data class EventContent(
@SerializedName("id") var id: String ?,
@SerializedName("quantity") var quantity: String ?,
@SerializedName("name") var name: String ?,
@SerializedName("category") var category: String ?

@SerializedName("name") var name: String ?
)
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ class PixelHelper(context: Context){
eventsViewModel.addEvent(
EventRequest(
event = eventName,
cid = eventsViewModel.getUser()?.cid,
cuid = eventsViewModel.getDeviceId(),
data = EventData(currency = currency, value = total, content = products)
)
Expand Down

0 comments on commit 935d249

Please sign in to comment.