File tree 1 file changed +25
-0
lines changed 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,27 @@ public function setEmail($value)
57
57
return $ this ->setParameter ('email ' , $ value );
58
58
}
59
59
60
+ /**
61
+ * Get the customer's source.
62
+ *
63
+ * @return string
64
+ */
65
+ public function getSource ()
66
+ {
67
+ return $ this ->getParameter ('source ' );
68
+ }
69
+
70
+ /**
71
+ * Sets the customer's source.
72
+ *
73
+ * @param string $value
74
+ * @return CreateCustomerRequest provides a fluent interface.
75
+ */
76
+ public function setSource ($ value )
77
+ {
78
+ $ this ->setParameter ('source ' , $ value );
79
+ }
80
+
60
81
public function getData ()
61
82
{
62
83
$ this ->validate ('customerReference ' );
@@ -77,6 +98,10 @@ public function getData()
77
98
$ data ['metadata ' ] = $ this ->getMetadata ();
78
99
}
79
100
101
+ if ($ this ->getSource ()) {
102
+ $ data ['source ' ] = $ this ->getSource ();
103
+ }
104
+
80
105
return $ data ;
81
106
}
82
107
You can’t perform that action at this time.
0 commit comments