DefaultEnvironment

DefaultEnvironment.kt

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

Entries

Link copied to clipboard

The Production environment (receipts.getsensibill.com)

Link copied to clipboard

The non-production Sandbox environment (receipts-sandbox.sensibill.io)

Link copied to clipboard

The non-production Beta environment (beta.getsensibill.com)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
open override val hasHttps: Boolean = true

If the Sensibill environment is using https (true) or http (false)

Link copied to clipboard
open override val hostName: String

the host name of the Sensibill Environment. eg. my.environment.com

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val v1BaseUrl: String

The base url of the API v1 endpoints. By default set this to result of defaultV1BaseUrl

Link copied to clipboard
open override val v2BaseUrl: String

The base url of the API v2 endpoints. By default set this to result of defaultV2BaseUrl

Functions

Link copied to clipboard

The default v1 Base Url

Link copied to clipboard

The default v2 Base Url

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.