← All changes
|
src/DonationForms/DataTransferObjects/DonateControllerData.php
+11
-0
4.16.3
→
4.17.0
View file →
| @@ -17,8 +17,12 @@ | ||
| 17 | 17 | use Give\Subscriptions\ValueObjects\SubscriptionMode; |
| 18 | 18 | use Give\Subscriptions\ValueObjects\SubscriptionPeriod; |
| 19 | 19 | use Give\Subscriptions\ValueObjects\SubscriptionStatus; |
| 20 | 20 | |
| 21 | +/** | |
| 22 | + * @since 4.17.0 Allow dynamic properties, since custom field values are assigned by name. | |
| 23 | + */ | |
| 24 | +#[\AllowDynamicProperties] | |
| 21 | 25 | class DonateControllerData |
| 22 | 26 | { |
| 23 | 27 | /** |
| 24 | 28 | * @var float |
| @@ -127,10 +131,15 @@ | ||
| 127 | 131 | /** |
| 128 | 132 | * @var string|null |
| 129 | 133 | */ |
| 130 | 134 | public $comment; |
| 135 | + /** | |
| 136 | + * @var string|null | |
| 137 | + */ | |
| 138 | + public $levelId; | |
| 131 | 139 | |
| 132 | 140 | /** |
| 141 | + * @since 4.16.5 Added levelId property | |
| 133 | 142 | * @since 3.9.0 Added phone property |
| 134 | 143 | * @since 3.2.0 added honorific property |
| 135 | 144 | * @since 3.0.0 |
| 136 | 145 | */ |
| @@ -154,8 +163,9 @@ | ||
| 154 | 163 | 'company' => $this->company, |
| 155 | 164 | 'comment' => $this->comment, |
| 156 | 165 | 'type' => DonationType::SINGLE(), |
| 157 | 166 | 'billingAddress' => $this->getBillingAddress(), |
| 167 | + 'levelId' => $this->levelId, | |
| 158 | 168 | ]); |
| 159 | 169 | } |
| 160 | 170 | |
| 161 | 171 | /** |
| @@ -182,8 +192,9 @@ | ||
| 182 | 192 | 'comment' => $this->comment, |
| 183 | 193 | 'type' => DonationType::SUBSCRIPTION(), |
| 184 | 194 | 'subscriptionId' => $subscriptionId, |
| 185 | 195 | 'billingAddress' => $this->getBillingAddress(), |
| 196 | + 'levelId' => $this->levelId, | |
| 186 | 197 | ]); |
| 187 | 198 | } |
| 188 | 199 | |
| 189 | 200 | /** |