Types
Reference

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

FieldType
countryCodeString, + followed by 1 to 3 digits, e.g. +44
numberString, 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.

FieldType
countryIdString
firstLineString
secondLineString, default empty
postCodeString
provinceIdString
administrativeAreaIdString
townIdString

CreateUserRequest

FieldType
emailString, must contain @
passwordString
usernameString
firstNameString
lastNameString
birthDateString
genderGender
localeSettingsLocaleSettings
termsIdString
addressAddress?

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

FieldType
registrationIdString?
statusString?, the raw registration status
versionString?
modeWalletGriffinMode

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

FieldType
idString
availableBalanceMonetaryAmount?
minimumBalanceMonetaryAmount? (nested balance-control value when present, else legacy top-level)
detailsWalletDetails?
balanceControlSettingsBalanceControlSettings?

WalletDetails — accountHolder, accountNumber, sortCode, all String?.

BalanceControlSettings — autoTopupEnabled: Boolean, minimumBalance: MonetaryAmount? (null clears it on update).

LinkedAccount

FieldType
idString
bankNameString?
aliasString?
accountNumberString?
sortCodeString?

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

FieldType
idString
amountMonetaryAmount?
directionString?, e.g. debit, credit
originTypeString?
referenceString?
createdAtDate

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.

FieldMeaningHandling
value: Double?Numeric amount supplied to or returned by the SDKValidate 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 examplesUse a currency approved for the environment; three-letter shape alone does not prove support
currencySymbol: String?Optional display symbolDo 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

OperationConfirmed local rule
Consumer top-up/pay-outPresent, finite value greater than zero; optional code/symbol strings are trimmed
Consumer balance-control minimumWhen supplied: present, finite value at least zero and an uppercase three-letter code; null clears the minimum
POS payment/refundPresent, 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

FieldType
idString
firstName, lastName, birthDateString?
genderGender?
localeSettingsLocaleSettings?
locationServiceEnabledBoolean?
username, emailString?
telephonePhone?

ProfileChanges — all optional; null means unchanged. Permitted: firstName, lastName, gender, localeSettings, locationServiceEnabled.

Errors

WolletteException (Android) / WolletteError (iOS) — see Errors.

Consumer Bluetooth and preparation (iOS)

TypeFields or values
ConsumerPaymentKeyInfocreatedDateTime, expiryDateTime, minRotationDateTime: Date. No private material
ConsumerPaymentPayeraccountToken, aisAccountId, aisConsentId, cryptogram, signature: strings. Its encoded account token has a {value: ...} wrapper
BleGattProfileservice, session, claim, payload: four distinct UUIDs. Use .wollettePaymentV1
BleTransferStagescanning, connecting, advertising, exchanging, transferred. Advertising is the peripheral role
ConsumerBlePayloadProviderprepare(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.