payrex-node 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.0] - 2025-05-30
4
+ - Add update payment endpoint.
5
+
3
6
  ## [1.5.0] - 2025-05-30
4
7
 
5
8
  - Add list payout transactions endpoint.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payrex-node",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "PayRex Node JS Library",
5
5
  "keywords": [
6
6
  "payrex",
@@ -15,6 +15,16 @@ PaymentService.prototype.retrieve = function (id) {
15
15
  });
16
16
  };
17
17
 
18
+ PaymentService.prototype.update = function (id, payload) {
19
+ return this.request({
20
+ path: `${this.path}/${id}`,
21
+ payload: payload,
22
+ method: 'put',
23
+ }).then(function (response) {
24
+ return new PaymentEntity(response);
25
+ });
26
+ };
27
+
18
28
  Object.setPrototypeOf(PaymentService.prototype, BaseService.prototype);
19
29
 
20
30
  module.exports = PaymentService;