lotse_internal library
Internal API of the Lotse SDK for Lotse's own packages, such as
lotse_purchases. Not for apps: it exposes the generated client, and
anything here may change in any release.
Classes
- Client
- CustomerEntitlement
- One active entitlement of a customer, as the SDK and the console see it.
- CustomerEntitlements
- The active entitlements of a customer at checkedAt. Computed when read: active purchases plus valid grants (docs/PURCHASES.md, "Datenmodell").
- LotseInternal
-
The calls Lotse's own add-on packages (
lotse_purchases) make into the SDK. Not for apps: it hands out the generated client and may change in any release. Exported frompackage:lotse/lotse_internal.dartonly. - PurchaseProduct
- A product the SDK offers, as the console configured it for the app of the asking device (docs/PURCHASES.md, "SDK"): the store's id and what it unlocks. Price and title come from the store on the device. Not stored.
- PurchaseReport
- What the SDK reports after a purchase or on start (docs/PURCHASES.md, "SDK"): only the store's reference. Lotse reads everything else from the store itself.
Enums
- PurchaseStore
-
A store Lotse checks purchases with (docs/PURCHASES.md, "Begriffe").
appStorecovers iOS and Mac. - StoreProductKind
- What a product is in its store. A consumable unlocks nothing; it only counts as a payment and an event.
Exceptions / Errors
- LotseConflictException
- Thrown when a value that must be unique is already taken, e.g. a link slug.
- LotseInvalidInputException
- Thrown when a caller sends input the endpoint refuses to process.
- LotsePurchaseCheckException
- Thrown when Lotse could not check a purchase with the store. With retry the SDK reports it again later (network, store errors); without, the report itself is wrong (no store connection, an unknown token).