You are here

public function BillingScheduleInterface::generateNextBillingPeriod in Commerce Recurring Framework 8

Generates the next billing period.

Parameters

\Drupal\Core\Datetime\DrupalDateTime $start_date: The billing start date/time.

\Drupal\commerce_recurring\BillingPeriod $billing_period: The current billing period.

Return value

\Drupal\commerce_recurring\BillingPeriod The billing period.

2 methods override BillingScheduleInterface::generateNextBillingPeriod()
Fixed::generateNextBillingPeriod in src/Plugin/Commerce/BillingSchedule/Fixed.php
Generates the next billing period.
Rolling::generateNextBillingPeriod in src/Plugin/Commerce/BillingSchedule/Rolling.php
Generates the next billing period.

File

src/Plugin/Commerce/BillingSchedule/BillingScheduleInterface.php, line 71

Class

BillingScheduleInterface
Provides the interface for billing schedules.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\BillingSchedule

Code

public function generateNextBillingPeriod(DrupalDateTime $start_date, BillingPeriod $billing_period);