<commit_before><?php
/**
 * @author @jenschude <<EMAIL>>
 */

namespace Commercetools\Core\Model\ShippingMethod;

use Commercetools\Core\Model\Common\Money;

/**
 * @package Commercetools\Core\Model\ShippingMethod
 * @link https://docs.commercetools.com/http-api-projects-shippingMethods.html#shippingrate
 * @method Money getPrice()
 * @method ShippingRate setPrice(Money $price = null)
 * @method Money getFreeAbove()
 * @method ShippingRate setFreeAbove(Money $freeAbove = null)
 * @method bool getIsMatching()
 * @method ShippingRate setIsMatching(bool $isMatching = null)
 * @method Money getTiers()
 * @method ShippingRate setTiers(Money $tiers = null)
 */
class ShippingRate extends ShippingRateDraft
{
    public function fieldDefinitions()
    {
        $fields = parent::fieldDefinitions();
        $fields['tiers'] = [static::TYPE => Money::class];
        $fields['isMatching'] = [static::TYPE => 'bool', static::OPTIONAL => true];
        return $fields;
    }
}
<commit_msg>test(ShippingRate): fix type for ShippingRate tiers<commit_after><?php
/**
 * @author @jenschude <<EMAIL>>
 */

namespace Commercetools\Core\Model\ShippingMethod;

use Commercetools\Core\Model\Common\Money;

/**
 * @package Commercetools\Core\Model\ShippingMethod
 * @link https://docs.commercetools.com/http-api-projects-shippingMethods.html#shippingrate
 * @method Money getPrice()
 * @method ShippingRate setPrice(Money $price = null)
 * @method Money getFreeAbove()
 * @method ShippingRate setFreeAbove(Money $freeAbove = null)
 * @method bool getIsMatching()
 * @method ShippingRate setIsMatching(bool $isMatching = null)
 * @method ShippingRatePriceTierCollection getTiers()
 * @method ShippingRate setTiers(ShippingRatePriceTierCollection $tiers = null)
 */
class ShippingRate extends ShippingRateDraft
{
    public function fieldDefinitions()
    {
        $fields = parent::fieldDefinitions();
        $fields['tiers'] = [static::TYPE => ShippingRatePriceTierCollection::class];
        $fields['isMatching'] = [static::TYPE => 'bool', static::OPTIONAL => true];
        return $fields;
    }
}

{'fraction_non_alphanumeric': 0.13432122370936903, 'fraction_numerical': 0.0, 'mean_word_length': 4.879213483146067, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5892141', 'n_tokens_mistral': 665, 'n_tokens_neox': 636, 'n_words': 131}