lago-javascript-client 1.52.1 → 1.53.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/esm/openapi/client.d.ts +541 -325
- package/esm/openapi/client.js +21 -5
- package/esm/openapi/webhooks.d.ts +1256 -421
- package/package.json +1 -1
- package/script/openapi/client.d.ts +541 -325
- package/script/openapi/client.js +21 -5
- package/script/openapi/webhooks.d.ts +1256 -421
package/script/openapi/client.js
CHANGED
|
@@ -160,7 +160,7 @@ class HttpClient {
|
|
|
160
160
|
exports.HttpClient = HttpClient;
|
|
161
161
|
/**
|
|
162
162
|
* @title Lago API documentation
|
|
163
|
-
* @version 1.
|
|
163
|
+
* @version 1.53.0
|
|
164
164
|
* @license AGPLv3 (https://github.com/getlago/lago-openapi/blob/main/LICENSE)
|
|
165
165
|
* @baseUrl https://api.getlago.com/api/v1
|
|
166
166
|
* @externalDocs https://github.com/getlago
|
|
@@ -1259,7 +1259,7 @@ class Api extends HttpClient {
|
|
|
1259
1259
|
...params,
|
|
1260
1260
|
}),
|
|
1261
1261
|
/**
|
|
1262
|
-
* @description This endpoint is used to update an existing wallet with prepaid credits.
|
|
1262
|
+
* @description This endpoint is used to update an existing wallet with prepaid credits. A terminated wallet cannot be updated and returns a `422` error.
|
|
1263
1263
|
*
|
|
1264
1264
|
* @tags wallets
|
|
1265
1265
|
* @name UpdateCustomerWallet
|
|
@@ -1719,7 +1719,7 @@ class Api extends HttpClient {
|
|
|
1719
1719
|
};
|
|
1720
1720
|
fees = {
|
|
1721
1721
|
/**
|
|
1722
|
-
* @description This endpoint is used for retrieving all fees that
|
|
1722
|
+
* @description This endpoint is used for retrieving all fees that have been issued.
|
|
1723
1723
|
*
|
|
1724
1724
|
* @tags fees
|
|
1725
1725
|
* @name FindAllFees
|
|
@@ -1823,7 +1823,7 @@ class Api extends HttpClient {
|
|
|
1823
1823
|
...params,
|
|
1824
1824
|
}),
|
|
1825
1825
|
/**
|
|
1826
|
-
* @description This endpoint is used for updating an existing invoice.
|
|
1826
|
+
* @description This endpoint is used for updating an existing invoice. A voided invoice cannot be updated and returns a `405` error.
|
|
1827
1827
|
*
|
|
1828
1828
|
* @tags invoices
|
|
1829
1829
|
* @name UpdateInvoice
|
|
@@ -2145,6 +2145,22 @@ class Api extends HttpClient {
|
|
|
2145
2145
|
}),
|
|
2146
2146
|
};
|
|
2147
2147
|
organizations = {
|
|
2148
|
+
/**
|
|
2149
|
+
* @description This endpoint retrieves your own organization's settings.
|
|
2150
|
+
*
|
|
2151
|
+
* @tags organizations
|
|
2152
|
+
* @name FindOrganization
|
|
2153
|
+
* @summary Retrieve your organization
|
|
2154
|
+
* @request GET:/organizations
|
|
2155
|
+
* @secure
|
|
2156
|
+
*/
|
|
2157
|
+
findOrganization: (params = {}) => this.request({
|
|
2158
|
+
path: `/organizations`,
|
|
2159
|
+
method: "GET",
|
|
2160
|
+
secure: true,
|
|
2161
|
+
format: "json",
|
|
2162
|
+
...params,
|
|
2163
|
+
}),
|
|
2148
2164
|
/**
|
|
2149
2165
|
* @description This endpoint is used to update your own organization's settings.
|
|
2150
2166
|
*
|
|
@@ -3559,7 +3575,7 @@ class Api extends HttpClient {
|
|
|
3559
3575
|
...params,
|
|
3560
3576
|
}),
|
|
3561
3577
|
/**
|
|
3562
|
-
* @description This endpoint is used to update an existing wallet with prepaid credits.
|
|
3578
|
+
* @description This endpoint is used to update an existing wallet with prepaid credits. A terminated wallet cannot be updated and returns a `422` error.
|
|
3563
3579
|
*
|
|
3564
3580
|
* @tags wallets
|
|
3565
3581
|
* @name UpdateWallet
|