lago-javascript-client 0.23.0-beta → 0.26.0-beta

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 0.23.0-beta
151
+ * @version 0.26.0-beta
152
152
  * @baseUrl https://api.getlago.com/api/v1
153
153
  * @externalDocs https://github.com/getlago
154
154
  * @contact <tech@getlago.com>
@@ -956,6 +956,24 @@ export class Api extends HttpClient {
956
956
  ...params,
957
957
  }),
958
958
  };
959
+ fees = {
960
+ /**
961
+ * @description Return a single fee
962
+ *
963
+ * @tags fees
964
+ * @name FindFee
965
+ * @summary Find fee by ID
966
+ * @request GET:/fees/{id}
967
+ * @secure
968
+ */
969
+ findFee: (id, params = {}) => this.request({
970
+ path: `/fees/${id}`,
971
+ method: "GET",
972
+ secure: true,
973
+ format: "json",
974
+ ...params,
975
+ }),
976
+ };
959
977
  wallets = {
960
978
  /**
961
979
  * @description Create a new wallet
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "types": "./types/mod.d.ts",
5
5
  "name": "lago-javascript-client",
6
6
  "sideEffects": false,
7
- "version": "v0.23.0-beta",
7
+ "version": "v0.26.0-beta",
8
8
  "description": "Lago JavaScript API Client",
9
9
  "repository": {
10
10
  "type": "git",
@@ -152,7 +152,7 @@ class HttpClient {
152
152
  exports.HttpClient = HttpClient;
153
153
  /**
154
154
  * @title Lago API documentation
155
- * @version 0.23.0-beta
155
+ * @version 0.26.0-beta
156
156
  * @baseUrl https://api.getlago.com/api/v1
157
157
  * @externalDocs https://github.com/getlago
158
158
  * @contact <tech@getlago.com>
@@ -960,6 +960,24 @@ class Api extends HttpClient {
960
960
  ...params,
961
961
  }),
962
962
  };
963
+ fees = {
964
+ /**
965
+ * @description Return a single fee
966
+ *
967
+ * @tags fees
968
+ * @name FindFee
969
+ * @summary Find fee by ID
970
+ * @request GET:/fees/{id}
971
+ * @secure
972
+ */
973
+ findFee: (id, params = {}) => this.request({
974
+ path: `/fees/${id}`,
975
+ method: "GET",
976
+ secure: true,
977
+ format: "json",
978
+ ...params,
979
+ }),
980
+ };
963
981
  wallets = {
964
982
  /**
965
983
  * @description Create a new wallet
@@ -1,37 +1,39 @@
1
1
  export interface BillableMetricGroup {
2
2
  /** @example "region" */
3
- key?: string;
4
- values?: (string | object)[];
3
+ key: string;
4
+ values: (string | object)[];
5
5
  }
6
6
  export interface BillableMetricObject {
7
7
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
8
- lago_id?: string;
8
+ lago_id: string;
9
9
  /** @example "bm1" */
10
- name?: string;
10
+ name: string;
11
11
  /** @example "example_code" */
12
- code?: string;
12
+ code: string;
13
13
  /** @example "description" */
14
14
  description?: string;
15
15
  /** @example "2022-09-14T16:35:31.000Z" */
16
- created_at?: string;
16
+ created_at: string;
17
17
  /** @example "amount" */
18
18
  field_name?: string;
19
19
  /** Aggregation type */
20
- aggregation_type?: "count_agg" | "sum_agg" | "max_agg" | "unique_count_agg" | "recurring_count_agg";
20
+ aggregation_type: "count_agg" | "sum_agg" | "max_agg" | "unique_count_agg" | "recurring_count_agg";
21
21
  group?: BillableMetricGroup;
22
22
  /** @example 0 */
23
- active_subscriptions_count?: number;
23
+ active_subscriptions_count: number;
24
24
  /** @example 0 */
25
- draft_invoices_count?: number;
25
+ draft_invoices_count: number;
26
+ /** @example 0 */
27
+ plans_count: number;
26
28
  }
27
29
  export interface BillableMetric {
28
- billable_metric?: BillableMetricObject;
30
+ billable_metric: BillableMetricObject;
29
31
  }
30
32
  export interface BillableMetrics {
31
- billable_metrics?: BillableMetricObject[];
33
+ billable_metrics: BillableMetricObject[];
32
34
  }
33
35
  export interface BillableMetricInput {
34
- billable_metric?: {
36
+ billable_metric: {
35
37
  /** @example "bm1" */
36
38
  name?: string;
37
39
  /** @example "example_code" */
@@ -46,40 +48,40 @@ export interface BillableMetricInput {
46
48
  };
47
49
  }
48
50
  export interface GroupObject {
51
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
52
+ lago_id: string;
49
53
  /** @example "region" */
50
- key?: string;
54
+ key: string;
51
55
  /** @example "EU" */
52
- value?: string;
53
- /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
54
- lago_id?: string;
56
+ value: string;
55
57
  }
56
58
  export interface Groups {
57
- groups?: GroupObject[];
59
+ groups: GroupObject[];
58
60
  }
59
61
  export interface AddOnObject {
60
62
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
61
- lago_id?: string;
63
+ lago_id: string;
62
64
  /** @example "example name" */
63
- name?: string;
65
+ name: string;
64
66
  /** @example "example_code" */
65
- code?: string;
67
+ code: string;
66
68
  /** @example "description" */
67
69
  description?: string;
68
70
  /** @example "2022-09-14T16:35:31.000Z" */
69
- created_at?: string;
71
+ created_at: string;
70
72
  /** @example 1200 */
71
- amount_cents?: number;
73
+ amount_cents: number;
72
74
  /** @example "EUR" */
73
- amount_currency?: string;
75
+ amount_currency: string;
74
76
  }
75
77
  export interface AddOn {
76
- add_on?: AddOnObject;
78
+ add_on: AddOnObject;
77
79
  }
78
80
  export interface AddOns {
79
- add_ons?: AddOnObject[];
81
+ add_ons: AddOnObject[];
80
82
  }
81
83
  export interface AddOnInput {
82
- add_on?: {
84
+ add_on: {
83
85
  /** @example "example name" */
84
86
  name?: string;
85
87
  /** @example "example_code" */
@@ -94,31 +96,31 @@ export interface AddOnInput {
94
96
  }
95
97
  export interface AppliedAddOnObject {
96
98
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
97
- lago_id?: string;
99
+ lago_id: string;
98
100
  /** @example "457uj93c-c007-4fbb-afcd-b00c07c41kki" */
99
- lago_add_on_id?: string;
101
+ lago_add_on_id: string;
100
102
  /** @example "code" */
101
- add_on_code?: string;
103
+ add_on_code: string;
102
104
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
103
- lago_customer_id?: string;
104
- /** @example 1234567 */
105
- external_customer_id?: string;
105
+ lago_customer_id: string;
106
+ /** @example "1234567" */
107
+ external_customer_id: string;
106
108
  /** @example 1200 */
107
- amount_cents?: number;
109
+ amount_cents: number;
108
110
  /** @example "EUR" */
109
- amount_currency?: string;
111
+ amount_currency: string;
110
112
  /** @example "2022-09-14T16:35:31.000Z" */
111
- created_at?: string;
113
+ created_at: string;
112
114
  }
113
115
  export interface AppliedAddOn {
114
- applied_add_on?: AppliedAddOnObject;
116
+ applied_add_on: AppliedAddOnObject;
115
117
  }
116
118
  export interface AppliedAddOnInput {
117
- applied_add_on?: {
118
- /** @example 1234567 */
119
- external_customer_id?: string;
119
+ applied_add_on: {
120
+ /** @example "1234567" */
121
+ external_customer_id: string;
120
122
  /** @example "code" */
121
- add_on_code?: string;
123
+ add_on_code: string;
122
124
  /** @example 1200 */
123
125
  amount_cents?: number;
124
126
  /** @example "EUR" */
@@ -127,13 +129,13 @@ export interface AppliedAddOnInput {
127
129
  }
128
130
  export interface CouponObject {
129
131
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
130
- lago_id?: string;
132
+ lago_id: string;
131
133
  /** @example "coupon1" */
132
- name?: string;
134
+ name: string;
133
135
  /** @example "example_code" */
134
- code?: string;
136
+ code: string;
135
137
  /** Coupon type */
136
- coupon_type?: "fixed_amount" | "percentage";
138
+ coupon_type: "fixed_amount" | "percentage";
137
139
  /** @example 1200 */
138
140
  amount_cents?: number;
139
141
  /** @example "EUR" */
@@ -144,26 +146,26 @@ export interface CouponObject {
144
146
  limited_plans?: boolean;
145
147
  plan_codes?: string[];
146
148
  /** @example "2022-09-14T16:35:31.000Z" */
147
- created_at?: string;
149
+ created_at: string;
148
150
  /** @example 25 */
149
151
  percentage_rate?: number;
150
152
  /** Frequency type */
151
- frequency?: "once" | "recurring";
153
+ frequency: "once" | "recurring";
152
154
  /** @example 3 */
153
155
  frequency_duration?: number;
154
156
  /** @example "2022-09-14T23:59:59.000Z" */
155
157
  expiration_at?: string;
156
158
  /** Expiration type */
157
- expiration?: "no_expiration" | "time_limit";
159
+ expiration: "no_expiration" | "time_limit";
158
160
  }
159
161
  export interface Coupon {
160
- coupon?: CouponObject;
162
+ coupon: CouponObject;
161
163
  }
162
164
  export interface Coupons {
163
- coupons?: CouponObject[];
165
+ coupons: CouponObject[];
164
166
  }
165
167
  export interface CouponInput {
166
- coupon?: {
168
+ coupon: {
167
169
  /** @example "coupon1" */
168
170
  name?: string;
169
171
  /** @example "example_code" */
@@ -193,27 +195,27 @@ export interface CouponInput {
193
195
  }
194
196
  export interface AppliedCouponObject {
195
197
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
196
- lago_id?: string;
198
+ lago_id: string;
197
199
  /** @example "544da83c-c007-4fbb-afcd-b00c07c41iit" */
198
- lago_coupon_id?: string;
200
+ lago_coupon_id: string;
199
201
  /** @example "example_code" */
200
- coupon_code?: string;
202
+ coupon_code: string;
201
203
  /** @example "321da83c-c007-4fbb-afcd-b00c07c41ssd" */
202
- lago_customer_id?: string;
203
- /** @example 123456 */
204
- external_customer_id?: string;
204
+ lago_customer_id: string;
205
+ /** @example "123456" */
206
+ external_customer_id: string;
205
207
  /** Status */
206
- status?: "active" | "terminated";
208
+ status: "active" | "terminated";
207
209
  /** @example 1200 */
208
- amount_cents?: number;
210
+ amount_cents: number;
209
211
  /** @example 800 */
210
212
  amount_cents_remaining?: number;
211
213
  /** @example "EUR" */
212
- amount_currency?: string;
214
+ amount_currency: string;
213
215
  /** @example 25 */
214
216
  percentage_rate?: number;
215
217
  /** Frequency type */
216
- frequency?: "once" | "recurring";
218
+ frequency: "once" | "recurring";
217
219
  /** @example 3 */
218
220
  frequency_duration?: number;
219
221
  /** @example 2 */
@@ -221,22 +223,23 @@ export interface AppliedCouponObject {
221
223
  /** @example "2022-09-14T23:59:59.000Z" */
222
224
  expiration_at?: string;
223
225
  /** @example "2022-09-14T16:35:31.000Z" */
224
- created_at?: string;
226
+ created_at: string;
225
227
  /** @example "2022-09-14T16:35:31.000Z" */
226
228
  terminated_at?: string;
229
+ credits: CreditObject[];
227
230
  }
228
231
  export interface AppliedCoupon {
229
- applied_coupon?: AppliedCouponObject;
232
+ applied_coupon: AppliedCouponObject;
230
233
  }
231
234
  export interface AppliedCoupons {
232
- applied_coupons?: AppliedCouponObject[];
235
+ applied_coupons: AppliedCouponObject[];
233
236
  }
234
237
  export interface AppliedCouponInput {
235
- applied_coupon?: {
236
- /** @example 123456 */
237
- external_customer_id?: string;
238
+ applied_coupon: {
239
+ /** @example "123456" */
240
+ external_customer_id: string;
238
241
  /** @example "example_code" */
239
- coupon_code?: string;
242
+ coupon_code: string;
240
243
  /** Frequency type */
241
244
  frequency?: "once" | "recurring";
242
245
  /** @example 3 */
@@ -263,9 +266,9 @@ export interface OrganizationObject {
263
266
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
264
267
  lago_id?: string;
265
268
  /** @example "example name" */
266
- name?: string;
269
+ name: string;
267
270
  /** @example "2022-09-14T16:35:31.000Z" */
268
- created_at?: string;
271
+ created_at: string;
269
272
  /** @example "https://example.com" */
270
273
  webhook_url?: string;
271
274
  /** @example "CZ" */
@@ -276,7 +279,7 @@ export interface OrganizationObject {
276
279
  address_line2?: string;
277
280
  /** @example "state1" */
278
281
  state?: string;
279
- /** @example 10000 */
282
+ /** @example "10000" */
280
283
  zipcode?: string;
281
284
  /** @example "example@example.com" */
282
285
  email?: string;
@@ -284,17 +287,17 @@ export interface OrganizationObject {
284
287
  city?: string;
285
288
  /** @example "name1" */
286
289
  legal_name?: string;
287
- /** @example 10000 */
290
+ /** @example "10000" */
288
291
  legal_number?: string;
289
292
  /** @example "UTC" */
290
293
  timezone?: string;
291
294
  billing_configuration?: BillingConfigurationOrganization;
292
295
  }
293
296
  export interface Organization {
294
- organization?: OrganizationObject;
297
+ organization: OrganizationObject;
295
298
  }
296
299
  export interface OrganizationInput {
297
- organization?: {
300
+ organization: {
298
301
  /** @example "https://example.com" */
299
302
  webhook_url?: string;
300
303
  /** @example "CZ" */
@@ -305,7 +308,7 @@ export interface OrganizationInput {
305
308
  address_line2?: string;
306
309
  /** @example "state1" */
307
310
  state?: string;
308
- /** @example 10000 */
311
+ /** @example "10000" */
309
312
  zipcode?: string;
310
313
  /** @example "example@example.com" */
311
314
  email?: string;
@@ -325,7 +328,7 @@ export interface BillingConfigurationCustomer {
325
328
  invoice_grace_period?: number;
326
329
  /** Payment provider type */
327
330
  payment_provider?: "stripe" | "gocardless";
328
- /** @example 123456 */
331
+ /** @example "123456" */
329
332
  provider_customer_id?: string;
330
333
  /** @example true */
331
334
  sync_with_provider?: boolean;
@@ -335,17 +338,29 @@ export interface BillingConfigurationCustomer {
335
338
  vat_rate?: number;
336
339
  [key: string]: any;
337
340
  }
338
- export interface CustomerObject {
341
+ export interface CustomerMetadataObject {
339
342
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
340
343
  lago_id?: string;
344
+ /** @example "name" */
345
+ key?: string;
346
+ /** @example "John" */
347
+ value?: string;
348
+ /** @example false */
349
+ display_in_invoice?: boolean;
350
+ /** @example "2022-09-14T16:35:31.000Z" */
351
+ created_at?: string;
352
+ }
353
+ export interface CustomerObject {
354
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
355
+ lago_id: string;
341
356
  /** @example "886da83c-c007-4fbb-afcd-b00c07c41ffe" */
342
- external_id?: string;
357
+ external_id: string;
343
358
  /** @example "John Doe" */
344
359
  name?: string;
345
360
  /** @example 12345 */
346
- sequential_id?: number;
361
+ sequential_id: number;
347
362
  /** @example "slug" */
348
- slug?: string;
363
+ slug: string;
349
364
  /** @example "2022-09-14T16:35:31.000Z" */
350
365
  created_at?: string;
351
366
  /** @example "CZ" */
@@ -379,17 +394,18 @@ export interface CustomerObject {
379
394
  /** @example "UTC" */
380
395
  applicable_timezone?: string;
381
396
  billing_configuration?: BillingConfigurationCustomer;
397
+ metadata?: CustomerMetadataObject[];
382
398
  }
383
399
  export interface Customer {
384
- customer?: CustomerObject;
400
+ customer: CustomerObject;
385
401
  }
386
402
  export interface Customers {
387
- customers?: CustomerObject[];
403
+ customers: CustomerObject[];
388
404
  }
389
405
  export interface CustomerInput {
390
- customer?: {
406
+ customer: {
391
407
  /** @example "886da83c-c007-4fbb-afcd-b00c07c41ffe" */
392
- external_id?: string;
408
+ external_id: string;
393
409
  /** @example "John Doe" */
394
410
  name?: string;
395
411
  /** @example "CZ" */
@@ -421,22 +437,32 @@ export interface CustomerInput {
421
437
  /** @example "Europe/Paris" */
422
438
  timezone?: string;
423
439
  billing_configuration?: BillingConfigurationCustomer;
440
+ metadata?: {
441
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
442
+ id?: string;
443
+ /** @example "name" */
444
+ key?: string;
445
+ /** @example "John" */
446
+ value?: string;
447
+ /** @example false */
448
+ display_in_invoice?: boolean;
449
+ }[];
424
450
  };
425
451
  }
426
452
  export interface ChargeUsageObject {
427
453
  /** @example 3 */
428
- units?: number;
454
+ units: number;
429
455
  /** @example 1200 */
430
- amount_cents?: number;
456
+ amount_cents: number;
431
457
  /** @example "EUR" */
432
- amount_currency?: string;
433
- charge?: {
458
+ amount_currency: string;
459
+ charge: {
434
460
  /** @example "278da83c-c007-4fbb-afcd-b00c07c41utg" */
435
461
  lago_id?: string;
436
462
  /** Charge model type */
437
463
  charge_model?: "standard" | "graduated" | "package" | "percentage" | "volume";
438
464
  };
439
- billable_metric?: {
465
+ billable_metric: {
440
466
  /** @example "278da83c-c007-4fbb-afcd-b00c07c41utg" */
441
467
  lago_id?: string;
442
468
  /** @example "Example name" */
@@ -446,7 +472,7 @@ export interface ChargeUsageObject {
446
472
  /** Aggregation type */
447
473
  aggregation_type?: "count_agg" | "sum_agg" | "max_agg" | "unique_count_agg" | "recurring_count_agg";
448
474
  };
449
- groups?: {
475
+ groups: {
450
476
  /** @example "278da83c-c007-4fbb-afcd-b00c07c41utg" */
451
477
  lago_id?: string;
452
478
  /** @example "key" */
@@ -461,115 +487,117 @@ export interface ChargeUsageObject {
461
487
  }
462
488
  export interface CustomerUsageObject {
463
489
  /** @example "2022-09-14T00:00:00.000Z" */
464
- from_datetime?: string;
490
+ from_datetime: string;
465
491
  /** @example "2022-09-14T00:00:00.000Z" */
466
- to_datetime?: string;
492
+ to_datetime: string;
467
493
  /** @example "2022-09-15T00:00:00.000Z" */
468
- issuing_date?: string;
494
+ issuing_date: string;
469
495
  /** @example 1200 */
470
- amount_cents?: number;
496
+ amount_cents: number;
471
497
  /** @example "EUR" */
472
- amount_currency?: string;
498
+ amount_currency: string;
473
499
  /** @example 1400 */
474
- total_amount_cents?: number;
500
+ total_amount_cents: number;
475
501
  /** @example "EUR" */
476
- total_amount_currency?: string;
502
+ total_amount_currency: string;
477
503
  /** @example 200 */
478
- vat_amount_cents?: number;
504
+ vat_amount_cents: number;
479
505
  /** @example "EUR" */
480
- vat_amount_currency?: string;
481
- charges_usage?: ChargeUsageObject[];
506
+ vat_amount_currency: string;
507
+ charges_usage: ChargeUsageObject[];
482
508
  }
483
509
  export interface CustomerUsage {
484
- customer_usage?: CustomerUsageObject;
510
+ customer_usage: CustomerUsageObject;
485
511
  }
486
512
  export interface EventObject {
487
513
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
488
- lago_id?: string;
489
- /** @example 987654321 */
490
- transaction_id?: string;
514
+ lago_id: string;
515
+ /** @example "987654321" */
516
+ transaction_id: string;
491
517
  /** @example "111da83c-c007-4fbb-afcd-b00c07c41iop" */
492
- lago_customer_id?: string;
493
- /** @example 123456 */
494
- external_customer_id?: string;
518
+ lago_customer_id: string;
519
+ /** @example "123456" */
520
+ external_customer_id: string;
495
521
  /** @example "code" */
496
- code?: string;
522
+ code: string;
497
523
  /** @example "2022-09-14T16:35:31.000Z" */
498
- timestamp?: string;
524
+ timestamp: string;
499
525
  properties?: object;
500
526
  /** @example "447da83c-c007-4fbb-afcd-b00c07c41ffe" */
501
- lago_subscription_id?: string;
502
- /** @example 123456 */
503
- external_subscription_id?: string;
527
+ lago_subscription_id: string;
528
+ /** @example "123456" */
529
+ external_subscription_id: string;
504
530
  /** @example "2022-09-14T16:35:31.000Z" */
505
- created_at?: string;
531
+ created_at: string;
506
532
  }
507
533
  export interface Event {
508
- event?: EventObject;
534
+ event: EventObject;
509
535
  }
510
536
  export interface EventInput {
511
- event?: {
512
- /** @example 123456 */
513
- transaction_id?: string;
514
- /** @example 654321 */
537
+ event: {
538
+ /** @example "123456" */
539
+ transaction_id: string;
540
+ /** @example "654321" */
515
541
  external_customer_id?: string;
516
542
  /** @example "code" */
517
- code?: string;
543
+ code: string;
518
544
  /** @example 1669823754 */
519
545
  timestamp?: number;
520
- /** @example 123456 */
546
+ /** @example "123456" */
521
547
  external_subscription_id?: string;
522
548
  properties?: object;
523
549
  };
524
550
  }
525
551
  export interface BatchEventInput {
526
- event?: {
527
- /** @example 123456 */
528
- transaction_id?: string;
529
- /** @example 654321 */
552
+ event: {
553
+ /** @example "123456" */
554
+ transaction_id: string;
555
+ /** @example "654321" */
530
556
  external_customer_id?: string;
531
557
  /** @example "code" */
532
- code?: string;
558
+ code: string;
533
559
  /** @example 1669823754 */
534
560
  timestamp?: number;
535
- external_subscription_ids?: string[];
561
+ external_subscription_ids: string[];
536
562
  properties?: object;
537
563
  };
538
564
  }
539
565
  export interface GroupPropertiesObject {
540
- /** @example 123456 */
541
- group_id?: string;
542
- values?: object;
566
+ /** @example "123456" */
567
+ group_id: string;
568
+ values: object;
543
569
  }
544
570
  export interface ChargeObject {
545
571
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
546
- lago_id?: string;
572
+ lago_id: string;
547
573
  /** @example "278da83c-c007-4fbb-afcd-b00c07c41utg" */
548
- lago_billable_metric_id?: string;
574
+ lago_billable_metric_id: string;
575
+ /** @example "bm_code" */
576
+ billable_metric_code: string;
549
577
  /** @example "2022-09-14T16:35:31.000Z" */
550
- created_at?: string;
578
+ created_at: string;
551
579
  /** Charge model type */
552
- charge_model?: "standard" | "graduated" | "package" | "percentage" | "volume";
580
+ charge_model: "standard" | "graduated" | "package" | "percentage" | "volume";
553
581
  properties?: object;
554
582
  group_properties?: GroupPropertiesObject[];
555
583
  }
556
584
  export interface PlanObject {
557
585
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
558
- lago_id?: string;
586
+ lago_id: string;
559
587
  /** @example "example name" */
560
- name?: string;
588
+ name: string;
561
589
  /** @example "2022-09-14T16:35:31.000Z" */
562
- created_at?: string;
590
+ created_at: string;
563
591
  /** @example "example_code" */
564
- code?: string;
592
+ code: string;
565
593
  /** Plan interval */
566
- interval?: "weekly" | "monthly" | "yearly";
594
+ interval: "weekly" | "monthly" | "yearly";
567
595
  /** @example "description" */
568
596
  description?: string;
569
597
  /** @example 1200 */
570
- amount_cents?: number;
598
+ amount_cents: number;
571
599
  /** @example "EUR" */
572
- amount_currency?: string;
600
+ amount_currency: string;
573
601
  /** @example 2 */
574
602
  trial_period?: number;
575
603
  /** @example true */
@@ -577,19 +605,19 @@ export interface PlanObject {
577
605
  /** @example false */
578
606
  bill_charges_monthly?: boolean;
579
607
  /** @example 2 */
580
- active_subscriptions_count?: number;
608
+ active_subscriptions_count: number;
581
609
  /** @example 2 */
582
- draft_invoices_count?: number;
610
+ draft_invoices_count: number;
583
611
  charges?: ChargeObject[];
584
612
  }
585
613
  export interface Plan {
586
- plan?: PlanObject;
614
+ plan: PlanObject;
587
615
  }
588
616
  export interface Plans {
589
- plans?: PlanObject[];
617
+ plans: PlanObject[];
590
618
  }
591
619
  export interface PlanInput {
592
- plan?: {
620
+ plan: {
593
621
  /** @example "example name" */
594
622
  name?: string;
595
623
  /** @example "example_code" */
@@ -617,40 +645,40 @@ export interface PlanInput {
617
645
  charge_model?: "standard" | "graduated" | "package" | "percentage" | "volume";
618
646
  properties?: object;
619
647
  group_properties?: {
620
- /** @example 123456 */
621
- group_id?: string;
622
- values?: object;
648
+ /** @example "123456" */
649
+ group_id: string;
650
+ values: object;
623
651
  }[];
624
652
  }[];
625
653
  };
626
654
  }
627
655
  export interface SubscriptionObject {
628
656
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
629
- lago_id?: string;
657
+ lago_id: string;
630
658
  /** @example 12345 */
631
- external_id?: string;
659
+ external_id: string;
632
660
  /** @example "995da83c-c007-4fbb-afcd-b00c07c41tre" */
633
- lago_customer_id?: string;
661
+ lago_customer_id: string;
634
662
  /** @example 54321 */
635
- external_customer_id?: string;
663
+ external_customer_id: string;
636
664
  /** @example "Test subscription" */
637
665
  name?: string;
638
666
  /** @example "plan_code" */
639
- plan_code?: string;
667
+ plan_code: string;
640
668
  /** Subscription status */
641
- status?: "active" | "pending" | "terminated" | "canceled";
669
+ status: "active" | "pending" | "terminated" | "canceled";
642
670
  /** Billing time */
643
- billing_time?: "calendar" | "anniversary";
671
+ billing_time: "calendar" | "anniversary";
644
672
  /** @example "2022-09-14T16:35:31.000Z" */
645
- subscription_at?: string;
673
+ subscription_at: string;
646
674
  /** @example "2022-09-14T16:35:31.000Z" */
647
- started_at?: string;
675
+ started_at: string;
648
676
  /** @example "2022-09-14T16:35:31.000Z" */
649
677
  terminated_at?: string;
650
678
  /** @example "2022-09-14T16:35:31.000Z" */
651
679
  canceled_at?: string;
652
680
  /** @example "2022-09-14T16:35:31.000Z" */
653
- created_at?: string;
681
+ created_at: string;
654
682
  /** @example "previous_code" */
655
683
  previous_plan_code?: string;
656
684
  /** @example "next_code" */
@@ -659,21 +687,21 @@ export interface SubscriptionObject {
659
687
  downgrade_plan_date?: string;
660
688
  }
661
689
  export interface Subscription {
662
- subscription?: SubscriptionObject;
690
+ subscription: SubscriptionObject;
663
691
  }
664
692
  export interface Subscriptions {
665
- subscriptions?: SubscriptionObject[];
693
+ subscriptions: SubscriptionObject[];
666
694
  }
667
695
  export interface SubscriptionCreateInput {
668
- subscription?: {
696
+ subscription: {
669
697
  /** @example 12345 */
670
- external_customer_id?: string;
698
+ external_customer_id: string;
671
699
  /** @example "example_code" */
672
- plan_code?: string;
700
+ plan_code: string;
673
701
  /** @example "Test name" */
674
702
  name?: string;
675
703
  /** @example 54321 */
676
- external_id?: string;
704
+ external_id: string;
677
705
  /** Billing time */
678
706
  billing_time?: "calendar" | "anniversary";
679
707
  /** @example "2022-08-08T00:00:00.000Z" */
@@ -681,7 +709,7 @@ export interface SubscriptionCreateInput {
681
709
  };
682
710
  }
683
711
  export interface SubscriptionUpdateInput {
684
- subscription?: {
712
+ subscription: {
685
713
  /** @example "New name" */
686
714
  name?: string;
687
715
  /** @example "2022-08-08T00:00:00.000Z" */
@@ -690,120 +718,146 @@ export interface SubscriptionUpdateInput {
690
718
  }
691
719
  export interface CreditObject {
692
720
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
693
- lago_id?: string;
721
+ lago_id: string;
694
722
  /** @example 1200 */
695
- amount_cents?: number;
723
+ amount_cents: number;
696
724
  /** @example "EUR" */
697
- amount_currency?: string;
698
- item?: {
725
+ amount_currency: string;
726
+ item: {
699
727
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
700
- lago_id?: string;
728
+ lago_id: string;
701
729
  /** @example "coupon" */
702
- type?: string;
730
+ type: string;
703
731
  /** @example "code" */
704
- code?: string;
732
+ code: string;
705
733
  /** @example "name" */
706
- name?: string;
734
+ name: string;
735
+ };
736
+ invoice: {
737
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
738
+ lago_id: string;
739
+ payment_status: "pending" | "succeeded" | "failed";
707
740
  };
708
741
  }
709
742
  export interface FeeObject {
710
743
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
711
- lago_id?: string;
744
+ lago_id: string;
712
745
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
713
746
  lago_group_id?: string;
714
747
  /** @example 1200 */
715
- amount_cents?: number;
748
+ amount_cents: number;
716
749
  /** @example "EUR" */
717
- amount_currency?: string;
750
+ amount_currency: string;
718
751
  /** @example 1200 */
719
- vat_amount_cents?: number;
752
+ vat_amount_cents: number;
720
753
  /** @example "EUR" */
721
- vat_amount_currency?: string;
754
+ vat_amount_currency: string;
722
755
  /** @example 2.5 */
723
- units?: number;
756
+ units: number;
724
757
  /** @example 5 */
725
758
  events_count?: number;
726
- item?: {
759
+ item: {
727
760
  /** Billing time */
728
- type?: "charge" | "add_on" | "subscription" | "credit";
761
+ type: "charge" | "add_on" | "subscription" | "credit";
729
762
  /** @example "code" */
730
- code?: string;
763
+ code: string;
731
764
  /** @example "name" */
732
- name?: string;
765
+ name: string;
733
766
  };
734
767
  }
735
- export interface InvoiceObject {
768
+ export interface InvoiceMetadataObject {
736
769
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
737
770
  lago_id?: string;
771
+ /** @example "name" */
772
+ key?: string;
773
+ /** @example "John" */
774
+ value?: string;
775
+ /** @example "2022-09-14T16:35:31.000Z" */
776
+ created_at?: string;
777
+ }
778
+ export interface InvoiceObject {
779
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
780
+ lago_id: string;
738
781
  /** @example 12345 */
739
- sequential_id?: number;
782
+ sequential_id: number;
740
783
  /** @example 222345 */
741
- number?: string;
784
+ number: string;
742
785
  /** @example "2022-09-14T16:35:31.000Z" */
743
- issuing_date?: string;
786
+ charges_from_date: string;
787
+ /** @example "2022-09-14T16:35:31.000Z" */
788
+ issuing_date: string;
744
789
  invoice_type?: "subscription" | "add_on" | "credit";
745
- status?: "draft" | "finalized";
746
- payment_status?: "pending" | "succeeded" | "failed";
790
+ status: "draft" | "finalized";
791
+ payment_status: "pending" | "succeeded" | "failed";
747
792
  /** @example 1200 */
748
- amount_cents?: number;
793
+ amount_cents: number;
749
794
  /** @example "EUR" */
750
- amount_currency?: string;
795
+ amount_currency: string;
751
796
  /** @example 20 */
752
- vat_amount_cents?: number;
797
+ vat_amount_cents: number;
753
798
  /** @example "EUR" */
754
- vat_amount_currency?: string;
799
+ vat_amount_currency: string;
755
800
  /** @example 20 */
756
- credit_amount_cents?: number;
801
+ credit_amount_cents: number;
757
802
  /** @example "EUR" */
758
- credit_amount_currency?: string;
803
+ credit_amount_currency: string;
759
804
  /** @example 1220 */
760
- total_amount_cents?: number;
805
+ total_amount_cents: number;
761
806
  /** @example "EUR" */
762
- total_amount_currency?: string;
807
+ total_amount_currency: string;
763
808
  /** @example true */
764
- legacy?: boolean;
809
+ legacy: boolean;
765
810
  /** @example "https://example.com" */
766
811
  file_url?: string;
767
- customer?: CustomerObject;
768
- subscriptions?: SubscriptionObject[];
769
- fees?: FeeObject[];
770
- credits?: CreditObject[];
812
+ customer: CustomerObject;
813
+ subscriptions: SubscriptionObject[];
814
+ metadata?: InvoiceMetadataObject[];
815
+ fees: FeeObject[];
816
+ credits: CreditObject[];
771
817
  }
772
818
  export interface Invoice {
773
- invoice?: InvoiceObject;
819
+ invoice: InvoiceObject;
774
820
  }
775
821
  export interface Invoices {
776
- invoices?: InvoiceObject[];
822
+ invoices: InvoiceObject[];
777
823
  }
778
824
  export interface InvoiceInput {
779
- invoice?: {
825
+ invoice: {
780
826
  /** Status */
781
- payment_status?: "pending" | "succeeded" | "failed";
827
+ payment_status: "pending" | "succeeded" | "failed";
828
+ metadata?: {
829
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
830
+ id?: string;
831
+ /** @example "name" */
832
+ key?: string;
833
+ /** @example "John" */
834
+ value?: string;
835
+ }[];
782
836
  };
783
837
  }
784
838
  export interface WalletObject {
785
839
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
786
- lago_id?: string;
840
+ lago_id: string;
787
841
  /** @example "254da83c-c007-4fbb-afcd-b00c07c41oit" */
788
- lago_customer_id?: string;
842
+ lago_customer_id: string;
789
843
  /** @example 12345 */
790
- external_customer_id?: string;
844
+ external_customer_id: string;
791
845
  /** Status */
792
- status?: "active" | "terminated";
846
+ status: "active" | "terminated";
793
847
  /** @example "EUR" */
794
- currency?: string;
848
+ currency: string;
795
849
  /** @example "Name" */
796
850
  name?: string;
797
851
  /** @example 2 */
798
- rate_amount?: number;
852
+ rate_amount: number;
799
853
  /** @example 500 */
800
- credits_balance?: number;
854
+ credits_balance: number;
801
855
  /** @example 1000 */
802
- balance?: number;
856
+ balance: number;
803
857
  /** @example 100 */
804
- consumed_credits?: number;
858
+ consumed_credits: number;
805
859
  /** @example "2022-09-14T16:35:31.000Z" */
806
- created_at?: string;
860
+ created_at: string;
807
861
  /** @example "2022-09-14T23:59:59.000Z" */
808
862
  expiration_at?: string;
809
863
  /** @example "2022-09-14T16:35:31.000Z" */
@@ -814,31 +868,31 @@ export interface WalletObject {
814
868
  terminated_at?: string;
815
869
  }
816
870
  export interface Wallet {
817
- wallet?: WalletObject;
871
+ wallet: WalletObject;
818
872
  }
819
873
  export interface Wallets {
820
- wallets?: WalletObject[];
874
+ wallets: WalletObject[];
821
875
  }
822
876
  export interface WalletInput {
823
877
  wallet?: {
824
878
  /** @example "Wallet name" */
825
879
  name?: string;
826
880
  /** @example 2 */
827
- rate_amount?: number;
881
+ rate_amount: number;
828
882
  /** @example "EUR" */
829
- currency?: string;
883
+ currency: string;
830
884
  /** @example 500 */
831
885
  paid_credits?: number;
832
886
  /** @example 10 */
833
887
  granted_credits?: number;
834
888
  /** @example 12345 */
835
- external_customer_id?: string;
889
+ external_customer_id: string;
836
890
  /** @example "2022-09-14T23:59:59.000Z" */
837
891
  expiration_at?: string;
838
892
  };
839
893
  }
840
894
  export interface WalletUpdateInput {
841
- wallet?: {
895
+ wallet: {
842
896
  /** @example "Wallet name" */
843
897
  name?: string;
844
898
  /** @example "2022-09-14T23:59:59.000Z" */
@@ -847,32 +901,32 @@ export interface WalletUpdateInput {
847
901
  }
848
902
  export interface WalletTransactionObject {
849
903
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
850
- lago_id?: string;
904
+ lago_id: string;
851
905
  /** @example "985da83c-c007-4fbb-afcd-b00c07c41ffe" */
852
- lago_wallet_id?: string;
906
+ lago_wallet_id: string;
853
907
  /** Status */
854
- status?: "pending" | "settled";
908
+ status: "pending" | "settled";
855
909
  /** Transaction type */
856
- transaction_type?: "inbound" | "outbound";
910
+ transaction_type: "inbound" | "outbound";
857
911
  /** @example 500 */
858
- amount?: number;
912
+ amount: number;
859
913
  /** @example 100 */
860
- credit_amount?: number;
914
+ credit_amount: number;
861
915
  /** @example "2022-09-14T16:35:31.000Z" */
862
916
  settled_at?: string;
863
917
  /** @example "2022-09-14T16:35:31.000Z" */
864
- created_at?: string;
918
+ created_at: string;
865
919
  }
866
920
  export interface WalletTransaction {
867
- wallet_transaction?: WalletTransactionObject;
921
+ wallet_transaction: WalletTransactionObject;
868
922
  }
869
923
  export interface WalletTransactions {
870
- wallet_transactions?: WalletTransactionObject[];
924
+ wallet_transactions: WalletTransactionObject[];
871
925
  }
872
926
  export interface WalletTransactionInput {
873
- wallet_transaction?: {
927
+ wallet_transaction: {
874
928
  /** @example "985da83c-c007-4fbb-afcd-b00c07c41ffe" */
875
- wallet_id?: string;
929
+ wallet_id: string;
876
930
  /** @example 100 */
877
931
  paid_credits?: number;
878
932
  /** @example 10 */
@@ -881,97 +935,97 @@ export interface WalletTransactionInput {
881
935
  }
882
936
  export interface CreditNoteItemObject {
883
937
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
884
- lago_id?: string;
938
+ lago_id: string;
885
939
  /** @example 1220 */
886
- amount_cents?: number;
940
+ amount_cents: number;
887
941
  /** @example "EUR" */
888
- amount_currency?: string;
889
- fee?: FeeObject;
942
+ amount_currency: string;
943
+ fee: FeeObject;
890
944
  }
891
945
  export interface CreditNoteObject {
892
946
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
893
- lago_id?: string;
947
+ lago_id: string;
894
948
  /** @example 1234 */
895
- sequential_id?: number;
896
- /** @example 123456789 */
897
- number?: string;
949
+ sequential_id: number;
950
+ /** @example "123456789" */
951
+ number: string;
898
952
  /** @example "144da83c-c007-4fbb-afcd-b00c07c41ffe" */
899
- lago_invoice_id?: string;
900
- /** @example 123456789 */
901
- invoice_number?: string;
953
+ lago_invoice_id: string;
954
+ /** @example "123456789" */
955
+ invoice_number: string;
902
956
  /** @example "2022-09-14T16:35:31.000Z" */
903
- issuing_date?: string;
957
+ issuing_date: string;
904
958
  /** Credit status */
905
959
  credit_status?: "available" | "consumed" | "voided";
906
960
  /** Refund status */
907
961
  refund_status?: "pending" | "succeeded" | "failed";
908
962
  /** Reason */
909
- reason?: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
963
+ reason: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
910
964
  /** @example "description" */
911
965
  description?: string;
912
966
  /** @example 1220 */
913
- total_amount_cents?: number;
967
+ total_amount_cents: number;
914
968
  /** @example "EUR" */
915
- total_amount_currency?: string;
969
+ total_amount_currency: string;
916
970
  /** @example 20 */
917
- vat_amount_cents?: number;
971
+ vat_amount_cents: number;
918
972
  /** @example "EUR" */
919
- vat_amount_currency?: string;
973
+ vat_amount_currency: string;
920
974
  /** @example 1000 */
921
- sub_total_vat_excluded_amount_cents?: number;
975
+ sub_total_vat_excluded_amount_cents: number;
922
976
  /** @example "EUR" */
923
- sub_total_vat_excluded_amount_currency?: string;
977
+ sub_total_vat_excluded_amount_currency: string;
924
978
  /** @example 20 */
925
- balance_amount_cents?: number;
979
+ balance_amount_cents: number;
926
980
  /** @example "EUR" */
927
- balance_amount_currency?: string;
981
+ balance_amount_currency: string;
928
982
  /** @example 20 */
929
- credit_amount_cents?: number;
983
+ credit_amount_cents: number;
930
984
  /** @example "EUR" */
931
- credit_amount_currency?: string;
985
+ credit_amount_currency: string;
932
986
  /** @example 20 */
933
- refund_amount_cents?: number;
987
+ refund_amount_cents: number;
934
988
  /** @example "EUR" */
935
- refund_amount_currency?: string;
989
+ refund_amount_currency: string;
936
990
  /** @example "2022-09-14T16:35:31.000Z" */
937
- created_at?: string;
991
+ created_at: string;
938
992
  /** @example "2022-09-14T16:35:31.000Z" */
939
- updated_at?: string;
993
+ updated_at: string;
940
994
  /** @example "https://example.com" */
941
995
  file_url?: string;
942
996
  customer?: CustomerObject;
943
997
  items?: CreditNoteItemObject[];
944
998
  }
945
999
  export interface CreditNote {
946
- credit_note?: CreditNoteObject;
1000
+ credit_note: CreditNoteObject;
947
1001
  }
948
1002
  export interface CreditNotes {
949
- credit_notes?: CreditNoteObject[];
1003
+ credit_notes: CreditNoteObject[];
950
1004
  }
951
1005
  export interface CreditNoteInput {
952
- credit_note?: {
1006
+ credit_note: {
953
1007
  /** @example "194da83c-c007-4fbb-afcd-b00c07c41fzh" */
954
- invoice_id?: string;
1008
+ invoice_id: string;
955
1009
  /** Reason */
956
- reason?: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
1010
+ reason: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
957
1011
  /** @example "description" */
958
1012
  description?: string;
959
1013
  /** @example 20 */
960
- credit_amount_cents?: number;
1014
+ credit_amount_cents: number;
961
1015
  /** @example 20 */
962
- refund_amount_cents?: number;
963
- items?: {
1016
+ refund_amount_cents: number;
1017
+ items: {
964
1018
  /** @example "144da83c-c007-4fbb-afcd-b00c07c41ffe" */
965
- fee_id?: string;
1019
+ fee_id: string;
966
1020
  /** @example 20 */
967
- amount_cents?: number;
1021
+ amount_cents: number;
968
1022
  }[];
969
1023
  };
970
1024
  }
971
1025
  export interface CreditNoteUpdateInput {
972
- credit_note?: {
1026
+ credit_note: {
973
1027
  /** Refund status */
974
- refund_status?: "pending" | "succeeded" | "failed";
1028
+ refund_status: "pending" | "succeeded" | "failed";
975
1029
  };
976
1030
  }
977
1031
  export interface ApiResponseBadRequest {
@@ -979,52 +1033,52 @@ export interface ApiResponseBadRequest {
979
1033
  * @format int32
980
1034
  * @example 400
981
1035
  */
982
- status?: number;
1036
+ status: number;
983
1037
  /** @example "Bad request" */
984
- error?: string;
1038
+ error: string;
985
1039
  }
986
1040
  export interface ApiResponseUnauthorized {
987
1041
  /**
988
1042
  * @format int32
989
1043
  * @example 401
990
1044
  */
991
- status?: number;
1045
+ status: number;
992
1046
  /** @example "Unauthorized" */
993
- error?: string;
1047
+ error: string;
994
1048
  }
995
1049
  export interface ApiResponseUnprocessableEntity {
996
1050
  /**
997
1051
  * @format int32
998
1052
  * @example 422
999
1053
  */
1000
- status?: number;
1054
+ status: number;
1001
1055
  /** @example "Unprocessable entity" */
1002
- error?: string;
1056
+ error: string;
1003
1057
  /** @example "validation_errors" */
1004
- code?: string;
1005
- error_details?: object;
1058
+ code: string;
1059
+ error_details: object;
1006
1060
  }
1007
1061
  export interface ApiResponseNotFound {
1008
1062
  /**
1009
1063
  * @format int32
1010
1064
  * @example 404
1011
1065
  */
1012
- status?: number;
1066
+ status: number;
1013
1067
  /** @example "Not Found" */
1014
- error?: string;
1068
+ error: string;
1015
1069
  /** @example "object_not_found" */
1016
- code?: string;
1070
+ code: string;
1017
1071
  }
1018
1072
  export interface ApiResponseNotAllowed {
1019
1073
  /**
1020
1074
  * @format int32
1021
1075
  * @example 405
1022
1076
  */
1023
- status?: number;
1077
+ status: number;
1024
1078
  /** @example "Method Not Allowed" */
1025
- error?: string;
1079
+ error: string;
1026
1080
  /** @example "not_allowed" */
1027
- code?: string;
1081
+ code: string;
1028
1082
  }
1029
1083
  export type QueryParamsType = Record<string | number, any>;
1030
1084
  export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
@@ -1086,7 +1140,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
1086
1140
  }
1087
1141
  /**
1088
1142
  * @title Lago API documentation
1089
- * @version 0.23.0-beta
1143
+ * @version 0.26.0-beta
1090
1144
  * @baseUrl https://api.getlago.com/api/v1
1091
1145
  * @externalDocs https://github.com/getlago
1092
1146
  * @contact <tech@getlago.com>
@@ -1351,7 +1405,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1351
1405
  status?: "active" | "terminated";
1352
1406
  /**
1353
1407
  * External customer ID
1354
- * @example 12345
1408
+ * @example "12345"
1355
1409
  */
1356
1410
  external_customer_id?: string;
1357
1411
  }, params?: RequestParams) => Promise<HttpResponse<AppliedCoupons, ApiResponseUnauthorized>>;
@@ -1411,7 +1465,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1411
1465
  findCustomerCurrentUsage: (customerExternalId: string, query: {
1412
1466
  /**
1413
1467
  * External subscription ID
1414
- * @example 54321
1468
+ * @example "54321"
1415
1469
  */
1416
1470
  external_subscription_id: string;
1417
1471
  }, params?: RequestParams) => Promise<HttpResponse<CustomerUsage, ApiResponseUnauthorized | ApiResponseNotFound>>;
@@ -1595,7 +1649,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1595
1649
  per_page?: number;
1596
1650
  /**
1597
1651
  * External customer ID
1598
- * @example 12345
1652
+ * @example "12345"
1599
1653
  */
1600
1654
  external_customer_id: string;
1601
1655
  }, params?: RequestParams) => Promise<HttpResponse<Subscriptions, ApiResponseUnauthorized | ApiResponseNotFound>>;
@@ -1695,7 +1749,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1695
1749
  per_page?: number;
1696
1750
  /**
1697
1751
  * External customer ID
1698
- * @example 12345
1752
+ * @example "12345"
1699
1753
  */
1700
1754
  external_customer_id?: string;
1701
1755
  /**
@@ -1715,6 +1769,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1715
1769
  status?: string;
1716
1770
  }, params?: RequestParams) => Promise<HttpResponse<Invoices, ApiResponseUnauthorized>>;
1717
1771
  };
1772
+ fees: {
1773
+ /**
1774
+ * @description Return a single fee
1775
+ *
1776
+ * @tags fees
1777
+ * @name FindFee
1778
+ * @summary Find fee by ID
1779
+ * @request GET:/fees/{id}
1780
+ * @secure
1781
+ */
1782
+ findFee: (id: string, params?: RequestParams) => Promise<HttpResponse<FeeObject, ApiResponseUnauthorized | ApiResponseNotFound>>;
1783
+ };
1718
1784
  wallets: {
1719
1785
  /**
1720
1786
  * @description Create a new wallet
@@ -1778,7 +1844,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1778
1844
  per_page?: number;
1779
1845
  /**
1780
1846
  * External customer ID
1781
- * @example 12345
1847
+ * @example "12345"
1782
1848
  */
1783
1849
  external_customer_id: string;
1784
1850
  }, params?: RequestParams) => Promise<HttpResponse<Wallets, ApiResponseUnauthorized>>;
@@ -1899,7 +1965,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1899
1965
  per_page?: number;
1900
1966
  /**
1901
1967
  * External customer ID
1902
- * @example 12345
1968
+ * @example "12345"
1903
1969
  */
1904
1970
  external_customer_id?: string;
1905
1971
  }, params?: RequestParams) => Promise<HttpResponse<CreditNotes, ApiResponseUnauthorized>>;