@frontastic/common 2.21.1 → 2.22.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,14 @@
1
1
  # common Changelog
2
2
 
3
+ ## `2.22.0` (2021-12-02)
4
+
5
+ * feat(FP-1193): included rawApiImput on getProduct
6
+ * feat(FP-581): refresh account after update address on Shopify
7
+ * feat(FP-581): handle existing address error on Shopify
8
+ * feat(FP-1193): included rawApiInput fields for queries on Product and ProductSearch API
9
+ * fix(FP-1193): added url schema simbols
10
+ * feat!(FP-1193): upgrade and fix shopify version to 2021-10
11
+
3
12
  ## `2.21.1` (2021-11-30)
4
13
 
5
14
  * fix: make product price nullable in Algolia integration
package/composer.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frontastic/common",
3
3
  "license": "None",
4
- "version": "2.21.1",
4
+ "version": "2.22.0",
5
5
  "repositories": [
6
6
  {
7
7
  "type": "path",
package/docs/README.md CHANGED
@@ -30,6 +30,7 @@ Here you find the API documentation for the relevant classes:
30
30
  * [AuthentificationInformation](php/AccountApiBundle/Domain/AuthentificationInformation.md)
31
31
  * [DefaultAccountApiFactory](php/AccountApiBundle/Domain/DefaultAccountApiFactory.md)
32
32
  * [DuplicateAccountException](php/AccountApiBundle/Domain/DuplicateAccountException.md)
33
+ * [DuplicateAddressException](php/AccountApiBundle/Domain/DuplicateAddressException.md)
33
34
  * [Group](php/AccountApiBundle/Domain/Group.md)
34
35
  * [MetaData](php/AccountApiBundle/Domain/MetaData.md)
35
36
  * [PasswordResetToken](php/AccountApiBundle/Domain/PasswordResetToken.md)
@@ -0,0 +1,29 @@
1
+ # DuplicateAddressException
2
+
3
+ **Fully Qualified**: [`\Frontastic\Common\AccountApiBundle\Domain\DuplicateAddressException`](../../../../src/php/AccountApiBundle/Domain/DuplicateAddressException.php)
4
+
5
+ **Extends**: `\RuntimeException`
6
+
7
+ ## Methods
8
+
9
+ * [__construct()](#__construct)
10
+
11
+ ### __construct()
12
+
13
+ ```php
14
+ public function __construct(
15
+ string $address,
16
+ int $code,
17
+ \Throwable $previous = null
18
+ ): mixed
19
+ ```
20
+
21
+ Argument|Type|Default|Description
22
+ --------|----|-------|-----------
23
+ `$address`|`string`||
24
+ `$code`|`int`||
25
+ `$previous`|[`\Throwable`](https://www.php.net/manual/de/class.throwable.php)|`null`|
26
+
27
+ Return Value: `mixed`
28
+
29
+ Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontastic/common",
3
- "version": "2.21.1",
3
+ "version": "2.22.0",
4
4
  "devDependencies": {
5
5
  "@babel/core": "7.5.4",
6
6
  "@babel/plugin-proposal-class-properties": "^7.5.0",
@@ -102,9 +102,8 @@ class AccountUpdateTest extends FrontasticApiTestCase
102
102
  // Create an account
103
103
  $account = $accountApi->create($accountData, null, $language);
104
104
 
105
-
106
105
  //Prepare update data
107
- $updatedAddress = $account->addresses[0];
106
+ $updatedAddress = clone $account->addresses[0];
108
107
  $updatedAddress->firstName = 'Molly';
109
108
  $updatedAddress->lastName = 'Chambers';
110
109
  $updatedAddress->streetName = 'New str name';
@@ -9,7 +9,7 @@ configuration:
9
9
  hasConsistentProductSearchData: true
10
10
  supportSearchByIdentifierAndQueryParameters: true
11
11
  shopify:
12
- hostUrl: https://frontastic-demo.myshopify.com/api/2021-01/graphql.json
12
+ hostUrl: https://frontastic-demo.myshopify.com
13
13
  storefrontAccessToken: 1aa5b043c2b47c26495be4cdf119b77c
14
14
  account:
15
15
  engine: shopify