Skip to content

Releases: labd/commercetools-python-sdk

23.6.29

29 Jun 06:49
Compare
Choose a tag to compare
  • 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.15

25 Oct 08:46
Compare
Choose a tag to compare

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.

  • 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

14.0.0

05 Mar 07:47
Compare
Choose a tag to compare

Changes

  • Update the request builder pattern to match the commercetools SDK's for other languages.
    This means that the old pattern:

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

    is replaced with the new pattern:

    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 framework

    • Add support for Order imports
    • Fixed issues with get_by_key lookups in certain testing backends
    • Added missing actions for Cart Discounts, Discount Codes and Extensions
    • Add datetime and list updater utils
    • Add setLocalizedDescription action for shipping_method
    • Add changeAttributeConstraint action for product_type
    • Add setLineItemCustomField action for cart and order
    • 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.

14.0.0b12

16 Sep 08:44
Compare
Choose a tag to compare
14.0.0b12 Pre-release
Pre-release
Bump version: 14.0.0b11 → 14.0.0b12

14.0.0b11

15 Sep 19:52
Compare
Choose a tag to compare
14.0.0b11 Pre-release
Pre-release
  • Fix quantity type on LineItemImportDraft types
  • Throw detailed exception when error message could not be parsed
  • Testing: Add support for Order imports
  • Testing: add support for custom line items

14.0.0b10

08 Sep 10:29
Compare
Choose a tag to compare
14.0.0b10 Pre-release
Pre-release
Bump version: 14.0.0b9 → 14.0.0b10

14.0.0b9

15 Jun 14:33
Compare
Choose a tag to compare
14.0.0b9 Pre-release
Pre-release

Testing:
Add changeAttributeConstraint action

14.0.0b8

03 Jun 07:26
Compare
Choose a tag to compare
14.0.0b8 Pre-release
Pre-release

Fix PyPI release.

14.0.0b7

23 Apr 11:18
Compare
Choose a tag to compare
14.0.0b7 Pre-release
Pre-release

Testing:
Change shippingRateInputType init value to None

14.0.0b6

20 Apr 09:14
Compare
Choose a tag to compare
14.0.0b6 Pre-release
Pre-release
  • Regenerated Code:
    • Import API:
      • Removed retry_count
      • removed delete and deleted from importsummary
    • Project:
      • Add delete_days_after_last_modification field
      • Change SearchIndexingConfigurationValuesSchema field status to type Enum
      • Add last_modified_at and last_modified_by fields to SearchIndexingConfigurationValuesSchema
      • Add ProjectChangeCartsConfigurationSchema
    • Shipping Method:
      • Change localized_description field to LocalizedStringField type
  • Testing:
    • Add setLocalizedDescription action for shipping_method