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.
Note
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.
Note
If not specified otherwise – all API calls require user to be logged in and accepted a consent. OtherwiseResult.failure
withAPIError.unauthorized
is 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.message
Logger.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.plist
file. More on wikiDeclaration
Swift
public struct Options
-
Header Configuration needed to the get better recommendations
Note
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