File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ChangeLog
332.2.6
44-------------------
55- Added a new notes field to the Payment object, allowing users to include supplementary information or comments related to a payment.
6- - Removed the description field from the Payment object. Please use the new notes field in its place for all future implementations.
6+ - Deprecated the description field from the Payment object. Please use the new notes field in its place for all future implementations.
77
882.2.5
99-------------------
Original file line number Diff line number Diff line change @@ -157,6 +157,29 @@ public function setCurrency($currency) {
157157 return $ this ;
158158 }
159159
160+ /**
161+ * Retrieves the legacy payment description.
162+ *
163+ * @deprecated Use getNotes() instead.
164+ * @return string
165+ */
166+ public function getDescription () {
167+ return $ this ->notes ;
168+ }
169+
170+ /**
171+ * Set the payment description
172+
173+ * @deprecated Use setNotes(string $notes) instead.
174+ * @param string $description
175+ * @return Payment
176+ */
177+ public function setDescription ($ description ) {
178+ $ this ->description = $ description ;
179+ $ this ->notes = $ description ;
180+ return $ this ;
181+ }
182+
160183 /**
161184 * Get the payment notes
162185 *
You can’t perform that action at this time.
0 commit comments