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.
    See more

    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. Otherwise Result.failure with APIError.unauthorized is returned.
    See more

    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)
    See more

    Declaration

    Swift

    public struct Logger
  • Header Configuration needed to the get better recommendations

    Note

    Please contact us to figure out the best recommendations properties for you
    See more

    Declaration

    Swift

    public struct RecommendationConfig
  • OrderConfirmation struct with the needed properties for the placed order

    See more

    Declaration

    Swift

    public struct OrderConfirmation