core / com.schibsted.account.network.service.client / ClientContract

ClientContract

interface ClientContract

Functions

checkEmailStatus

abstract fun checkEmailStatus(clientBearer: String, emailBase64: String): Call<ApiContainer<AccountStatusResponse>>

Checks the signup status of the given phone identifier.

checkPhoneStatus

abstract fun checkPhoneStatus(clientBearer: String, phoneBase64: String): Call<ApiContainer<AccountStatusResponse>>

Checks the signup status of the given phone identifier.

getClientInformation

abstract fun getClientInformation(clientBearer: String, clientId: String): Call<ApiContainer<ClientInfo>>

getProduct

abstract fun getProduct(clientBearer: String, productId: String): Call<ApiContainer<Product>>

getProducts

abstract fun getProducts(clientBearer: String): Call<ListContainer<Product>>

retrieveTermsLinks

abstract fun retrieveTermsLinks(clientId: String): Call<ApiContainer<AgreementLinksResponse>>

signUp

abstract fun signUp(clientBearer: String, params: Map<String, Any>): Call<ApiContainer<ProfileData>>

Creates a user and associates it to an e-mail identifier (should it not be associated to any yet) and requests the backend to send a confirmation e-mail to it.