give
/
src
/
Framework
/
PaymentGateways
/
Contracts
/
Subscription
/
SubscriptionAmountEditable.php
SubscriptionAmountEditable.php
4 years ago
SubscriptionDashboardLinkable.php
4 years ago
SubscriptionPausable.php
1 year ago
SubscriptionPaymentMethodEditable.php
3 years ago
SubscriptionTransactionsSynchronizable.php
4 years ago
SubscriptionAmountEditable.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\PaymentGateways\Contracts\Subscription; |
| 4 | |
| 5 | use Give\Framework\Support\ValueObjects\Money; |
| 6 | use Give\Subscriptions\Models\Subscription; |
| 7 | |
| 8 | /** |
| 9 | * @since 2.20.0 |
| 10 | */ |
| 11 | interface SubscriptionAmountEditable |
| 12 | { |
| 13 | /** |
| 14 | * Update subscription amount. |
| 15 | * |
| 16 | * @since 2.21.2 Add second argument to specify the new amount. |
| 17 | * @since 2.20.0 |
| 18 | */ |
| 19 | public function updateSubscriptionAmount(Subscription $subscription, Money $newRenewalAmount); |
| 20 | } |
| 21 |