Moltin Core
-
Allows access to Moltin API. Create this class with a Moltin client ID and an optional configuration to access the Moltin API, and get information such as products, categories, or interact with carts.
See moreDeclaration
Swift
public class Moltin
-
See moreMoltinConfig
holds information about the general configuration of the SDK, such as the client ID or the locale, for use during API calls.Declaration
Swift
public struct MoltinConfig
-
MoltinQuery
encapsulates all query parameters applied to a request, as well as converting these parameters to[URLQueryItem]
Declaration
Swift
open class MoltinQuery
-
See moreMoltinFilterOperator
represents various operations that can be applied toMoltinRequest.filter(...)
These parameters allow a user to filter resources.Declaration
Swift
public struct MoltinFilterOperator : RawRepresentable, Equatable
-
See moreMoltinInclude
represents various resources which can be included into other API calls, such as including the collections assigned to products This struct is for use in theMoltinRequest.include(...)
methodDeclaration
Swift
public struct MoltinInclude : RawRepresentable, Equatable
-
See moreMoltinError
encapsultes various errors that the SDK can return, as well as returning additional information if there are errors such as decoding errorsDeclaration
Swift
public enum MoltinError : Error
-
Boxes up results into success or failure cases This enum will either return success, with the corresponding value with the correct type, or return failure, with the corresponding error
See moreDeclaration
Swift
public enum Result<T>
-
See morePaginationResponse
wraps around a list endpoint response, to give context to the user about the pagination informationDeclaration
Swift
open class PaginatedResponse<T> : Codable where T : Decodable, T : Encodable
-
See morePaginationMeta
gives information about the pagination details to the user, such as result information and page informationDeclaration
Swift
open class PaginationMeta : Codable