View on GitHub

sensibill-android-documentation

com.getsensibill.rest.network / DefaultEnvironment

DefaultEnvironment

enum class DefaultEnvironment : SBEnvironment

DefaultEnvironment.kt

Enum that defines a Sensibill Backend(API) Environment. Contains the backend host name and pinning certs

Enum Values

Name Summary
TESTING Sensibill Testing Backend Environment
BETA_STAGING Sensibill Beta-Staging Backend Environment
BETA_PROD Sensibill Beta-Production Backend Environment
RECEIPTS_STAGING Sensibill Receipt-Staging Backend Environment
RECEIPTS_PROD Main Sensibill production environment
SANDBOX  
RECEIPTS_SANDBOX Sensibill Receipts Sandbox Environment
BETA_SANDBOX Sensibill Beta Sandbox Environment
TEMPORARY Sensibill Temporary Environment
LOAD_TEST Sensibill Load Test Environment

Functions

Name Summary
getBaseUrl fun getBaseUrl(): String
Call to get the url to Sensibill Environment Composed of http + hostname
getCertificatePins fun getCertificatePins(): List<String>
Call to get list of certs for Sensibill Environment
getHostName fun getHostName(): String
Call to get the host name of the sensibill environment
hasHttps fun hasHttps(): Boolean
Call to get boolean describing if Sensibill environment is using https (true) or http (false)