payrex-node 0.1.6 → 0.1.7

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.7] - 2024-07-30
4
+
5
+ - Add amount_capturable and amount_received for hold then capture partial amount support.
6
+
3
7
  ## [0.1.6] - 2024-07-24
4
8
 
5
9
  - Adjust building of parameter query due to changes in checkout session endpoints.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payrex-node",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "PayRex Node JS Library",
5
5
  "keywords": [
6
6
  "payrex",
@@ -3,6 +3,8 @@ function PaymentIntentEntity(apiResource) {
3
3
 
4
4
  this.id = data.id;
5
5
  this.amount = data.amount;
6
+ this.amountReceived = data.amount_received;
7
+ this.amountCapturable = data.amount_capturable;
6
8
  this.clientSecret = data.client_secret;
7
9
  this.currency = data.currency;
8
10
  this.description = data.description;