@izak0s/spacebring-api 3.6.0 → 4.0.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/dist/index.js CHANGED
@@ -2460,6 +2460,17 @@ function createTransactions(client, defaults) {
2460
2460
  "transactions"
2461
2461
  );
2462
2462
  },
2463
+ /**
2464
+ * Retrieve a credit transaction
2465
+ *
2466
+ * Retrieve a credits transaction.
2467
+ *
2468
+ * @param id The id of the transaction
2469
+ * @param options Request options (abort signal).
2470
+ */
2471
+ async get(id, options) {
2472
+ return unwrapProp(await client.GET("/transactions/credits/v1/{id}", { params: { path: { id } }, signal: options?.signal }), "transaction", "GET /transactions/credits/v1/{id}");
2473
+ },
2463
2474
  /**
2464
2475
  * Create a credit transaction
2465
2476
  *