bkper-js 2.43.3 → 2.44.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/lib/index.d.ts CHANGED
@@ -1340,6 +1340,18 @@ export declare class Billing extends Resource<bkper.Billing> {
1340
1340
  * @returns The number of total transactions this year
1341
1341
  */
1342
1342
  getTotalTransactionsThisYear(): number | undefined;
1343
+ /**
1344
+ * Gets the authoritative rolling monthly average of posted transactions.
1345
+ *
1346
+ * @returns The transaction average, or undefined when unavailable for the current plan
1347
+ */
1348
+ getTransactionsAverage(): number | undefined;
1349
+ /**
1350
+ * Gets the confirmed average monthly transaction capacity.
1351
+ *
1352
+ * @returns The transaction capacity, or undefined when unavailable for the current plan
1353
+ */
1354
+ getTransactionsCapacity(): number | undefined;
1343
1355
  /**
1344
1356
  * Gets the transaction counts associated to the User's billing account.
1345
1357
  *
@@ -106,6 +106,22 @@ export class Billing extends Resource {
106
106
  getTotalTransactionsThisYear() {
107
107
  return this.payload.totalTransactionsThisYear;
108
108
  }
109
+ /**
110
+ * Gets the authoritative rolling monthly average of posted transactions.
111
+ *
112
+ * @returns The transaction average, or undefined when unavailable for the current plan
113
+ */
114
+ getTransactionsAverage() {
115
+ return this.payload.transactionsAverage;
116
+ }
117
+ /**
118
+ * Gets the confirmed average monthly transaction capacity.
119
+ *
120
+ * @returns The transaction capacity, or undefined when unavailable for the current plan
121
+ */
122
+ getTransactionsCapacity() {
123
+ return this.payload.transactionsCapacity;
124
+ }
109
125
  /**
110
126
  * Gets the transaction counts associated to the User's billing account.
111
127
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "2.43.3",
3
+ "version": "2.44.0",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -38,7 +38,7 @@
38
38
  "release:major": "npm version major -m \"chore(release): v%s\""
39
39
  },
40
40
  "dependencies": {
41
- "@bkper/bkper-api-types": "^5.44.0",
41
+ "@bkper/bkper-api-types": "^5.44.1",
42
42
  "big.js": "^6.0.3",
43
43
  "dayjs": "^1.10.3",
44
44
  "luxon": "^1.25.0",