File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,29 @@ class Subscription
128
128
*/
129
129
private $ customer_local_time ;
130
130
131
+ /**
132
+ * @var string
133
+ */
134
+ private $ affiliate_name ;
135
+
136
+ /**
137
+ * @return string
138
+ */
139
+ public function getAffiliateName ()
140
+ {
141
+ return $ this ->affiliate_name ;
142
+ }
143
+
144
+ /**
145
+ * @param string $affiliate_name
146
+ * @return $this
147
+ */
148
+ public function setAffiliateName ($ affiliate_name )
149
+ {
150
+ $ this ->affiliate_name = $ affiliate_name ;
151
+ return $ this ;
152
+ }
153
+
131
154
/**
132
155
* @return array
133
156
*/
@@ -583,6 +606,7 @@ public function toArray ()
583
606
'customer_user_agent ' => $ this ->getCustomerUserAgent (),
584
607
'customer_ip_address ' => $ this ->getCustomerIpAddress (),
585
608
'customer_local_time ' => $ this ->getCustomerLocalTime (),
609
+ 'affiliate_name ' => $ this ->getAffiliateName (),
586
610
);
587
611
}
588
612
}
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ private function createSubscriptionObject ($dataSubscription)
82
82
->setCustomerZip ($ this ->getValue ('customer_zip ' , $ dataSubscription , '' ))
83
83
->setCustomerUserAgent ($ this ->getValue ('customer_user_agent ' , $ dataSubscription , '' ))
84
84
->setCustomerIpAddress ($ this ->getValue ('customer_ip_address ' , $ dataSubscription , '' ))
85
- ->setCustomerLocalTime ($ this ->getValue ('customer_local_time ' , $ dataSubscription , '' ));
85
+ ->setCustomerLocalTime ($ this ->getValue ('customer_local_time ' , $ dataSubscription , '' ))
86
+ ->setAffiliateName ($ this ->getValue ('affiliate_name ' , $ dataSubscription , '' ));
86
87
}
87
88
}
You can’t perform that action at this time.
0 commit comments