Skip to content

Releases: commercetools/commercetools-sdk-php-v2

9.0.0

06 Mar 10:06
ddf92cd
Compare
Choose a tag to compare

What's Changed

  • Add fixtures tests by @barbara79 in #103
  • Update generated SDKs by @github-actions in #104

Api changes

Removed Property(s)
  • ⚠️ removed property externalTaxRate from type MyCartAddLineItemAction
  • ⚠️ removed property externalPrice from type MyCartAddLineItemAction
  • ⚠️ removed property externalTotalPrice from type MyCartAddLineItemAction
Changed Property(s)
  • ⚠️ changed property totalPrice of type Cart from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property totalPrice of type CustomLineItem from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property externalTaxRate of type CustomShippingDraft from type string to ExternalTaxRateDraft
  • ⚠️ changed property deliveries of type CustomShippingDraft from type Delivery[] to DeliveryDraft[]
  • ⚠️ changed property custom of type CustomShippingDraft from type string to CustomFieldsDraft
  • ⚠️ changed property totalPrice of type LineItem from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property externalTaxRate of type ShippingDraft from type string to ExternalTaxRateDraft
  • ⚠️ changed property deliveries of type ShippingDraft from type Delivery[] to DeliveryDraft[]
  • ⚠️ changed property custom of type ShippingDraft from type string to CustomFieldsDraft
  • ⚠️ changed property price of type ShippingInfo from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property amount of type TaxPortion from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property totalNet of type TaxedItemPrice from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property totalGross of type TaxedItemPrice from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property totalTax of type TaxedItemPrice from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property totalNet of type TaxedPrice from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property totalGross of type TaxedPrice from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property totalTax of type TaxedPrice from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property externalTaxRate of type CartAddCustomShippingMethodAction from type string to ExternalTaxRateDraft
  • ⚠️ changed property deliveries of type CartAddCustomShippingMethodAction from type Delivery[] to DeliveryDraft[]
  • ⚠️ changed property custom of type CartAddCustomShippingMethodAction from type string to CustomFieldsDraft
  • ⚠️ changed property shippingMethod of type CartAddShippingMethodAction from type ShippingMethodReference to ShippingMethodResourceIdentifier
  • ⚠️ changed property externalTaxRate of type CartAddShippingMethodAction from type string to ExternalTaxRateDraft
  • ⚠️ changed property deliveries of type CartAddShippingMethodAction from type Delivery[] to DeliveryDraft[]
  • ⚠️ changed property custom of type CartAddShippingMethodAction from type string to CustomFieldsDraft
  • ⚠️ changed property businessUnit of type MyCartDraft from type BusinessUnitKeyReference to BusinessUnitResourceIdentifier
  • ⚠️ changed property store of type MyCartDraft from type StoreKeyReference to StoreResourceIdentifier
Required Property(s)
  • ⚠️ changed property inventoryMode of type Cart to be required
  • ⚠️ changed property itemShippingAddresses of type Cart to be required
  • ⚠️ changed property discountCodes of type Cart to be required
  • ⚠️ changed property directDiscounts of type Cart to be required
  • ⚠️ changed property shippingAddress of type ShippingDraft to be required
  • changed property quantity of type CustomLineItemDraft to be optional
  • changed property deliveries of type CustomShippingDraft to be optional
  • changed property deliveries of type ShippingDraft to be optional
  • changed property quantity of type CartAddCustomLineItemAction to be optional
  • changed property deliveries of type CartAddCustomShippingMethodAction to be optional
  • changed property deliveries of type CartAddShippingMethodAction to be optional
  • changed property email of type CartSetCustomerEmailAction to be optional
  • changed property quantity of type MyLineItemDraft to be optional
Added Property(s)
  • added property shippingDetails to type CartAddCustomLineItemAction
  • added property addedAt to type CartAddLineItemAction
  • added property inventoryMode to type CartAddLineItemAction
Added Resource(s)
  • added resource /{projectKey}/me/orders/quotes
Added Method(s)
  • added method $apiRoot->withProjectKey()->me()->orders()->quotes()->post()
Removed Type(s)
  • ⚠️ removed type CountryNotConfiguredInStore
Added Type(s)
  • added type CartSetBusinessUnitAction
  • added type CountryNotConfiguredInStoreError
  • added type GoogleCloudFunctionDestination
  • added type MyOrderFromQuoteDraft
  • added type MyCartSetBusinessUnitAction
Added QueryParameter(s)
  • added query parameter sort to method get /{projectKey}/product-selections/key={key}/products
  • added query parameter sort to method get /{projectKey}/product-selections/{ID}/products
  • added query parameter expand to method get /{projectKey}/in-store/key={storeKey}/me/active-cart

Import changes

Required Property(s)
  • changed property password of type CustomerImport to be optional
Added Property(s)
  • added property authenticationMode to type CustomerImport
  • added property state to type OrderImport
  • added property custom to type Address
Added Type(s)
  • added type AuthenticationMode

Full Changelog: 8.1.0...9.0.0

New Release 8.1.0

10 Feb 15:03
5863d56
Compare
Choose a tag to compare

What's Changed

  • Update generated SDKs by @github-actions in #101

Full Changelog: 8.0.0...8.1.0

8.0.0

05 Dec 14:18
e9a416d
Compare
Choose a tag to compare

What's Changed

  • Update generated SDKs by @github-actions in #98

Api changes

Added Property(s)
  • added property discountCodeId to type DiscountCodeNonApplicableError
  • added property extensionErrors to type ExtensionBadResponseError
  • added property extensionBody to type ExtensionBadResponseError
  • added property extensionStatusCode to type ExtensionBadResponseError
  • added property extensionId to type ExtensionBadResponseError
  • added property extensionKey to type ExtensionBadResponseError
  • added property extensionErrors to type ExtensionUpdateActionsFailedError
  • added property detailedErrorMessage to type InvalidJsonInputError
  • added property priceMode to type ProductProjection
Removed Property(s)
  • ⚠️ removed property dicountCodeId from type DiscountCodeNonApplicableError
  • ⚠️ removed property conflictingResource from type DuplicateFieldError
  • ⚠️ removed property error from type ErrorResponse
  • ⚠️ removed property error_description from type ErrorResponse
  • ⚠️ removed property errorByExtension from type ExtensionBadResponseError
  • ⚠️ removed property errorByExtension from type ExtensionUpdateActionsFailedError
Changed Property(s)
  • ⚠️ changed property amountPlanned of type MyPayment from type TypedMoney to CentPrecisionMoney
  • ⚠️ changed property amountPlanned of type Payment from type TypedMoney to CentPrecisionMoney
Added Type(s)
  • added type AuthErrorResponse
  • added type CountryNotConfiguredInStore
  • added type ExtensionError
  • added type ExtensionPredicateEvaluationFailedError
  • added type ProductAssignmentMissingError
  • added type ProductPresentWithDifferentVariantSelectionError
Removed Type(s)
  • ⚠️ removed type AccessDeniedError
  • ⚠️ removed type WeakPasswordError
Added QueryParameter(s)
  • added query parameter localeProjection to method get /{projectKey}/products
  • added query parameter localeProjection to method post /{projectKey}/products
  • added query parameter localeProjection to method get /{projectKey}/products/key={key}
  • added query parameter localeProjection to method post /{projectKey}/products/key={key}
  • added query parameter localeProjection to method delete /{projectKey}/products/key={key}
  • added query parameter localeProjection to method get /{projectKey}/products/{ID}
  • added query parameter localeProjection to method post /{projectKey}/products/{ID}
  • added query parameter localeProjection to method delete /{projectKey}/products/{ID}
  • added query parameter staged to method get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}
  • added query parameter staged to method get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}

Full Changelog: 7.1.1...7.2.0

7.1.1

10 Nov 12:36
004d0e4
Compare
Choose a tag to compare

What's Changed

  • Update generated SDKs by @github-actions in #97

Fixes

  • remove cache/filesystem-adapter from dependencies

Full Changelog: 7.1.0...7.1.1

7.1.0

08 Nov 13:22
ea1720a
Compare
Choose a tag to compare

What's Changed

  • support PSR Log 2 & 3 by @jenschude in #96
  • Update generated SDKs by @github-actions in #94

Api changes

Added Property(s)
  • added property shippingKey to type CartSetLineItemTaxAmountAction
  • added property shippingKey to type CartSetLineItemTaxRateAction
  • added property shippingKey to type StagedOrderSetLineItemTaxAmountAction
  • added property shippingKey to type StagedOrderSetLineItemTaxRateAction
Added Type(s)
  • added type AttributeGroup
  • added type AttributeGroupDraft
  • added type AttributeGroupPagedQueryResponse
  • added type AttributeGroupReference
  • added type AttributeGroupResourceIdentifier
  • added type AttributeGroupUpdate
  • added type AttributeGroupUpdateAction
  • added type AttributeReference
  • added type AttributeGroupAddAttributeAction
  • added type AttributeGroupChangeNameAction
  • added type AttributeGroupRemoveAttributeAction
  • added type AttributeGroupSetAttributesAction
  • added type AttributeGroupSetDescriptionAction
  • added type AttributeGroupSetKeyAction
Changed Type(s)
  • marked type ShippingMethodSetDescriptionAction as deprecated
Added Method(s)
  • added method get /{projectKey}/attribute-groups
  • added method post /{projectKey}/attribute-groups
  • added method get /{projectKey}/attribute-groups/key={key}
  • added method post /{projectKey}/attribute-groups/key={key}
  • added method delete /{projectKey}/attribute-groups/key={key}
  • added method get /{projectKey}/attribute-groups/{ID}
  • added method post /{projectKey}/attribute-groups/{ID}
  • added method delete /{projectKey}/attribute-groups/{ID}
Added Resource(s)
  • added resource /{projectKey}/attribute-groups (file:///home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/api.raml:216:2)
  • added resource /{projectKey}/attribute-groups/key={key}
  • added resource /{projectKey}/attribute-groups/{ID}

Full Changelog: 7.0.0...7.1.0

7.0.0

28 Oct 08:59
74e1814
Compare
Choose a tag to compare

What's Changed

  • Update generated SDKs by @github-actions in #93

API

Added Property(s)
  • added property businessUnit to type Cart
  • added property taxedShippingPrice to type Cart
  • added property shippingMode to type Cart
  • added property shipping to type Cart
  • added property businessUnit to type CartDraft
  • added property shippingMode to type CartDraft
  • added property customShipping to type CartDraft
  • added property shipping to type CartDraft
  • added property priceMode to type CustomLineItem
  • added property priceMode to type CustomLineItemDraft
  • added property shippingMethodKey to type ItemShippingTarget
  • added property taxedPricePortions to type LineItem
  • added property perMethodTaxRate to type LineItem
  • added property inventoryMode to type LineItem
  • added property inventoryMode to type LineItemDraft
  • added property priceMode to type CartAddCustomLineItemAction
  • added property key to type Price
  • added property key to type PriceDraft
  • added property businessUnit to type MyCartDraft
  • added property salutation to type MyCustomerDraft
  • added property shippingKey to type DeliveryAddedMessage
  • added property shippingKey to type DeliveryAddressSetMessage
  • added property shippingKey to type DeliveryItemsUpdatedMessage
  • added property shippingKey to type DeliveryRemovedMessage
  • added property taxedPricePortions to type OrderLineItemDiscountSetMessage
  • added property shippingKey to type ParcelAddedToDeliveryMessage
  • added property shippingKey to type ParcelItemsUpdatedMessage
  • added property shippingKey to type ParcelMeasurementsUpdatedMessage
  • added property shippingKey to type ParcelRemovedFromDeliveryMessage
  • added property shippingKey to type ParcelTrackingDataUpdatedMessage
  • added property quote to type QuoteCreatedMessage
  • added property quoteRequest to type QuoteRequestCreatedMessage
  • added property stagedQuote to type StagedQuoteCreatedMessage
  • added property staged to type StandalonePriceValueChangedMessage
  • added property shippingKey to type DeliveryAddedMessagePayload
  • added property shippingKey to type DeliveryAddressSetMessagePayload
  • added property shippingKey to type DeliveryItemsUpdatedMessagePayload
  • added property shippingKey to type DeliveryRemovedMessagePayload
  • added property taxedPricePortions to type OrderLineItemDiscountSetMessagePayload
  • added property shippingKey to type ParcelAddedToDeliveryMessagePayload
  • added property shippingKey to type ParcelItemsUpdatedMessagePayload
  • added property shippingKey to type ParcelMeasurementsUpdatedMessagePayload
  • added property shippingKey to type ParcelRemovedFromDeliveryMessagePayload
  • added property shippingKey to type ParcelTrackingDataUpdatedMessagePayload
  • added property quote to type QuoteCreatedMessagePayload
  • added property quoteRequest to type QuoteRequestCreatedMessagePayload
  • added property stagedQuote to type StagedQuoteCreatedMessagePayload
  • added property staged to type StandalonePriceValueChangedMessagePayload
  • added property businessUnit to type StagedOrder
  • added property taxedShippingPrice to type StagedOrder
  • added property shippingMode to type StagedOrder
  • added property shipping to type StagedOrder
  • added property priceMode to type StagedOrderAddCustomLineItemAction
  • added property priceMode to type CustomLineItemImportDraft
  • added property inventoryMode to type LineItemImportDraft
  • added property businessUnit to type Order
  • added property taxedShippingPrice to type Order
  • added property shippingMode to type Order
  • added property shipping to type Order
  • added property quoteStateToAccepted to type OrderFromQuoteDraft
  • added property businessUnit to type OrderImportDraft
  • added property shippingKey to type OrderAddDeliveryAction
  • added property /[0-9].[0-9]*[1-9]/ to type CategoryOrderHints
  • added property id to type ProductVariantChannelAvailability
  • added property version to type ProductVariantChannelAvailability
  • added property businessUnits to type Project
  • added property state to type QuoteRequest
  • added property businessUnit to type QuoteRequest
  • added property state to type QuoteRequestDraft
  • added property buyerComment to type Quote
  • added property state to type Quote
  • added property businessUnit to type Quote
  • added property stagedQuoteStateToSent to type QuoteDraft
  • added property state to type QuoteDraft
  • added property state to type StagedQuote
  • added property businessUnit to type StagedQuote
  • added property quoteRequestStateToAccepted to type StagedQuoteDraft
  • added property state to type StagedQuoteDraft
  • added property staged to type StandalonePrice
  • added property active to type StandalonePrice
  • added property active to type StandalonePriceDraft
  • added property staged to type StandalonePriceChangeValueAction
  • added property authenticationMode to type SnsDestination
  • added property authenticationMode to type SqsDestination
Removed Property(s)
  • ⚠️ removed property name from type ProductSelectionDeletedMessage (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/message/ProductSelectionDeletedMessage.raml:6:2)
  • ⚠️ removed property name from type ProductSelectionDeletedMessagePayload (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/message/payload/ProductSelectionDeletedMessagePayload.raml:6:2)
Changed Property(s)
  • changed property edit of type OrderEditAppliedMessage from type OrderEditReference to OrderEdit
  • changed property newTotalPrice of type OrderLineItemRemovedMessage from type TypedMoney to CentPrecisionMoney
  • changed property productSelection of type ProductSelectionCreatedMessage from type ProductSelectionType to IndividualProductSelectionType
  • changed property edit of type OrderEditAppliedMessagePayload from type OrderEditReference to OrderEdit
  • changed property newTotalPrice of type OrderLineItemRemovedMessagePayload from type TypedMoney to CentPrecisionMoney
  • changed property productSelection of type ProductSelectionCreatedMessagePayload from type ProductSelectionType to IndividualProductSelectionType
  • changed property sort of type OrderSearchRequest from type OrderSearchSorting to OrderSearchSorting[]
Added Type(s)
  • added type Associate
  • added type AssociateDraft
  • added type AssociateRole
  • added type BusinessUnit
  • added type BusinessUnitDraft
  • added type BusinessUnitKeyReference
  • added type BusinessUnitPagedQueryResponse
  • added type BusinessUnitReference
  • added type BusinessUnitResourceIdentifier
  • added type BusinessUnitStatus
  • added type BusinessUnitStoreMode
  • added type BusinessUnitType
  • added type BusinessUnitUpdate
  • added type BusinessUnitUpdateAction
  • added type Company
  • added type CompanyDraft
  • added type Division
  • added type DivisionDraft
  • added type BusinessUnitAddAddressAction
  • added type BusinessUnitAddAssociateAction
  • added type BusinessUnitAddBillingAddressIdAction
  • added type BusinessUnitAddShippingAddressIdAction
  • added type BusinessUnitAddStoreAction
  • added type BusinessUnitChangeAddressAction
  • added type BusinessUnitChangeAssociateAction
  • added type BusinessUnitChangeNameAction
  • added type BusinessUnitChangeParentUnitAction
  • added type BusinessUnitChangeStatusAction
  • added type BusinessUnitRemoveAddressAction
  • added type BusinessUnitRemoveAssociateAction
  • added type BusinessUnitRemoveBillingAddressIdAction
  • added type BusinessUnitRemoveShippingAddressIdAction
  • added type BusinessUnitRemoveStoreAction
  • added type BusinessUnitSetAddressCustomFieldAction
  • added type BusinessUnitSetAddressCustomTypeAction
  • added type BusinessUnitSetAssociatesAction
  • added type BusinessUnitSetContactEmailAction
  • added type BusinessUnitSetCustomFieldAction
  • added type BusinessUnitSetCustomTypeAction
  • added type BusinessUnitSetDefaultBillingAddressAction
  • added type BusinessUnitSetDefaultShippingAddressAction
  • added type BusinessUnitSetStoreModeAction
  • added type BusinessUnitSetStoresAction
  • added type CustomLineItemPriceMode
  • added type CustomShippingDraft
  • added type MethodTaxRate
  • added type MethodTaxedPrice
  • added type Shipping
  • added type ShippingDraft
  • added type ShippingMode
  • added type CartAddCustomShippingMethodAction
  • added type CartAddShippingMethodAction
  • added type CartChangeCustomLineItemPriceModeAction
  • added type CartRemoveShippingMethodAction
  • added type CartSetShippingCustomFieldAction
  • added type CartSetShippingCustomTypeAction
  • added type MyCustomerEmailVerify
  • added type MyBusinessUnitAssociateDraft
  • added type MyBusinessUnitDraft
  • added type MyBusinessUnitUpdate
  • added type MyBusinessUnitUpdateAction
  • added type MyCompanyDraft
  • added type MyDivisionDraft
  • added type MyQuoteState
  • added type MyQuoteUpdate
  • added type MyQuoteUpdateAction
  • added type MyBusinessUnitAddAddressAction
  • added type MyBusinessUnitAddBillingAddressIdAction
  • added type MyBusinessUnitAddShippingAddressIdAction
  • added type `MyBusinessUnitChangeAddre...
Read more

6.0.2

31 Aug 07:59
b13230f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.0.1...6.0.2

6.0.1

04 Jul 11:32
2bd45e9
Compare
Choose a tag to compare

What's Changed

  • Update generated SDKs by @github-actions in #86
  • add missing features mentioned in 6.0.0

Full Changelog: 6.0.0...6.0.1

6.0.0

04 Jul 09:16
0f563d3
Compare
Choose a tag to compare

What's Changed

  • Update generated SDKs by @github-actions in #78
  • fix default cache by @jenschude in #80
  • Update generated SDKs by @github-actions in #81
  • Update generated SDKs by @github-actions in #82
  • Update generated SDKs by @github-actions in #84

Features

  • support in store product selections
  • support quotes
  • support DirectDiscounts for carts
  • support condition field for extension triggers
  • support standalone pricing

Fixes

  • fixed type of property score in CartScoreTier to int (was float)
  • fix type request/response type for my customer email confirm endpoints

Breaking changes

  • removed deprecated import sink endpoints and models from Import API SDK
  • removed non existing endpoint in store product projections query

Full Changelog: 5.0.0...6.0.0

5.0.1

02 Jun 20:24
5fec04c
Compare
Choose a tag to compare
  • fix instantiating the default cache

Full Changelog: 5.0.0...5.0.1