Commercetools

Latest version: v2023.6.29

Safety actively analyzes 613777 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 12

23.6.29

--------
- Regenerate code with latest RAML specifications, bringing the SDK up to date
again with new features released by commercetools.
- Add new SDK for the new frontend and checkout api
- Fix marshmallow deprecation warnings

22.10.25

--------
- Regenerate code with latest RAML specifications, bringing the SDK up to date
again with new features released by commercetools
- Update logic to set the HTTP User agent

22.6.4

------
Switch to CalVer format instead of the SemVer we did earlier. Since we generate
the code based on commercetools API specs at a specific time it makes more
sense to use the date as the release instead of a custom version.

14.0.0

-------------------
- Update the request builder pattern to match the commercetools SDK's for other languages.
This means that the old pattern:
python
from commercetools.client import Client

client = Client()
product = client.products.get_by_id("00633d11-c5bb-434e-b132-73f7e130b4e3")


is replaced with the new pattern:
python
from commercetools.platform.client import Client

client = Client()
product = (
client
.with_project_key("<your-project-key>")
.products()
.with_id("00633d11-c5bb-434e-b132-73f7e130b4e3")
.get())

The old pattern is deprecated but will remain backwards compatible for now
- Regenerated code with latest commercetools api specs as of march 2022. This
means that new features like the product selections api's are now available.
- Allow passing custom HTTP adapter to BaseClient (lime-green)
- Add support for custom address fields and update actions
- Testing: Add support for `Order` imports
- Testing: fixed issues with `get_by_key` lookups in certain testing backends
- Testing: Added missing actions for Cart Discounts, Discount Codes and Extensions
- Testing: Add `datetime` and `list` updater utils
- Testing: Add `setLocalizedDescription` action for shipping_method
- Testing: Add `changeAttributeConstraint` action for product_type
- Testing: Add `setLineItemCustomField` action for cart and order
- Testing: Fix helper function to set enum fields giving an error on fields that have no value


Notes on code generation
We moved our code generation to the code generation tool from Commercetools,
see https://github.com/commercetools/rmf-codegen

Reason for this is two-fold:
1. We can now generate the code for the `imporapi` and the `ml` api
specifications next to the `platform` sdk.
2. It makes it easier for us to keep the code generation in sync with
changes to the API specification.

The major difference is that it now also use the request builder pattern,
matching the SDK's for the other languages (e.g. TypeScript).

The package is backwards compatible for now, although deprecation warnings are
shown.

13.0.0

-------------------
- Regenerated code. This addresses errors not being able to be parsed, so upgrading is recommended.
- Cart:
- CartDiscountValueGiftLineItemDraft channel variables type changed ChannelReference -> ChannelResourceIdentifier
- CartDiscount value field type changed CartDiscountValue -> CartDiscountValueDraft
- CustomLineItemDraft custom field type changed CustomFields -> CustomFieldsDraft
- TaxedPriceDraft total_net and total_gross fields type changed TypedMoneyDraft -> Money
- Common:
- Add back fraction_digits to Money draft classes
- Errors:
- Many commercetools errors can now be parsed instead of throwing a ValueError
- Fixed incorrect typing of extension response errors
- Me:
- Added address_key to various billing/shipping address update actions
- Product:
- Add limit to ProductProjectionPagedSearchResponse
- Add ProductVariantAddedMessage
- Store:
- Change supply_channels from ChannelResourceIdentifier to ChannelReference
- Subscription:
- ResourceDeletedDeliverySchema added data_erasure
- Require requests_mock 1.8.0 or up
- Testing: Added `changeName` and `setKey` actions to CustomerGroupBackend

12.0.2

-------------------
- Testing: Fix custom object mock interface

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.