commonMain.io.revenuemonster.sdk.module.MerchantModule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rm-kotlin-sdk-jvm Show documentation
Show all versions of rm-kotlin-sdk-jvm Show documentation
Revenue Monster Kotlin Multiplatform SDK
package io.revenuemonster.sdk.module
import io.revenuemonster.sdk.RevenueMonsterSDK
import io.revenuemonster.sdk.model.Item
import io.revenuemonster.sdk.model.response.MerchantProfile
import io.revenuemonster.sdk.model.response.MerchantSubscriptions
class MerchantModule(private val sdk: RevenueMonsterSDK) {
suspend fun getSubscriptions(): Item> {
return sdk.call>>(
url = "/v3/merchant/subscriptions"
)
}
suspend fun getProfile(): Item {
return sdk.call>(
url = "/v3/merchant"
)
}
}