lago-javascript-client 1.27.1 → 1.28.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.
@@ -148,7 +148,7 @@ export class HttpClient {
148
148
  }
149
149
  /**
150
150
  * @title Lago API documentation
151
- * @version 1.26.0
151
+ * @version 1.28.1
152
152
  * @license AGPLv3
153
153
  * @baseUrl https://api.getlago.com/api/v1
154
154
  * @externalDocs https://github.com/getlago
@@ -174,6 +174,24 @@ export class Api extends HttpClient {
174
174
  format: "json",
175
175
  ...params,
176
176
  }),
177
+ /**
178
+ * @description This endpoint is used to create a new billing entity
179
+ *
180
+ * @tags billing_entities
181
+ * @name CreateBillingEntity
182
+ * @summary Create a billing entity
183
+ * @request POST:/billing_entities
184
+ * @secure
185
+ */
186
+ createBillingEntity: (data, params = {}) => this.request({
187
+ path: `/billing_entities`,
188
+ method: "POST",
189
+ body: data,
190
+ secure: true,
191
+ type: ContentType.Json,
192
+ format: "json",
193
+ ...params,
194
+ }),
177
195
  /**
178
196
  * @description This endpoint returns a specific billing entity by its code
179
197
  *
@@ -190,6 +208,24 @@ export class Api extends HttpClient {
190
208
  format: "json",
191
209
  ...params,
192
210
  }),
211
+ /**
212
+ * @description This endpoint is used to update an existing billing entity
213
+ *
214
+ * @tags billing_entities
215
+ * @name UpdateBillingEntity
216
+ * @summary Update a billing entity
217
+ * @request PUT:/billing_entities/{code}
218
+ * @secure
219
+ */
220
+ updateBillingEntity: (code, data, params = {}) => this.request({
221
+ path: `/billing_entities/${code}`,
222
+ method: "PUT",
223
+ body: data,
224
+ secure: true,
225
+ type: ContentType.Json,
226
+ format: "json",
227
+ ...params,
228
+ }),
193
229
  };
194
230
  addOns = {
195
231
  /**
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.27.1",
6
+ "version": "v1.28.1",
7
7
  "description": "Lago JavaScript API Client",
8
8
  "repository": {
9
9
  "type": "git",