This repository was archived by the owner on May 16, 2025. It is now read-only.
Repository navigation
Initialization
benjamin edited this page Feb 8, 2022
·
2 revisions
Example:
import Steuerbot
...
let user = User(email: "hello@steuerbot.com", forename: "John", surname: "Doe")
let framework = SteuerbotSDK(partnerId: "your-partner-id", token: "your-user-token", user: user)
let controller = UIViewController()
controller.view = framework.getView()
self.present(controller, animated: true, completion: nil)| Property | Value | Required | Notes |
|---|---|---|---|
| debug | Bool | false |
false is default |
| partnerID | String | true | Your personal ID, provided by Steuerbot |
| partnerName | String | true | The Name of your Company/App |
| token | String | true | TODO |
| user | User | true | If the provided mail address is already in use, error will be thrown. |
| paymentLink | String | true | Will be opened/called, when the user triggers payment. Should initiate the payment process in your app. |
| backButtonLink | String | false | Link will be opened/called, when the user presses the back button on the SDKs home screen. |
| apiUrl | String | false | |
| language | .german, .english | false |
.german is the default |
| lightTheme | String | false | If only one theme is provided, the provided theme will be used in dark and in light mode. |
| darkTheme | String | false | If only one theme is provided, the provided theme will be used in dark and in light mode. |
| action | .vast, .support, .taxYear(Int) | false | Provided actions will trigger a (navigation) action when the SDK is initialized. Additionally actions can be triggered at runtime. |
| deeplink | String | false | Provided deeplinks will trigger a (navigation) action when the SDK is initialized. Additionally deeploinks can be triggered at runtime. Using actions is the prefered way to trigger actions. |
| Property | Value | Required | Notes |
|---|---|---|---|
| String | true | ||
| forename | String | true | |
| surname | String | false | |
| taxId | String | false | |
| iban | String | false | |
| birthdate | String | false | ISO 8601: YYYY-MM-DD |
| gender | .male, .female, .other | false | |
| address | Address | false | |
| phoneNumber | String | false |
| Property | Value | Required | Notes |
|---|---|---|---|
| street | String | true | |
| number | Int | true | leading number-part/digits only; rest goes into numberAddition
|
| zip | String | true | |
| city | String | true | |
| state | String | true | usually short-form of state, for example BW, BY, NRW, |
| country | String | true | Country code, "DE" for Germany |
| countryLong | String | true | Full Country name |
| latitude | Double | false | |
| longitude | Double | false | |
| numberAddition | String | false | for example "/1", "a", "-2" |
| supplement | String | false | for example apartment, building, floor |