lago-javascript-client 1.22.0 → 1.27.1
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 +4788 -4136
- package/esm/openapi/client.js +102 -1
- package/package.json +1 -1
- package/script/openapi/client.d.ts +4788 -4136
- package/script/openapi/client.js +102 -1
package/script/openapi/client.js
CHANGED
|
@@ -152,7 +152,7 @@ class HttpClient {
|
|
|
152
152
|
exports.HttpClient = HttpClient;
|
|
153
153
|
/**
|
|
154
154
|
* @title Lago API documentation
|
|
155
|
-
* @version 1.
|
|
155
|
+
* @version 1.26.0
|
|
156
156
|
* @license AGPLv3
|
|
157
157
|
* @baseUrl https://api.getlago.com/api/v1
|
|
158
158
|
* @externalDocs https://github.com/getlago
|
|
@@ -161,6 +161,40 @@ exports.HttpClient = HttpClient;
|
|
|
161
161
|
* Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
|
162
162
|
*/
|
|
163
163
|
class Api extends HttpClient {
|
|
164
|
+
billingEntities = {
|
|
165
|
+
/**
|
|
166
|
+
* @description This endpoint returns a list of all billing entities in the organization
|
|
167
|
+
*
|
|
168
|
+
* @tags billing_entities
|
|
169
|
+
* @name ListBillingEntities
|
|
170
|
+
* @summary List all billing entities
|
|
171
|
+
* @request GET:/billing_entities
|
|
172
|
+
* @secure
|
|
173
|
+
*/
|
|
174
|
+
listBillingEntities: (params = {}) => this.request({
|
|
175
|
+
path: `/billing_entities`,
|
|
176
|
+
method: "GET",
|
|
177
|
+
secure: true,
|
|
178
|
+
format: "json",
|
|
179
|
+
...params,
|
|
180
|
+
}),
|
|
181
|
+
/**
|
|
182
|
+
* @description This endpoint returns a specific billing entity by its code
|
|
183
|
+
*
|
|
184
|
+
* @tags billing_entities
|
|
185
|
+
* @name GetBillingEntity
|
|
186
|
+
* @summary Retrieve a billing entity
|
|
187
|
+
* @request GET:/billing_entities/{code}
|
|
188
|
+
* @secure
|
|
189
|
+
*/
|
|
190
|
+
getBillingEntity: (code, params = {}) => this.request({
|
|
191
|
+
path: `/billing_entities/${code}`,
|
|
192
|
+
method: "GET",
|
|
193
|
+
secure: true,
|
|
194
|
+
format: "json",
|
|
195
|
+
...params,
|
|
196
|
+
}),
|
|
197
|
+
};
|
|
164
198
|
addOns = {
|
|
165
199
|
/**
|
|
166
200
|
* @description This endpoint is used to create an add-on that can be then attached to a one-off invoice.
|
|
@@ -1229,6 +1263,41 @@ class Api extends HttpClient {
|
|
|
1229
1263
|
...params,
|
|
1230
1264
|
}),
|
|
1231
1265
|
};
|
|
1266
|
+
paymentReceipts = {
|
|
1267
|
+
/**
|
|
1268
|
+
* @description This endpoint is used to list all existing payment receipts.
|
|
1269
|
+
*
|
|
1270
|
+
* @tags payment_receipts
|
|
1271
|
+
* @name FindAllPaymentReceipts
|
|
1272
|
+
* @summary List all payment receipts
|
|
1273
|
+
* @request GET:/payment_receipts
|
|
1274
|
+
* @secure
|
|
1275
|
+
*/
|
|
1276
|
+
findAllPaymentReceipts: (query, params = {}) => this.request({
|
|
1277
|
+
path: `/payment_receipts`,
|
|
1278
|
+
method: "GET",
|
|
1279
|
+
query: query,
|
|
1280
|
+
secure: true,
|
|
1281
|
+
format: "json",
|
|
1282
|
+
...params,
|
|
1283
|
+
}),
|
|
1284
|
+
/**
|
|
1285
|
+
* @description This endpoint retrieves a specific payment receipt.
|
|
1286
|
+
*
|
|
1287
|
+
* @tags payment_receipts
|
|
1288
|
+
* @name FindPaymentReceipt
|
|
1289
|
+
* @summary Retrieve a payment receipt
|
|
1290
|
+
* @request GET:/payment_receipts/{lago_id}
|
|
1291
|
+
* @secure
|
|
1292
|
+
*/
|
|
1293
|
+
findPaymentReceipt: (lagoId, params = {}) => this.request({
|
|
1294
|
+
path: `/payment_receipts/${lagoId}`,
|
|
1295
|
+
method: "GET",
|
|
1296
|
+
secure: true,
|
|
1297
|
+
format: "json",
|
|
1298
|
+
...params,
|
|
1299
|
+
}),
|
|
1300
|
+
};
|
|
1232
1301
|
paymentRequests = {
|
|
1233
1302
|
/**
|
|
1234
1303
|
* @description This endpoint is used to create a payment request to collect payments of overdue invoices of a given customer
|
|
@@ -1302,6 +1371,22 @@ class Api extends HttpClient {
|
|
|
1302
1371
|
format: "json",
|
|
1303
1372
|
...params,
|
|
1304
1373
|
}),
|
|
1374
|
+
/**
|
|
1375
|
+
* @description This endpoint retrieves a specific payment by its ID.
|
|
1376
|
+
*
|
|
1377
|
+
* @tags payments
|
|
1378
|
+
* @name FindPayment
|
|
1379
|
+
* @summary Retrieve a payment
|
|
1380
|
+
* @request GET:/payments/{lago_id}
|
|
1381
|
+
* @secure
|
|
1382
|
+
*/
|
|
1383
|
+
findPayment: (lagoId, params = {}) => this.request({
|
|
1384
|
+
path: `/payments/${lagoId}`,
|
|
1385
|
+
method: "GET",
|
|
1386
|
+
secure: true,
|
|
1387
|
+
format: "json",
|
|
1388
|
+
...params,
|
|
1389
|
+
}),
|
|
1305
1390
|
};
|
|
1306
1391
|
plans = {
|
|
1307
1392
|
/**
|
|
@@ -1738,6 +1823,22 @@ class Api extends HttpClient {
|
|
|
1738
1823
|
format: "json",
|
|
1739
1824
|
...params,
|
|
1740
1825
|
}),
|
|
1826
|
+
/**
|
|
1827
|
+
* @description This endpoint generates a checkout link for a specific wallet transaction.
|
|
1828
|
+
*
|
|
1829
|
+
* @tags wallets
|
|
1830
|
+
* @name WalletTransactionPaymentUrl
|
|
1831
|
+
* @summary Generate a payment URL
|
|
1832
|
+
* @request POST:/wallet_transactions/{lago_id}/payment_url
|
|
1833
|
+
* @secure
|
|
1834
|
+
*/
|
|
1835
|
+
walletTransactionPaymentUrl: (lagoId, params = {}) => this.request({
|
|
1836
|
+
path: `/wallet_transactions/${lagoId}/payment_url`,
|
|
1837
|
+
method: "POST",
|
|
1838
|
+
secure: true,
|
|
1839
|
+
format: "json",
|
|
1840
|
+
...params,
|
|
1841
|
+
}),
|
|
1741
1842
|
};
|
|
1742
1843
|
webhooks = {
|
|
1743
1844
|
/**
|