lago-javascript-client 1.22.0 → 1.26.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.
@@ -148,7 +148,7 @@ export class HttpClient {
148
148
  }
149
149
  /**
150
150
  * @title Lago API documentation
151
- * @version 1.22.0
151
+ * @version 1.26.0
152
152
  * @license AGPLv3
153
153
  * @baseUrl https://api.getlago.com/api/v1
154
154
  * @externalDocs https://github.com/getlago
@@ -157,6 +157,40 @@ export class HttpClient {
157
157
  * Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
158
158
  */
159
159
  export class Api extends HttpClient {
160
+ billingEntities = {
161
+ /**
162
+ * @description This endpoint returns a list of all billing entities in the organization
163
+ *
164
+ * @tags billing_entities
165
+ * @name ListBillingEntities
166
+ * @summary List all billing entities
167
+ * @request GET:/billing_entities
168
+ * @secure
169
+ */
170
+ listBillingEntities: (params = {}) => this.request({
171
+ path: `/billing_entities`,
172
+ method: "GET",
173
+ secure: true,
174
+ format: "json",
175
+ ...params,
176
+ }),
177
+ /**
178
+ * @description This endpoint returns a specific billing entity by its code
179
+ *
180
+ * @tags billing_entities
181
+ * @name GetBillingEntity
182
+ * @summary Retrieve a billing entity
183
+ * @request GET:/billing_entities/{code}
184
+ * @secure
185
+ */
186
+ getBillingEntity: (code, params = {}) => this.request({
187
+ path: `/billing_entities/${code}`,
188
+ method: "GET",
189
+ secure: true,
190
+ format: "json",
191
+ ...params,
192
+ }),
193
+ };
160
194
  addOns = {
161
195
  /**
162
196
  * @description This endpoint is used to create an add-on that can be then attached to a one-off invoice.
@@ -1225,6 +1259,41 @@ export class Api extends HttpClient {
1225
1259
  ...params,
1226
1260
  }),
1227
1261
  };
1262
+ paymentReceipts = {
1263
+ /**
1264
+ * @description This endpoint is used to list all existing payment receipts.
1265
+ *
1266
+ * @tags payment_receipts
1267
+ * @name FindAllPaymentReceipts
1268
+ * @summary List all payment receipts
1269
+ * @request GET:/payment_receipts
1270
+ * @secure
1271
+ */
1272
+ findAllPaymentReceipts: (query, params = {}) => this.request({
1273
+ path: `/payment_receipts`,
1274
+ method: "GET",
1275
+ query: query,
1276
+ secure: true,
1277
+ format: "json",
1278
+ ...params,
1279
+ }),
1280
+ /**
1281
+ * @description This endpoint retrieves a specific payment receipt.
1282
+ *
1283
+ * @tags payment_receipts
1284
+ * @name FindPaymentReceipt
1285
+ * @summary Retrieve a payment receipt
1286
+ * @request GET:/payment_receipts/{lago_id}
1287
+ * @secure
1288
+ */
1289
+ findPaymentReceipt: (lagoId, params = {}) => this.request({
1290
+ path: `/payment_receipts/${lagoId}`,
1291
+ method: "GET",
1292
+ secure: true,
1293
+ format: "json",
1294
+ ...params,
1295
+ }),
1296
+ };
1228
1297
  paymentRequests = {
1229
1298
  /**
1230
1299
  * @description This endpoint is used to create a payment request to collect payments of overdue invoices of a given customer
@@ -1298,6 +1367,22 @@ export class Api extends HttpClient {
1298
1367
  format: "json",
1299
1368
  ...params,
1300
1369
  }),
1370
+ /**
1371
+ * @description This endpoint retrieves a specific payment by its ID.
1372
+ *
1373
+ * @tags payments
1374
+ * @name FindPayment
1375
+ * @summary Retrieve a payment
1376
+ * @request GET:/payments/{lago_id}
1377
+ * @secure
1378
+ */
1379
+ findPayment: (lagoId, params = {}) => this.request({
1380
+ path: `/payments/${lagoId}`,
1381
+ method: "GET",
1382
+ secure: true,
1383
+ format: "json",
1384
+ ...params,
1385
+ }),
1301
1386
  };
1302
1387
  plans = {
1303
1388
  /**
@@ -1734,6 +1819,22 @@ export class Api extends HttpClient {
1734
1819
  format: "json",
1735
1820
  ...params,
1736
1821
  }),
1822
+ /**
1823
+ * @description This endpoint generates a checkout link for a specific wallet transaction.
1824
+ *
1825
+ * @tags wallets
1826
+ * @name WalletTransactionPaymentUrl
1827
+ * @summary Generate a payment URL
1828
+ * @request POST:/wallet_transactions/{lago_id}/payment_url
1829
+ * @secure
1830
+ */
1831
+ walletTransactionPaymentUrl: (lagoId, params = {}) => this.request({
1832
+ path: `/wallet_transactions/${lagoId}/payment_url`,
1833
+ method: "POST",
1834
+ secure: true,
1835
+ format: "json",
1836
+ ...params,
1837
+ }),
1737
1838
  };
1738
1839
  webhooks = {
1739
1840
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/mod.js",
4
4
  "name": "lago-javascript-client",
5
5
  "sideEffects": false,
6
- "version": "v1.22.0",
6
+ "version": "v1.26.0",
7
7
  "description": "Lago JavaScript API Client",
8
8
  "repository": {
9
9
  "type": "git",