Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add initial charge to recurring element

  • Loading branch information...
commit 3f943ccd9e0fdaa988fd623aefa3e8d59e58118d 1 parent f2a743f
Richard Shank iampersistent authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/ImmersiveLabs/Pricing/Entity/Element/RecurringElement.php
13 lib/ImmersiveLabs/Pricing/Entity/Element/RecurringElement.php
View
@@ -9,6 +9,7 @@ class RecurringElement extends PricingElement
public function __construct()
{
$attribute['cycles'] = '';
+ $attribute['initialCharge'] = '';
$attribute['interval'] = '';
$attribute['startsIn'] = null;
@@ -27,6 +28,18 @@ public function getCycles()
return $this->attributes['cycles'];
}
+ public function setInitialCharge($initialCharge)
+ {
+ $this->attributes['initialCharge'] = $initialCharge;
+
+ return $this;
+ }
+
+ public function getInitialCharge()
+ {
+ return $this->attributes['initialCharge'];
+ }
+
public function setInterval($interval)
{
$this->attributes['interval'] = $interval;
Please sign in to comment.
Something went wrong with that request. Please try again.