@frontastic/common 2.31.2 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # common Changelog
2
2
 
3
+ ## `2.32.0` (2022-04-13)
4
+
5
+ * fix: rehused cart on api test order
6
+ * fix: added salutaion to api test address.
7
+ * feat(FP-840): included cart rawApiData when placing order in Shopware
8
+
3
9
  ## `2.31.2` (2022-04-11)
4
10
 
5
11
  * fix: Categories with same name are returned
package/composer.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frontastic/common",
3
3
  "license": "None",
4
- "version": "2.31.2",
4
+ "version": "2.32.0",
5
5
  "repositories": [
6
6
  {
7
7
  "type": "path",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontastic/common",
3
- "version": "2.31.2",
3
+ "version": "2.32.0",
4
4
  "devDependencies": {
5
5
  "@babel/core": "7.5.4",
6
6
  "@babel/plugin-proposal-class-properties": "^7.5.0",
@@ -196,15 +196,14 @@ class AnonymousCartTest extends FrontasticApiTestCase
196
196
  $cartApi = $this->getCartApiForProject($project);
197
197
  $email = 'integration-tests-' . uniqid('', true) . '@frontastic.com';
198
198
 
199
- $product = $this->getAProduct($project, $language);
200
199
  $cartApi->startTransaction($cart);
201
- $cartApi->addToCart($cart, $this->getLineItemForProduct($this->getAProduct($project, $language)), $language);
202
- $cartApi->setEmail($cart, $email, $language);
203
- $cartApi->setShippingAddress($cart, $this->getFrontasticAddress(), $language);
204
- $cartApi->setBillingAddress($cart, $this->getFrontasticAddress(), $language);
200
+ $cart = $cartApi->addToCart($cart, $this->getLineItemForProduct($this->getAProduct($project, $language)), $language);
201
+ $cart = $cartApi->setEmail($cart, $email, $language);
202
+ $cart = $cartApi->setShippingAddress($cart, $this->getFrontasticAddress(), $language);
203
+ $cart = $cartApi->setBillingAddress($cart, $this->getFrontasticAddress(), $language);
205
204
  $cart = $cartApi->commit($language);
206
205
 
207
- $order = $cartApi->order($cart);
206
+ $order = $cartApi->order($cart, $language);
208
207
 
209
208
  $this->assertInstanceOf(Order::class, $order);
210
209
 
@@ -509,6 +509,7 @@ class FrontasticApiTestCase extends KernelTestCase
509
509
  protected function getFrontasticAddress(): Address
510
510
  {
511
511
  return new Address([
512
+ 'salutation' => 'Frau',
512
513
  'firstName' => 'FRONTASTIC',
513
514
  'lastName' => 'GmbH',
514
515
  'streetName' => 'Hafenweg',