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.
@@ -152,7 +152,7 @@ class HttpClient {
152
152
  exports.HttpClient = HttpClient;
153
153
  /**
154
154
  * @title Lago API documentation
155
- * @version 1.26.0
155
+ * @version 1.28.1
156
156
  * @license AGPLv3
157
157
  * @baseUrl https://api.getlago.com/api/v1
158
158
  * @externalDocs https://github.com/getlago
@@ -178,6 +178,24 @@ class Api extends HttpClient {
178
178
  format: "json",
179
179
  ...params,
180
180
  }),
181
+ /**
182
+ * @description This endpoint is used to create a new billing entity
183
+ *
184
+ * @tags billing_entities
185
+ * @name CreateBillingEntity
186
+ * @summary Create a billing entity
187
+ * @request POST:/billing_entities
188
+ * @secure
189
+ */
190
+ createBillingEntity: (data, params = {}) => this.request({
191
+ path: `/billing_entities`,
192
+ method: "POST",
193
+ body: data,
194
+ secure: true,
195
+ type: ContentType.Json,
196
+ format: "json",
197
+ ...params,
198
+ }),
181
199
  /**
182
200
  * @description This endpoint returns a specific billing entity by its code
183
201
  *
@@ -194,6 +212,24 @@ class Api extends HttpClient {
194
212
  format: "json",
195
213
  ...params,
196
214
  }),
215
+ /**
216
+ * @description This endpoint is used to update an existing billing entity
217
+ *
218
+ * @tags billing_entities
219
+ * @name UpdateBillingEntity
220
+ * @summary Update a billing entity
221
+ * @request PUT:/billing_entities/{code}
222
+ * @secure
223
+ */
224
+ updateBillingEntity: (code, data, params = {}) => this.request({
225
+ path: `/billing_entities/${code}`,
226
+ method: "PUT",
227
+ body: data,
228
+ secure: true,
229
+ type: ContentType.Json,
230
+ format: "json",
231
+ ...params,
232
+ }),
197
233
  };
198
234
  addOns = {
199
235
  /**