You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## 4.2.0 - 2022-02-10
8
+
9
+
### Added
10
+
11
+
- support for `forceToken` parameter for `updateProductPricing` and `updateVariantPricing` methods of `Article` client
12
+
- new `PriceProtectionException` thrown when API returns error with `PRICE_PROTECTION_ERROR` code, used to obtain force token using `getForceToken` method
13
+
-`getBody` method to `BadResponseException`, which returns API response as an array
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,17 +28,17 @@ Client consists of one main client and multiple, separate, domain clients.
28
28
29
29
The main client groups all domain clients under one object, for easier implementation, but every domain client can be initialized and used by itself.
30
30
31
-
Every client provides an interface that SHOULD be used as parameter types in code, instead of client classes themselves (i.e., use `MpApiClientInterface $client`
31
+
Every client provides an interface that SHOULD be used as parameter types in code, instead of client classes themselves (e.g., use `MpApiClientInterface $client`
32
32
or `BrandsClientInterface $client` instead of `MpApiClient $client` or `BrandsClient $client`).
33
33
34
34
When initializing the client, you MUST provide
35
35
36
36
1. an authenticator implementing [AuthMiddlewareInterface](src/Common/Interfaces/AuthMiddlewareInterface.php)
37
37
- currently, only [ClientIdAuthenticator](src/Common/Authenticators/ClientIdAuthenticator.php), which accepts `my-client-id`, is provided
38
-
- in the future, new authenticators will be released (i.e., OAuth)
38
+
- in the future, new authenticators will be released (e.g., OAuth)
39
39
2. name of the app using the API
40
40
- it is sent with every request to Mall API for easier request identification and debugging of reported issues
41
-
- please provide a simple, yet meaningful name, i.e., `MyAppName CRM` or `MyAppName Order sync` instead of a random string
41
+
- please provide a simple, yet meaningful name (e.g., `MyAppName CRM` or `MyAppName Order sync`), instead of a random string
42
42
43
43
### Examples
44
44
@@ -131,7 +131,7 @@ List of custom Exceptions thrown in this client can be found [here](doc/Exceptio
131
131
132
132
## ⚠ Warning
133
133
134
-
- client does not include support for deprecated endpoints that will be changed, replaced or removed in the future (i.e., `/v1/deliveries` or `/v1/gifts`)
134
+
- client does not include support for deprecated endpoints that will be changed, replaced or removed in the future (e.g., `/v1/deliveries` or `/v1/gifts`)
Method expects `product` and `variant` IDs and [Pricing](../src/Article/Entity/Common/Pricing.php) entity and does not return anything.
641
+
Method expects `product` and `variant` IDs, [Pricing](../src/Article/Entity/Common/Pricing.php) entity and an optional `forceToken` and does not return anything.
Copy file name to clipboardExpand all lines: doc/Exception.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Client contains custom exceptions, for easier error handling in your application
4
4
5
5
All custom exceptions extend generic `MpApiException`.
6
6
7
-
Some methods might throw other native PHP exceptions (i.e., `InvalidArgumentException`), which do not extend `MpApiException`. Such methods always have
7
+
Some methods might throw other native PHP exceptions (e.g., `InvalidArgumentException`, `LogicException`), which do not extend `MpApiException`. Such methods always have
0 commit comments