Permalink
Browse files

added payment profile and linked partner to it

  • Loading branch information...
1 parent 9e9eaab commit c27203ffa98debcc5159f9bf740baddcb1e01a7a @theodorDiaconu theodorDiaconu committed with iampersistent Jan 24, 2013
Showing with 48 additions and 0 deletions.
  1. +13 −0 lib/Vespolina/Entity/Partner/Partner.php
  2. +35 −0 lib/Vespolina/Entity/Partner/PaymentProfile.php
@@ -39,6 +39,7 @@ class Partner implements PartnerInterface
protected $roles;
protected $type;
protected $payByCreditCard = true;
+ protected $paymentProfile;
public function __construct()
{
@@ -50,6 +51,18 @@ public function getId()
return $this->id;
}
+ public function setPaymentProfile($paymentProfile)
+ {
+ $this->paymentProfile = $paymentProfile;
+
+ return $this;
+ }
+
+ public function getPaymentProfile()
+ {
+ return $this->paymentProfile;
+ }
+
/**
* @inheritdoc
*/
@@ -0,0 +1,35 @@
+<?php
+
+namespace Vespolina\Entity\Partner;
+
+class PaymentProfile
+{
+ protected $id;
+ protected $reference;
+ protected $last4digits;
+
+ public function getId()
+ {
+ return $this->id;
+ }
+
+ public function setLast4digits($last4digits)
+ {
+ $this->last4digits = $last4digits;
+ }
+
+ public function getLast4digits()
+ {
+ return $this->last4digits;
+ }
+
+ public function setReference($reference)
+ {
+ $this->reference = $reference;
+ }
+
+ public function getReference()
+ {
+ return $this->reference;
+ }
+}

0 comments on commit c27203f

Please sign in to comment.