Skip to content

2.1.0

Compare
Choose a tag to compare
@EishanVijay EishanVijay released this 21 Nov 21:29

Motivation

This version of the SDK brings new features, functionality and long awaited bug fixes to allow merchants to have a stronger Shopify integration within their mobile applications.

Updates

The most significant changes to the SDK are as follows:

  • BUYClient+Storefront
    • Allow collections to be retrieved by IDs

      - (NSOperation *)getCollectionsByIds:(NSArray<NSString *> *)collectionIds page:(NSUInteger)page completion:(BUYDataCollectionsBlock)block

    • Support for getting product tags by collection

      - (NSOperation *)getProductTagsInCollection:(NSString *)collectionId page:(NSUInteger)page completion:(BUYDataTagsListBlock)block

    • Allow products to be retrieved by a list of tags

      - (NSOperation *)getProductsByTags:(NSArray<NSString *> *)tags page:(NSUInteger)page completion:(BUYDataProductsBlock)block

    • Allow a custom page size to be set based off the type of data being fetched

  • BUYProduct
    • A minimumPrice property has been added to obtain the minimum price of a product when considering all the variants
  • BUYCheckout
    • Allow for a discount code to be set onto the checkout (passing in nil will remove the discount from the checkout)

      - (void)setDiscountCode:(nullable NSString *)code

For more info about the changes made in this version please read CHANGELOG.md