Types
These types belong to the consumer wallet SDK. Merchant Pos* models are listed in the POS API reference.
Field names are identical on both platforms. Types are shown in Kotlin form; Swift uses the equivalent (String?, Bool, Double?, Date, enums with camel-case cases).
Configuration
WolletteConfig — see Configuration.
WolletteAppType — THIRD_PARTY (default; address required at registration) or NATIVE_WOLLETTE (address optional).
Developer proof
ApiContext — developerId: String, nonce: String, signature: String. Formatting omits signature.
Registration
Phone
| Field | Type |
|---|---|
countryCode | String, + followed by 1 to 3 digits, e.g. +44 |
number | String, national number without the country code |
RegistrationState — Idle, OtpRequested(phone), OtpVerified(phone). Never carries the code.
Availability — unique: Boolean, true if the value is free.
Gender — entryId: String (required), metadataId: String?.
LocaleSettings — currencyId, languageId, timezoneId, all String.
Address — required at registration for THIRD_PARTY. If supplied, all fields except secondLine must be non-blank.
| Field | Type |
|---|---|
countryId | String |
firstLine | String |
secondLine | String, default empty |
postCode | String |
provinceId | String |
administrativeAreaId | String |
townId | String |
CreateUserRequest
| Field | Type |
|---|---|
email | String, must contain @ |
password | String |
username | String |
firstName | String |
lastName | String |
birthDate | String |
gender | Gender |
localeSettings | LocaleSettings |
termsId | String |
address | Address? |
Formatting prints only the username.
CreateUserResult — id: String (consumer id), fullyRegistered: Boolean (false if the API omits it).
Wallet activation
WalletOnboardingStep — AIS, GRIFFIN, PIS.
WalletGriffinMode — START, RESUME, VERIFY, PENDING, RETRY, ACCEPTED.
WalletGriffinState
| Field | Type |
|---|---|
registrationId | String? |
status | String?, the raw registration status |
version | String? |
mode | WalletGriffinMode |
WalletOnboardingProgress — Needs(step: WalletOnboardingStep), Griffin(state: WalletGriffinState), Complete.
WalletOnboardingWebView — open(url, step). Presents a form until its callback returns control.
WalletAccountLinkingWebView — extends WalletOnboardingWebView with completedAisConsentId(), returning the consent ID captured from the trusted AIS finished callback. Required by custom adapters passed to addAccount. See Custom WebView adapter.
pendingProgress returns an optional WalletOnboardingProgress; null/nil means no saved operation remains. It is not a general activation result.
Wallet
WalletAccount
| Field | Type |
|---|---|
id | String |
availableBalance | MonetaryAmount? |
minimumBalance | MonetaryAmount? (nested balance-control value when present, else legacy top-level) |
details | WalletDetails? |
balanceControlSettings | BalanceControlSettings? |
WalletDetails — accountHolder, accountNumber, sortCode, all String?.
BalanceControlSettings — autoTopupEnabled: Boolean, minimumBalance: MonetaryAmount? (null clears it on update).
LinkedAccount
| Field | Type |
|---|---|
id | String |
bankName | String? |
alias | String? |
accountNumber | String? |
sortCode | String? |
MonetaryAmount — value: Double?, currencyCode: String?, currencySymbol: String?.
WalletTransfer — id: String, status: String?, authorizationUrl: String? (open in the system browser when present).
TopUpStatus — paymentId: String, state: TopUpState.
TopUpState — PENDING, SUCCEEDED, DECLINED, EXPIRED. API COMPLETED → SUCCEEDED; DECLINED or FAILED → DECLINED; EXPIRED → EXPIRED; anything else → PENDING.
WalletTransaction
| Field | Type |
|---|---|
id | String |
amount | MonetaryAmount? |
direction | String?, e.g. debit, credit |
originType | String? |
reference | String? |
createdAt | Date |
TransactionPage — data: List<WalletTransaction>, hasMore: Boolean, startingAfter: String? (pass to the next call when hasMore).
Money values
MonetaryAmount stores the numeric value, currencyCode and optional display currencySymbol. All three can be absent in returned consumer models. An absent balance is unavailable data, not a zero balance.
| Field | Meaning | Handling |
|---|---|---|
value: Double? | Numeric amount supplied to or returned by the SDK | Validate for the operation below; do not infer units or rounding from the type |
currencyCode: String? | Currency code sent with the amount, such as GBP in the examples | Use a currency approved for the environment; three-letter shape alone does not prove support |
currencySymbol: String? | Optional display symbol | Do not use it as the currency identifier |
Confirmed backend model
The inspected core MonetaryAmount rounds decimal construction to two places using HALF_UP: 12.345 becomes 12.35. This describes that backend model. Provider/PSD conversions use separate paths, so it does not establish one policy for every operation or currency.
Use the approved order/account amount. Do not multiply by 100 by assumption or rely on positive-number validation as a settlement guarantee. Confirm operation-specific units, supported currencies and conversions before accepting a financial integration.
Rules differ by operation
| Operation | Confirmed local rule |
|---|---|
| Consumer top-up/pay-out | Present, finite value greater than zero; optional code/symbol strings are trimmed |
| Consumer balance-control minimum | When supplied: present, finite value at least zero and an uppercase three-letter code; null clears the minimum |
| POS payment/refund | Present, finite value greater than zero and a code matching [A-Z]{3} |
See consumer validation and POS validation for the remaining input rules.
Profile
UserProfile
| Field | Type |
|---|---|
id | String |
firstName, lastName, birthDate | String? |
gender | Gender? |
localeSettings | LocaleSettings? |
locationServiceEnabled | Boolean? |
username, email | String? |
telephone | Phone? |
ProfileChanges — all optional; null means unchanged. Permitted: firstName, lastName, gender, localeSettings, locationServiceEnabled.
Errors
WolletteException (Android) / WolletteError (iOS) — see Errors.
Consumer Bluetooth and preparation (iOS)
| Type | Fields or values |
|---|---|
ConsumerPaymentKeyInfo | createdDateTime, expiryDateTime, minRotationDateTime: Date. No private material |
ConsumerPaymentPayer | accountToken, aisAccountId, aisConsentId, cryptogram, signature: strings. Its encoded account token has a {value: ...} wrapper |
BleGattProfile | service, session, claim, payload: four distinct UUIDs. Use .wollettePaymentV1 |
BleTransferStage | scanning, connecting, advertising, exchanging, transferred. Advertising is the peripheral role |
ConsumerBlePayloadProvider | prepare(accountId:descriptor:challenge:) is async throwing and returns encrypted Data |
Use BackendConsumerBlePayloadProvider for the documented backend contract. A custom provider must preserve trusted session/context/challenge binding.
Payer data contains sensitive material. Keep it native until encrypted; do not expose it through JavaScript bridges or logs. A transferred stage does not indicate authorisation.