payrex-node 1.0.0 → 1.0.2

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.2] - 2025-02-03
4
+
5
+ - billing_details_collection support for PayRex Checkout.
6
+
7
+ ## [1.0.1] - 2024-10-02
8
+
9
+ - Add send billing statement via email endpoint.
10
+
3
11
  ## [1.0.0] - 2024-09-04
4
12
 
5
13
  - Add billing statement endpoints
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payrex-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "PayRex Node JS Library",
5
5
  "keywords": [
6
6
  "payrex",
@@ -3,6 +3,7 @@ function CheckoutSessionEntity(apiResource) {
3
3
 
4
4
  this.id = data.id;
5
5
  this.customerReferenceId = data.customer_reference_id;
6
+ this.billingDetailsCollection = data.billing_details_collection;
6
7
  this.clientSecret = data.client_secret;
7
8
  this.status = data.status;
8
9
  this.currency = data.currency;
@@ -75,6 +75,15 @@ BillingStatementService.prototype.finalize = function (id) {
75
75
  });
76
76
  };
77
77
 
78
+ BillingStatementService.prototype.send = function (id) {
79
+ return this.request({
80
+ path: `${this.path}/${id}/send`,
81
+ method: 'post',
82
+ }).then(function () {
83
+ return null;
84
+ });
85
+ };
86
+
78
87
  BillingStatementService.prototype.void = function (id) {
79
88
  return this.request({
80
89
  path: `${this.path}/${id}/void`,