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/esm/openapi/client.js
CHANGED
|
@@ -156,7 +156,7 @@ export class HttpClient {
|
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
158
|
* @title Lago API documentation
|
|
159
|
-
* @version 1.
|
|
159
|
+
* @version 1.54.0
|
|
160
160
|
* @license AGPLv3 (https://github.com/getlago/lago-openapi/blob/main/LICENSE)
|
|
161
161
|
* @baseUrl https://api.getlago.com/api/v1
|
|
162
162
|
* @externalDocs https://github.com/getlago
|
|
@@ -1255,7 +1255,7 @@ export class Api extends HttpClient {
|
|
|
1255
1255
|
...params,
|
|
1256
1256
|
}),
|
|
1257
1257
|
/**
|
|
1258
|
-
* @description This endpoint is used to update an existing wallet with prepaid credits.
|
|
1258
|
+
* @description This endpoint is used to update an existing wallet with prepaid credits. A terminated wallet cannot be updated and returns a `422` error.
|
|
1259
1259
|
*
|
|
1260
1260
|
* @tags wallets
|
|
1261
1261
|
* @name UpdateCustomerWallet
|
|
@@ -1381,9 +1381,10 @@ export class Api extends HttpClient {
|
|
|
1381
1381
|
* @request GET:/customers/{external_customer_id}/wallets/{wallet_code}/alerts
|
|
1382
1382
|
* @secure
|
|
1383
1383
|
*/
|
|
1384
|
-
getCustomerWalletAlerts: (externalCustomerId, walletCode, params = {}) => this.request({
|
|
1384
|
+
getCustomerWalletAlerts: (externalCustomerId, walletCode, query, params = {}) => this.request({
|
|
1385
1385
|
path: `/customers/${externalCustomerId}/wallets/${walletCode}/alerts`,
|
|
1386
1386
|
method: "GET",
|
|
1387
|
+
query: query,
|
|
1387
1388
|
secure: true,
|
|
1388
1389
|
format: "json",
|
|
1389
1390
|
...params,
|
|
@@ -1556,7 +1557,7 @@ export class Api extends HttpClient {
|
|
|
1556
1557
|
...params,
|
|
1557
1558
|
}),
|
|
1558
1559
|
/**
|
|
1559
|
-
* @description
|
|
1560
|
+
* @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.
|
|
1560
1561
|
*
|
|
1561
1562
|
* @tags payment_methods
|
|
1562
1563
|
* @name PaymentMethodSetAsDefault
|
|
@@ -1715,7 +1716,7 @@ export class Api extends HttpClient {
|
|
|
1715
1716
|
};
|
|
1716
1717
|
fees = {
|
|
1717
1718
|
/**
|
|
1718
|
-
* @description This endpoint is used for retrieving all fees that
|
|
1719
|
+
* @description This endpoint is used for retrieving all fees that have been issued.
|
|
1719
1720
|
*
|
|
1720
1721
|
* @tags fees
|
|
1721
1722
|
* @name FindAllFees
|
|
@@ -1819,7 +1820,7 @@ export class Api extends HttpClient {
|
|
|
1819
1820
|
...params,
|
|
1820
1821
|
}),
|
|
1821
1822
|
/**
|
|
1822
|
-
* @description This endpoint is used for updating an existing invoice.
|
|
1823
|
+
* @description This endpoint is used for updating an existing invoice. A voided invoice cannot be updated and returns a `405` error.
|
|
1823
1824
|
*
|
|
1824
1825
|
* @tags invoices
|
|
1825
1826
|
* @name UpdateInvoice
|
|
@@ -2141,6 +2142,22 @@ export class Api extends HttpClient {
|
|
|
2141
2142
|
}),
|
|
2142
2143
|
};
|
|
2143
2144
|
organizations = {
|
|
2145
|
+
/**
|
|
2146
|
+
* @description This endpoint retrieves your own organization's settings.
|
|
2147
|
+
*
|
|
2148
|
+
* @tags organizations
|
|
2149
|
+
* @name FindOrganization
|
|
2150
|
+
* @summary Retrieve your organization
|
|
2151
|
+
* @request GET:/organizations
|
|
2152
|
+
* @secure
|
|
2153
|
+
*/
|
|
2154
|
+
findOrganization: (params = {}) => this.request({
|
|
2155
|
+
path: `/organizations`,
|
|
2156
|
+
method: "GET",
|
|
2157
|
+
secure: true,
|
|
2158
|
+
format: "json",
|
|
2159
|
+
...params,
|
|
2160
|
+
}),
|
|
2144
2161
|
/**
|
|
2145
2162
|
* @description This endpoint is used to update your own organization's settings.
|
|
2146
2163
|
*
|
|
@@ -3555,7 +3572,7 @@ export class Api extends HttpClient {
|
|
|
3555
3572
|
...params,
|
|
3556
3573
|
}),
|
|
3557
3574
|
/**
|
|
3558
|
-
* @description This endpoint is used to update an existing wallet with prepaid credits.
|
|
3575
|
+
* @description This endpoint is used to update an existing wallet with prepaid credits. A terminated wallet cannot be updated and returns a `422` error.
|
|
3559
3576
|
*
|
|
3560
3577
|
* @tags wallets
|
|
3561
3578
|
* @name UpdateWallet
|