lago-javascript-client 1.52.1 → 1.54.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 +715 -418
- package/esm/openapi/client.js +24 -7
- package/esm/openapi/webhooks.d.ts +1348 -458
- package/package.json +1 -1
- package/script/openapi/client.d.ts +715 -418
- package/script/openapi/client.js +24 -7
- package/script/openapi/webhooks.d.ts +1348 -458
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.54.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
|
|
@@ -1385,9 +1385,10 @@ class Api extends HttpClient {
|
|
|
1385
1385
|
* @request GET:/customers/{external_customer_id}/wallets/{wallet_code}/alerts
|
|
1386
1386
|
* @secure
|
|
1387
1387
|
*/
|
|
1388
|
-
getCustomerWalletAlerts: (externalCustomerId, walletCode, params = {}) => this.request({
|
|
1388
|
+
getCustomerWalletAlerts: (externalCustomerId, walletCode, query, params = {}) => this.request({
|
|
1389
1389
|
path: `/customers/${externalCustomerId}/wallets/${walletCode}/alerts`,
|
|
1390
1390
|
method: "GET",
|
|
1391
|
+
query: query,
|
|
1391
1392
|
secure: true,
|
|
1392
1393
|
format: "json",
|
|
1393
1394
|
...params,
|
|
@@ -1560,7 +1561,7 @@ class Api extends HttpClient {
|
|
|
1560
1561
|
...params,
|
|
1561
1562
|
}),
|
|
1562
1563
|
/**
|
|
1563
|
-
* @description
|
|
1564
|
+
* @description This endpoint sets a payment method as the customer's default one. It is the payment method Lago uses when a payment is triggered without an explicit one. Any other default payment method of the customer is unset.
|
|
1564
1565
|
*
|
|
1565
1566
|
* @tags payment_methods
|
|
1566
1567
|
* @name PaymentMethodSetAsDefault
|
|
@@ -1719,7 +1720,7 @@ class Api extends HttpClient {
|
|
|
1719
1720
|
};
|
|
1720
1721
|
fees = {
|
|
1721
1722
|
/**
|
|
1722
|
-
* @description This endpoint is used for retrieving all fees that
|
|
1723
|
+
* @description This endpoint is used for retrieving all fees that have been issued.
|
|
1723
1724
|
*
|
|
1724
1725
|
* @tags fees
|
|
1725
1726
|
* @name FindAllFees
|
|
@@ -1823,7 +1824,7 @@ class Api extends HttpClient {
|
|
|
1823
1824
|
...params,
|
|
1824
1825
|
}),
|
|
1825
1826
|
/**
|
|
1826
|
-
* @description This endpoint is used for updating an existing invoice.
|
|
1827
|
+
* @description This endpoint is used for updating an existing invoice. A voided invoice cannot be updated and returns a `405` error.
|
|
1827
1828
|
*
|
|
1828
1829
|
* @tags invoices
|
|
1829
1830
|
* @name UpdateInvoice
|
|
@@ -2145,6 +2146,22 @@ class Api extends HttpClient {
|
|
|
2145
2146
|
}),
|
|
2146
2147
|
};
|
|
2147
2148
|
organizations = {
|
|
2149
|
+
/**
|
|
2150
|
+
* @description This endpoint retrieves your own organization's settings.
|
|
2151
|
+
*
|
|
2152
|
+
* @tags organizations
|
|
2153
|
+
* @name FindOrganization
|
|
2154
|
+
* @summary Retrieve your organization
|
|
2155
|
+
* @request GET:/organizations
|
|
2156
|
+
* @secure
|
|
2157
|
+
*/
|
|
2158
|
+
findOrganization: (params = {}) => this.request({
|
|
2159
|
+
path: `/organizations`,
|
|
2160
|
+
method: "GET",
|
|
2161
|
+
secure: true,
|
|
2162
|
+
format: "json",
|
|
2163
|
+
...params,
|
|
2164
|
+
}),
|
|
2148
2165
|
/**
|
|
2149
2166
|
* @description This endpoint is used to update your own organization's settings.
|
|
2150
2167
|
*
|
|
@@ -3559,7 +3576,7 @@ class Api extends HttpClient {
|
|
|
3559
3576
|
...params,
|
|
3560
3577
|
}),
|
|
3561
3578
|
/**
|
|
3562
|
-
* @description This endpoint is used to update an existing wallet with prepaid credits.
|
|
3579
|
+
* @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
3580
|
*
|
|
3564
3581
|
* @tags wallets
|
|
3565
3582
|
* @name UpdateWallet
|