lago-javascript-client 1.26.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.
@@ -169,17 +169,6 @@ export interface ApiErrorUnprocessableEntity {
169
169
  code: string;
170
170
  error_details: object;
171
171
  }
172
- export interface ApiErrorNotFound {
173
- /**
174
- * @format int32
175
- * @example 404
176
- */
177
- status: number;
178
- /** @example "Not Found" */
179
- error: string;
180
- /** @example "object_not_found" */
181
- code: string;
182
- }
183
172
  export interface TaxObject {
184
173
  /**
185
174
  * Unique identifier of the tax, created by Lago.
@@ -219,6 +208,20 @@ export interface TaxObject {
219
208
  */
220
209
  created_at: string;
221
210
  }
211
+ export type BillingEntityObjectExtended = BillingEntityObject & {
212
+ taxes?: TaxObject[];
213
+ };
214
+ export interface ApiErrorNotFound {
215
+ /**
216
+ * @format int32
217
+ * @example 404
218
+ */
219
+ status: number;
220
+ /** @example "Not Found" */
221
+ error: string;
222
+ /** @example "object_not_found" */
223
+ code: string;
224
+ }
222
225
  export interface AddOnObject {
223
226
  /**
224
227
  * Unique identifier of the add-on, created by Lago.
@@ -3216,6 +3219,12 @@ export interface InvoiceOneOffCreateInput {
3216
3219
  * @example ["french_standard_vat"]
3217
3220
  */
3218
3221
  tax_codes?: string[];
3222
+ /**
3223
+ * If true, the invoice will be created but not sent to the payment provider.
3224
+ * @default false
3225
+ * @example true
3226
+ */
3227
+ skip_psp?: boolean | null;
3219
3228
  }[];
3220
3229
  };
3221
3230
  }
@@ -6304,8 +6313,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6304
6313
  * @secure
6305
6314
  */
6306
6315
  getBillingEntity: (code: string, params?: RequestParams) => Promise<HttpResponse<{
6307
- /** Billing entity object */
6308
- billing_entity: BillingEntityObject;
6316
+ billing_entity: BillingEntityObjectExtended;
6309
6317
  }, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorNotFound>>;
6310
6318
  };
6311
6319
  addOns: {
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.26.0",
6
+ "version": "v1.27.1",
7
7
  "description": "Lago JavaScript API Client",
8
8
  "repository": {
9
9
  "type": "git",
@@ -169,17 +169,6 @@ export interface ApiErrorUnprocessableEntity {
169
169
  code: string;
170
170
  error_details: object;
171
171
  }
172
- export interface ApiErrorNotFound {
173
- /**
174
- * @format int32
175
- * @example 404
176
- */
177
- status: number;
178
- /** @example "Not Found" */
179
- error: string;
180
- /** @example "object_not_found" */
181
- code: string;
182
- }
183
172
  export interface TaxObject {
184
173
  /**
185
174
  * Unique identifier of the tax, created by Lago.
@@ -219,6 +208,20 @@ export interface TaxObject {
219
208
  */
220
209
  created_at: string;
221
210
  }
211
+ export type BillingEntityObjectExtended = BillingEntityObject & {
212
+ taxes?: TaxObject[];
213
+ };
214
+ export interface ApiErrorNotFound {
215
+ /**
216
+ * @format int32
217
+ * @example 404
218
+ */
219
+ status: number;
220
+ /** @example "Not Found" */
221
+ error: string;
222
+ /** @example "object_not_found" */
223
+ code: string;
224
+ }
222
225
  export interface AddOnObject {
223
226
  /**
224
227
  * Unique identifier of the add-on, created by Lago.
@@ -3216,6 +3219,12 @@ export interface InvoiceOneOffCreateInput {
3216
3219
  * @example ["french_standard_vat"]
3217
3220
  */
3218
3221
  tax_codes?: string[];
3222
+ /**
3223
+ * If true, the invoice will be created but not sent to the payment provider.
3224
+ * @default false
3225
+ * @example true
3226
+ */
3227
+ skip_psp?: boolean | null;
3219
3228
  }[];
3220
3229
  };
3221
3230
  }
@@ -6304,8 +6313,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6304
6313
  * @secure
6305
6314
  */
6306
6315
  getBillingEntity: (code: string, params?: RequestParams) => Promise<HttpResponse<{
6307
- /** Billing entity object */
6308
- billing_entity: BillingEntityObject;
6316
+ billing_entity: BillingEntityObjectExtended;
6309
6317
  }, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorNotFound>>;
6310
6318
  };
6311
6319
  addOns: {