PyzeCommerceCart

@interface PyzeCommerceCart : PyzeCustomEvent

PyzeCommerceCart

Subclass of PyzeCustomEvent class used post details of the events related to Cart.

Since

v3.0.5
  • Post details of item added to the cart.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItem:(nonnull NSString *)cartId
        withItemCategory:(nonnull NSString *)itemCategory
              withItemId:(nonnull NSString *)itemId
          withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(_ cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    attributes

    Additional custom attributes app would like to share with server.

  • Post detials of item added to cart from the deals.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItemFromDeals:(nonnull NSString *)cartId
                withItemCategory:(nonnull NSString *)itemCategory
                      withItemId:(nonnull NSString *)itemId
                withUniqueDealId:(nonnull NSString *)uniqueDealId
                  withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(fromDeals cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withUniqueDealId uniqueDealId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    uniqueDealId

    Unique deal identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item added to cart from wish list.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItemFromWishList:(nonnull NSString *)cartId
                   withItemCategory:(nonnull NSString *)itemCategory
                         withItemId:(nonnull NSString *)itemId
               withUniqueWishListId:(nonnull NSString *)uniqueWishListId
                     withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(fromWishList cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withUniqueWishListId uniqueWishListId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    uniqueWishListId

    Unique wish list identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item added to cart from curated list.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItemFromCuratedList:(nonnull NSString *)cartId
                      withItemCategory:(nonnull NSString *)itemCategory
                            withItemId:(nonnull NSString *)itemId
               withUniqueCuratedListId:(nonnull NSString *)uniqueCuratedListId
                        withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(fromCuratedList cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withUniqueCuratedListId uniqueCuratedListId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    uniqueCuratedListId

    Unique curated list identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item added to cart from Recommendations.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItemFromRecommendations:(nonnull NSString *)cartId
                          withItemCategory:(nonnull NSString *)itemCategory
                                withItemId:(nonnull NSString *)itemId
                withUniqueRecommendationId:
                    (nonnull NSString *)uniqueRecommendationId
                            withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(fromRecommendations cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withUniqueRecommendationId uniqueRecommendationId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category.

    itemId

    Item id detials.

    uniqueRecommendationId

    Unique recommendation identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item added to cart from Previous orders.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItemFromPreviousOrders:(nonnull NSString *)cartId
                         withItemCategory:(nonnull NSString *)itemCategory
                               withItemId:(nonnull NSString *)itemId
                      withPreviousOrderId:(nonnull NSString *)previousOrderId
                           withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(fromPreviousOrders cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withPreviousOrderId previousOrderId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifiers.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    previousOrderId

    Previous order identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item added to cart from search results.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItemFromSearchResults:(nonnull NSString *)cartId
                        withItemCategory:(nonnull NSString *)itemCategory
                              withItemId:(nonnull NSString *)itemId
                        withSearchString:(nonnull NSString *)searchString
                          withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(fromSearchResults cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withSearch searchString: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    searchString

    Search string.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item added to cart from subscription list.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postAddItemFromSubscriptionList:(nonnull NSString *)cartId
                           withItemCategory:(nonnull NSString *)itemCategory
                                 withItemId:(nonnull NSString *)itemId
                           withUniqueDealId:(nonnull NSString *)uniqueDealId
                             withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postAddItem(fromSubscriptionList cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withUniqueDealId uniqueDealId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    uniqueDealId

    Unique deal identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of the item removed from the Cart.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postRemoveItemFromCart:(nonnull NSString *)cartId
                  withItemCategory:(nonnull NSString *)itemCategory
                        withItemId:(nonnull NSString *)itemId
                    withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postRemoveItem(fromCart cartId: String, withItemCategory itemCategory: String, withItemId itemId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    itemCategory

    Item category identifier.

    itemId

    Item id details.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of view of items in cart.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postView:(nonnull NSString *)cartId
        withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postView(_ cartId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of the item shared from Cart.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postShare:(nonnull NSString *)cartId
        withItemSharedWith:(nonnull NSString *)sharedWith
                withItemId:(nonnull NSString *)itemId
            withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postShare(_ cartId: String, withItemSharedWith sharedWith: String, withItemId itemId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    cartId

    Cart identifier.

    sharedWith

    Shared with details FB/Twitter/G+ etc.

    itemId

    Item id details.

    attributes

    Additional custom attributes app would like to share with server.