Skip to content

Commit

Permalink
add afiliate_name for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha committed Feb 19, 2019
1 parent ea16ae8 commit b1ba682
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions src/API2Client/Entities/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,29 @@ class Subscription
*/
private $customer_local_time;

/**
* @var string
*/
private $affiliate_name;

/**
* @return string
*/
public function getAffiliateName()
{
return $this->affiliate_name;
}

/**
* @param string $affiliate_name
* @return $this
*/
public function setAffiliateName($affiliate_name)
{
$this->affiliate_name = $affiliate_name;
return $this;
}

/**
* @return array
*/
Expand Down Expand Up @@ -583,6 +606,7 @@ public function toArray ()
'customer_user_agent' => $this->getCustomerUserAgent(),
'customer_ip_address' => $this->getCustomerIpAddress(),
'customer_local_time' => $this->getCustomerLocalTime(),
'affiliate_name' => $this->getAffiliateName(),
);
}
}
3 changes: 2 additions & 1 deletion src/API2Client/Setters/SubscriptionResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ private function createSubscriptionObject ($dataSubscription)
->setCustomerZip ($this->getValue ('customer_zip', $dataSubscription, ''))
->setCustomerUserAgent($this->getValue ('customer_user_agent', $dataSubscription, ''))
->setCustomerIpAddress($this->getValue ('customer_ip_address', $dataSubscription, ''))
->setCustomerLocalTime ($this->getValue ('customer_local_time', $dataSubscription, ''));
->setCustomerLocalTime ($this->getValue ('customer_local_time', $dataSubscription, ''))
->setAffiliateName($this->getValue ('affiliate_name', $dataSubscription, ''));
}
}

0 comments on commit b1ba682

Please sign in to comment.