UpdateCartParameters

public struct UpdateCartParameters: ParameterConvertible

Data transfer object to update a cart item for an update cart HTTP request.

  • The product id to add to cart.

    Declaration

    Swift

    let productId: String
  • The quantity to add to cart.

    Declaration

    Swift

    let quantity: Int
  • Default initializer for an update cart item data transfer object.

    • Parameters:
      • productId: The product id to use.
      • quantity: The quantity to add.

    Declaration

    Swift

    public init(productId: String, quantity: Int)

    Parameters

    productId

    The product id to use.

    quantity

    The quantity to add.

  • Default initializer for an update cart item data transfer object.

    • Parameters:
      • productId: The product id to use.
      • quantity: The quantity to add.

    Declaration

    Swift

    public func toParameters() -> Parameters

    Return Value

    The parameters to use.