<commit_before><?php

namespace PureBilling\Bundle\SDKBundle\Store\V1\Charge;

use PureBilling\Bundle\SDKBundle\Store\Base\Element;
use Symfony\Component\Validator\Constraints as Assert;
use PureBilling\Bundle\SDKBundle\Constraints as PBAssert;
use PureMachine\Bundle\SDKBundle\Store\Annotation as Store;

class PaymentForm extends Element
{
    /**
     * @Store\Property(description="Charge token (to send to pb.js)")
     * @PBAssert\Type(type="id", idPrefixes={"chargetoken"})
     * @Assert\NotBlank()
     */
    protected $chargeToken;

    /**
     * @Store\Property(description="Offsite payment form URL. Defined only if merchantCallback is set")
     * @Assert\Type("string")
     */
    protected $redirectUrl;
}<commit_msg>Allow chargeToken to be null un paymentForm<commit_after><?php

namespace PureBilling\Bundle\SDKBundle\Store\V1\Charge;

use PureBilling\Bundle\SDKBundle\Store\Base\Element;
use Symfony\Component\Validator\Constraints as Assert;
use PureBilling\Bundle\SDKBundle\Constraints as PBAssert;
use PureMachine\Bundle\SDKBundle\Store\Annotation as Store;

class PaymentForm extends Element
{
    /**
     * @Store\Property(description="Charge token (to send to pb.js). Null if merchant callback is defined.")
     * @PBAssert\Type(type="id", idPrefixes={"chargetoken"})
     */
    protected $chargeToken;

    /**
     * @Store\Property(description="Offsite payment form URL. Defined only if merchantCallback is set")
     * @Assert\Type("string")
     */
    protected $redirectUrl;
}
{'fraction_non_alphanumeric': 0.11962987442167879, 'fraction_numerical': 0.0013218770654329147, 'mean_word_length': 4.2387543252595155, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6100310', 'n_tokens_mistral': 463, 'n_tokens_neox': 451, 'n_words': 101}