Skip to content

Commit

Permalink
Updated changelog for 0.9.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-mladenovic committed Jun 20, 2019
1 parent 3dc03fd commit 113a1c4
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
5.0
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
All changes to this project will be documented in this file.

#### 0.x Releases
- `0.9.x` Releases - [0.9.0](#090)
- `0.8.x` Releases - [0.8.0](#080)
- `0.7.x` Releases - [0.7.0](#070) | [0.7.1](#071) | [0.7.2](#072) | [0.7.3](#073) | [0.7.4](#074) | [0.7.5](#075)
- `0.6.x` Releases - [0.6.0](#060) | [0.6.1](#061)
Expand All @@ -14,8 +15,31 @@ All changes to this project will be documented in this file.

---

## [0.9.0](https://github.com/commercetools/commercetools-ios-sdk/releases/tag/0.9.0)
Released on 2019-06-20.

#### Added
- `key` attribute to the `CartDiscount`.
- `key` attribute to the `ProductDiscount`.
- `lastModifiedBy` and `createdBy` fields to a number of endpoints.
- Following methods for the `Cart`:
- Get a Cart in a Store by ID
- Get Active Cart in a Store by ID
- Query Carts in a Store
- Create a Cart in a Store
- Update a Cart in a Store
- Delete a Cart in a Store
- Following methods for the `Order`:
- Get Order in a Store by ID
- Query Orders in a Store by ID
- Create Order in a Store from a Cart

#### Updated
- `SimilarProductSearchRequestMeta` model.
- Similar Products’s `ProductSetSelector`.

## [0.8.0](https://github.com/commercetools/commercetools-ios-sdk/releases/tag/0.8.0)
Released on 2018-04-26.
Released on 2019-04-26.

#### Added
- `SimilarProducts` machine learning endpoint.
Expand Down
4 changes: 2 additions & 2 deletions Commercetools.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Commercetools"
s.version = "0.8.0"
s.version = "0.9.0"
s.summary = "The e-commerce Swift SDK from commercetools"
s.homepage = "https://github.com/commercetools/commercetools-ios-sdk"
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
Expand All @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.source_files = 'Source/*.swift'

s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.10'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.2'

Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

pod 'Commercetools', '~> 0.7'
pod 'Commercetools', '~> 0.9'
```

Then, run the following command:
Expand Down Expand Up @@ -226,7 +226,7 @@ Project.settings { result in
#### Cart

Cart endpoint supports all common operations:
- Retrieve active cart (user must be logged in)
- Retrieve active cart
```swift
Cart.active(result: { result in
if let cart = result.model, result.isSuccess {
Expand All @@ -236,7 +236,7 @@ Cart.active(result: { result in
}
})
```
- Query for carts (user must be logged in)
- Query for carts
```swift
Cart.query(limit: 2, offset: 1, result: { result in
if let response = result.model, let count = response.count,
Expand All @@ -245,7 +245,7 @@ Cart.query(limit: 2, offset: 1, result: { result in
}
})
```
- Create new cart (user must be logged in)
- Create new cart
```swift
var cartDraft = CartDraft()
cartDraft.currency = "EUR"
Expand All @@ -256,7 +256,7 @@ Cart.create(cartDraft, result: { result in
}
})
```
- Update existing cart (user must be logged in)
- Update existing cart
```swift
let draft = LineItemDraft(productVariantSelection: .productVariant(productId: productId, variantId: variantId))

Expand All @@ -267,7 +267,7 @@ Cart.update(cartId, actions: updateActions, result: { result in
}
})
```
- Delete existing cart (user must be logged in)
- Delete existing cart
```swift
let version = 1 // Set the appropriate current version

Expand All @@ -277,7 +277,7 @@ Cart.delete(cartId, version: version, result: { result in
}
})
```
- Retrieve cart by UUID (user must be logged in)
- Retrieve cart by UUID
```swift
Cart.byId("cddddddd-ffff-4b44-b5b0-004e7d4bc2dd", result: { result in
if let cart = result.model, cart.cartState == .active && result.isSuccess {
Expand All @@ -286,6 +286,8 @@ Cart.byId("cddddddd-ffff-4b44-b5b0-004e7d4bc2dd", result: { result in
})
```

There is also a subset of Cart methods for in-store actions. The parameters are the same as the methods above, with an additional parameter specifying the store key (`storeKey: String`).

#### Category

Using regular mobile scope, it is possible to retrieve by UUID and query for categories.
Expand Down
2 changes: 1 addition & 1 deletion Source/Info-tvOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.8.0</string>
<string>0.9.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion Source/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.8.0</string>
<string>0.9.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 113a1c4

Please sign in to comment.