Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

v1.0.0-RC7

Choose a tag to compare

@jenschude jenschude released this 06 Jan 13:57
· 1752 commits to main since this release

Bug Fixes

  • Cart: add corrected cart discount fields (b0bf1b7)
  • LocalizedString: fix array conversion of locales for LocalizedString (ea50790)
  • PaymentInfo correct class path (a9501fc)

Features

  • JsonObject: recurse toArray method to child objects (feb3729)

BREAKING CHANGES

  • discountedPrice at LineItems has been removed

    The discountedPrice field has been deprecated at the API and therefor was removed from the SDK.

    Before:

    $lineItem->getDiscountedPrice();
    $discountedCentAmount = $lineItem->getDiscountedPrice()->getValue()->getCentAmount();
    

    After:

    $lineItem->getDiscountedPricePerQuantity();
    $discountedCentAmount = 0;
    foreach ($lineItem->getDiscountedPricePerQuantity() as $discountedPricePerQuantity) {
      $discountedCentAmount += $discountedPricePerQuantity()->getQuantity() *
        $discountedPricePerQuantity->getDiscountedPrice()->getValue()->getCentAmount();
    }
    

    (b0bf1b7)