Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

addition information for the BillingAgreement

  • Loading branch information...
commit b0ccb030438869f1b22c25703f8de1c3b18257f4 1 parent dde0c91
@iampersistent iampersistent authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 lib/Vespolina/Entity/Billing/BillingAgreement.php
View
26 lib/Vespolina/Entity/Billing/BillingAgreement.php
@@ -10,9 +10,11 @@ class BillingAgreement implements BillingAgreementInterface
protected $billingCycles;
protected $billingInterval;
protected $initialBillingDate;
+ protected $nextBillingDate;
protected $order;
protected $partner;
protected $paymentGateway;
+ protected $totalCycles;
public function setBillingAmount($billingAmount)
{
@@ -62,6 +64,18 @@ public function getInitialBillingDate()
return $this->initialBillingDate;
}
+ public function setNextBillingDate(\DateTime $nextBillingDate)
+ {
+ $this->nextBillingDate = $nextBillingDate;
+
+ return $this;
+ }
+
+ public function getNextBillingDate()
+ {
+ return $this->nextBillingDate;
+ }
+
public function setOrder(OrderInterface $order)
{
$this->order = $order;
@@ -97,4 +111,16 @@ public function getPaymentGateway()
{
return $this->paymentGateway;
}
+
+ public function setTotalCycles($totalCycles)
+ {
+ $this->totalCycles = $totalCycles;
+
+ return $this;
+ }
+
+ public function getTotalCycles()
+ {
+ return $this->totalCycles;
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.