Structs
The following structs are available globally.
-
A bridge between API request call and a set of completions closures.
Completions are run after the call is finished in the reversed order.
See moreNote
Completions chain is used to provide authorization before a real call.Declaration
Swift
public struct APIRequest<Model>
-
Provides all functional API calls with their business logic. Main entry point for the ZalandoCommerceAPI framework.
See moreNote
If not specified otherwise – all API calls require user to be logged in and accepted a consent. OtherwiseResult.failurewithAPIError.unauthorizedis returned.Declaration
Swift
public struct ZalandoCommerceAPI
-
Simple internal logger for the issues in Zalando Commerce SDK.
Uses 3 basic logging levels:
Logger.Severity.debug(default when compiled with$DEBUG)Logger.Severity.messageLogger.Severity.error(default in Release mode)
Declaration
Swift
public struct Logger
-
Used to initate
ZalandoCommerceAPI.Note: can be fully or partially filled with data from
See moreInfo.plistfile. More on wikiDeclaration
Swift
public struct Options
-
Header Configuration needed to the get better recommendations
See moreNote
Please contact us to figure out the best recommendations properties for youDeclaration
Swift
public struct RecommendationConfig
-
OrderConfirmation struct with the needed properties for the placed order
See moreDeclaration
Swift
public struct OrderConfirmation
View on GitHub
Structs Reference