Skip to content

Commit b9fd729

Browse files
LI-93872 - Update change log
1 parent c12e12f commit b9fd729

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ChangeLog
33
2.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

88
2.2.5
99
-------------------

src/Hyperwallet/Model/Payment.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)