lago-javascript-client 0.23.0-beta → 0.26.1-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.
@@ -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,150 @@ 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
- /** @example 1200 */
715
- amount_cents?: number;
747
+ /** @example 1000 */
748
+ amount_cents: number;
716
749
  /** @example "EUR" */
717
- amount_currency?: string;
718
- /** @example 1200 */
719
- vat_amount_cents?: number;
750
+ amount_currency: string;
751
+ /** @example 200 */
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;
757
+ /** @example 1200 */
758
+ total_amount_cents?: number;
759
+ /** @example "EUR" */
760
+ total_amount_currency?: string;
724
761
  /** @example 5 */
725
762
  events_count?: number;
726
- item?: {
763
+ item: {
727
764
  /** Billing time */
728
- type?: "charge" | "add_on" | "subscription" | "credit";
765
+ type: "charge" | "add_on" | "subscription" | "credit";
729
766
  /** @example "code" */
730
- code?: string;
767
+ code: string;
731
768
  /** @example "name" */
732
- name?: string;
769
+ name: string;
733
770
  };
734
771
  }
735
- export interface InvoiceObject {
772
+ export interface InvoiceMetadataObject {
736
773
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
737
774
  lago_id?: string;
775
+ /** @example "name" */
776
+ key?: string;
777
+ /** @example "John" */
778
+ value?: string;
779
+ /** @example "2022-09-14T16:35:31.000Z" */
780
+ created_at?: string;
781
+ }
782
+ export interface InvoiceObject {
783
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
784
+ lago_id: string;
738
785
  /** @example 12345 */
739
- sequential_id?: number;
786
+ sequential_id: number;
740
787
  /** @example 222345 */
741
- number?: string;
788
+ number: string;
742
789
  /** @example "2022-09-14T16:35:31.000Z" */
743
- issuing_date?: string;
790
+ charges_from_date: string;
791
+ /** @example "2022-09-14T16:35:31.000Z" */
792
+ issuing_date: string;
744
793
  invoice_type?: "subscription" | "add_on" | "credit";
745
- status?: "draft" | "finalized";
746
- payment_status?: "pending" | "succeeded" | "failed";
794
+ status: "draft" | "finalized";
795
+ payment_status: "pending" | "succeeded" | "failed";
747
796
  /** @example 1200 */
748
- amount_cents?: number;
797
+ amount_cents: number;
749
798
  /** @example "EUR" */
750
- amount_currency?: string;
799
+ amount_currency: string;
751
800
  /** @example 20 */
752
- vat_amount_cents?: number;
801
+ vat_amount_cents: number;
753
802
  /** @example "EUR" */
754
- vat_amount_currency?: string;
803
+ vat_amount_currency: string;
755
804
  /** @example 20 */
756
- credit_amount_cents?: number;
805
+ credit_amount_cents: number;
757
806
  /** @example "EUR" */
758
- credit_amount_currency?: string;
807
+ credit_amount_currency: string;
759
808
  /** @example 1220 */
760
- total_amount_cents?: number;
809
+ total_amount_cents: number;
761
810
  /** @example "EUR" */
762
- total_amount_currency?: string;
811
+ total_amount_currency: string;
763
812
  /** @example true */
764
- legacy?: boolean;
813
+ legacy: boolean;
765
814
  /** @example "https://example.com" */
766
815
  file_url?: string;
767
- customer?: CustomerObject;
768
- subscriptions?: SubscriptionObject[];
769
- fees?: FeeObject[];
770
- credits?: CreditObject[];
816
+ customer: CustomerObject;
817
+ subscriptions: SubscriptionObject[];
818
+ metadata?: InvoiceMetadataObject[];
819
+ fees: FeeObject[];
820
+ credits: CreditObject[];
771
821
  }
772
822
  export interface Invoice {
773
- invoice?: InvoiceObject;
823
+ invoice: InvoiceObject;
774
824
  }
775
825
  export interface Invoices {
776
- invoices?: InvoiceObject[];
826
+ invoices: InvoiceObject[];
777
827
  }
778
828
  export interface InvoiceInput {
779
- invoice?: {
829
+ invoice: {
780
830
  /** Status */
781
- payment_status?: "pending" | "succeeded" | "failed";
831
+ payment_status: "pending" | "succeeded" | "failed";
832
+ metadata?: {
833
+ /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
834
+ id?: string;
835
+ /** @example "name" */
836
+ key?: string;
837
+ /** @example "John" */
838
+ value?: string;
839
+ }[];
782
840
  };
783
841
  }
784
842
  export interface WalletObject {
785
843
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
786
- lago_id?: string;
844
+ lago_id: string;
787
845
  /** @example "254da83c-c007-4fbb-afcd-b00c07c41oit" */
788
- lago_customer_id?: string;
846
+ lago_customer_id: string;
789
847
  /** @example 12345 */
790
- external_customer_id?: string;
848
+ external_customer_id: string;
791
849
  /** Status */
792
- status?: "active" | "terminated";
850
+ status: "active" | "terminated";
793
851
  /** @example "EUR" */
794
- currency?: string;
852
+ currency: string;
795
853
  /** @example "Name" */
796
854
  name?: string;
797
855
  /** @example 2 */
798
- rate_amount?: number;
856
+ rate_amount: number;
799
857
  /** @example 500 */
800
- credits_balance?: number;
858
+ credits_balance: number;
801
859
  /** @example 1000 */
802
- balance?: number;
860
+ balance: number;
803
861
  /** @example 100 */
804
- consumed_credits?: number;
862
+ consumed_credits: number;
805
863
  /** @example "2022-09-14T16:35:31.000Z" */
806
- created_at?: string;
864
+ created_at: string;
807
865
  /** @example "2022-09-14T23:59:59.000Z" */
808
866
  expiration_at?: string;
809
867
  /** @example "2022-09-14T16:35:31.000Z" */
@@ -814,31 +872,31 @@ export interface WalletObject {
814
872
  terminated_at?: string;
815
873
  }
816
874
  export interface Wallet {
817
- wallet?: WalletObject;
875
+ wallet: WalletObject;
818
876
  }
819
877
  export interface Wallets {
820
- wallets?: WalletObject[];
878
+ wallets: WalletObject[];
821
879
  }
822
880
  export interface WalletInput {
823
881
  wallet?: {
824
882
  /** @example "Wallet name" */
825
883
  name?: string;
826
884
  /** @example 2 */
827
- rate_amount?: number;
885
+ rate_amount: number;
828
886
  /** @example "EUR" */
829
- currency?: string;
887
+ currency: string;
830
888
  /** @example 500 */
831
889
  paid_credits?: number;
832
890
  /** @example 10 */
833
891
  granted_credits?: number;
834
892
  /** @example 12345 */
835
- external_customer_id?: string;
893
+ external_customer_id: string;
836
894
  /** @example "2022-09-14T23:59:59.000Z" */
837
895
  expiration_at?: string;
838
896
  };
839
897
  }
840
898
  export interface WalletUpdateInput {
841
- wallet?: {
899
+ wallet: {
842
900
  /** @example "Wallet name" */
843
901
  name?: string;
844
902
  /** @example "2022-09-14T23:59:59.000Z" */
@@ -847,32 +905,32 @@ export interface WalletUpdateInput {
847
905
  }
848
906
  export interface WalletTransactionObject {
849
907
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
850
- lago_id?: string;
908
+ lago_id: string;
851
909
  /** @example "985da83c-c007-4fbb-afcd-b00c07c41ffe" */
852
- lago_wallet_id?: string;
910
+ lago_wallet_id: string;
853
911
  /** Status */
854
- status?: "pending" | "settled";
912
+ status: "pending" | "settled";
855
913
  /** Transaction type */
856
- transaction_type?: "inbound" | "outbound";
914
+ transaction_type: "inbound" | "outbound";
857
915
  /** @example 500 */
858
- amount?: number;
916
+ amount: number;
859
917
  /** @example 100 */
860
- credit_amount?: number;
918
+ credit_amount: number;
861
919
  /** @example "2022-09-14T16:35:31.000Z" */
862
920
  settled_at?: string;
863
921
  /** @example "2022-09-14T16:35:31.000Z" */
864
- created_at?: string;
922
+ created_at: string;
865
923
  }
866
924
  export interface WalletTransaction {
867
- wallet_transaction?: WalletTransactionObject;
925
+ wallet_transaction: WalletTransactionObject;
868
926
  }
869
927
  export interface WalletTransactions {
870
- wallet_transactions?: WalletTransactionObject[];
928
+ wallet_transactions: WalletTransactionObject[];
871
929
  }
872
930
  export interface WalletTransactionInput {
873
- wallet_transaction?: {
931
+ wallet_transaction: {
874
932
  /** @example "985da83c-c007-4fbb-afcd-b00c07c41ffe" */
875
- wallet_id?: string;
933
+ wallet_id: string;
876
934
  /** @example 100 */
877
935
  paid_credits?: number;
878
936
  /** @example 10 */
@@ -881,97 +939,97 @@ export interface WalletTransactionInput {
881
939
  }
882
940
  export interface CreditNoteItemObject {
883
941
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
884
- lago_id?: string;
942
+ lago_id: string;
885
943
  /** @example 1220 */
886
- amount_cents?: number;
944
+ amount_cents: number;
887
945
  /** @example "EUR" */
888
- amount_currency?: string;
889
- fee?: FeeObject;
946
+ amount_currency: string;
947
+ fee: FeeObject;
890
948
  }
891
949
  export interface CreditNoteObject {
892
950
  /** @example "183da83c-c007-4fbb-afcd-b00c07c41ffe" */
893
- lago_id?: string;
951
+ lago_id: string;
894
952
  /** @example 1234 */
895
- sequential_id?: number;
896
- /** @example 123456789 */
897
- number?: string;
953
+ sequential_id: number;
954
+ /** @example "123456789" */
955
+ number: string;
898
956
  /** @example "144da83c-c007-4fbb-afcd-b00c07c41ffe" */
899
- lago_invoice_id?: string;
900
- /** @example 123456789 */
901
- invoice_number?: string;
957
+ lago_invoice_id: string;
958
+ /** @example "123456789" */
959
+ invoice_number: string;
902
960
  /** @example "2022-09-14T16:35:31.000Z" */
903
- issuing_date?: string;
961
+ issuing_date: string;
904
962
  /** Credit status */
905
963
  credit_status?: "available" | "consumed" | "voided";
906
964
  /** Refund status */
907
965
  refund_status?: "pending" | "succeeded" | "failed";
908
966
  /** Reason */
909
- reason?: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
967
+ reason: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
910
968
  /** @example "description" */
911
969
  description?: string;
912
970
  /** @example 1220 */
913
- total_amount_cents?: number;
971
+ total_amount_cents: number;
914
972
  /** @example "EUR" */
915
- total_amount_currency?: string;
973
+ total_amount_currency: string;
916
974
  /** @example 20 */
917
- vat_amount_cents?: number;
975
+ vat_amount_cents: number;
918
976
  /** @example "EUR" */
919
- vat_amount_currency?: string;
977
+ vat_amount_currency: string;
920
978
  /** @example 1000 */
921
- sub_total_vat_excluded_amount_cents?: number;
979
+ sub_total_vat_excluded_amount_cents: number;
922
980
  /** @example "EUR" */
923
- sub_total_vat_excluded_amount_currency?: string;
981
+ sub_total_vat_excluded_amount_currency: string;
924
982
  /** @example 20 */
925
- balance_amount_cents?: number;
983
+ balance_amount_cents: number;
926
984
  /** @example "EUR" */
927
- balance_amount_currency?: string;
985
+ balance_amount_currency: string;
928
986
  /** @example 20 */
929
- credit_amount_cents?: number;
987
+ credit_amount_cents: number;
930
988
  /** @example "EUR" */
931
- credit_amount_currency?: string;
989
+ credit_amount_currency: string;
932
990
  /** @example 20 */
933
- refund_amount_cents?: number;
991
+ refund_amount_cents: number;
934
992
  /** @example "EUR" */
935
- refund_amount_currency?: string;
993
+ refund_amount_currency: string;
936
994
  /** @example "2022-09-14T16:35:31.000Z" */
937
- created_at?: string;
995
+ created_at: string;
938
996
  /** @example "2022-09-14T16:35:31.000Z" */
939
- updated_at?: string;
997
+ updated_at: string;
940
998
  /** @example "https://example.com" */
941
999
  file_url?: string;
942
1000
  customer?: CustomerObject;
943
1001
  items?: CreditNoteItemObject[];
944
1002
  }
945
1003
  export interface CreditNote {
946
- credit_note?: CreditNoteObject;
1004
+ credit_note: CreditNoteObject;
947
1005
  }
948
1006
  export interface CreditNotes {
949
- credit_notes?: CreditNoteObject[];
1007
+ credit_notes: CreditNoteObject[];
950
1008
  }
951
1009
  export interface CreditNoteInput {
952
- credit_note?: {
1010
+ credit_note: {
953
1011
  /** @example "194da83c-c007-4fbb-afcd-b00c07c41fzh" */
954
- invoice_id?: string;
1012
+ invoice_id: string;
955
1013
  /** Reason */
956
- reason?: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
1014
+ reason: "duplicated_charge" | "product_unsatisfactory" | "order_change" | "order_cancellation" | "fraudulent_charge" | "other";
957
1015
  /** @example "description" */
958
1016
  description?: string;
959
1017
  /** @example 20 */
960
- credit_amount_cents?: number;
1018
+ credit_amount_cents: number;
961
1019
  /** @example 20 */
962
- refund_amount_cents?: number;
963
- items?: {
1020
+ refund_amount_cents: number;
1021
+ items: {
964
1022
  /** @example "144da83c-c007-4fbb-afcd-b00c07c41ffe" */
965
- fee_id?: string;
1023
+ fee_id: string;
966
1024
  /** @example 20 */
967
- amount_cents?: number;
1025
+ amount_cents: number;
968
1026
  }[];
969
1027
  };
970
1028
  }
971
1029
  export interface CreditNoteUpdateInput {
972
- credit_note?: {
1030
+ credit_note: {
973
1031
  /** Refund status */
974
- refund_status?: "pending" | "succeeded" | "failed";
1032
+ refund_status: "pending" | "succeeded" | "failed";
975
1033
  };
976
1034
  }
977
1035
  export interface ApiResponseBadRequest {
@@ -979,52 +1037,52 @@ export interface ApiResponseBadRequest {
979
1037
  * @format int32
980
1038
  * @example 400
981
1039
  */
982
- status?: number;
1040
+ status: number;
983
1041
  /** @example "Bad request" */
984
- error?: string;
1042
+ error: string;
985
1043
  }
986
1044
  export interface ApiResponseUnauthorized {
987
1045
  /**
988
1046
  * @format int32
989
1047
  * @example 401
990
1048
  */
991
- status?: number;
1049
+ status: number;
992
1050
  /** @example "Unauthorized" */
993
- error?: string;
1051
+ error: string;
994
1052
  }
995
1053
  export interface ApiResponseUnprocessableEntity {
996
1054
  /**
997
1055
  * @format int32
998
1056
  * @example 422
999
1057
  */
1000
- status?: number;
1058
+ status: number;
1001
1059
  /** @example "Unprocessable entity" */
1002
- error?: string;
1060
+ error: string;
1003
1061
  /** @example "validation_errors" */
1004
- code?: string;
1005
- error_details?: object;
1062
+ code: string;
1063
+ error_details: object;
1006
1064
  }
1007
1065
  export interface ApiResponseNotFound {
1008
1066
  /**
1009
1067
  * @format int32
1010
1068
  * @example 404
1011
1069
  */
1012
- status?: number;
1070
+ status: number;
1013
1071
  /** @example "Not Found" */
1014
- error?: string;
1072
+ error: string;
1015
1073
  /** @example "object_not_found" */
1016
- code?: string;
1074
+ code: string;
1017
1075
  }
1018
1076
  export interface ApiResponseNotAllowed {
1019
1077
  /**
1020
1078
  * @format int32
1021
1079
  * @example 405
1022
1080
  */
1023
- status?: number;
1081
+ status: number;
1024
1082
  /** @example "Method Not Allowed" */
1025
- error?: string;
1083
+ error: string;
1026
1084
  /** @example "not_allowed" */
1027
- code?: string;
1085
+ code: string;
1028
1086
  }
1029
1087
  export type QueryParamsType = Record<string | number, any>;
1030
1088
  export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
@@ -1086,7 +1144,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
1086
1144
  }
1087
1145
  /**
1088
1146
  * @title Lago API documentation
1089
- * @version 0.23.0-beta
1147
+ * @version 0.26.0-beta
1090
1148
  * @baseUrl https://api.getlago.com/api/v1
1091
1149
  * @externalDocs https://github.com/getlago
1092
1150
  * @contact <tech@getlago.com>
@@ -1351,7 +1409,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1351
1409
  status?: "active" | "terminated";
1352
1410
  /**
1353
1411
  * External customer ID
1354
- * @example 12345
1412
+ * @example "12345"
1355
1413
  */
1356
1414
  external_customer_id?: string;
1357
1415
  }, params?: RequestParams) => Promise<HttpResponse<AppliedCoupons, ApiResponseUnauthorized>>;
@@ -1411,7 +1469,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1411
1469
  findCustomerCurrentUsage: (customerExternalId: string, query: {
1412
1470
  /**
1413
1471
  * External subscription ID
1414
- * @example 54321
1472
+ * @example "54321"
1415
1473
  */
1416
1474
  external_subscription_id: string;
1417
1475
  }, params?: RequestParams) => Promise<HttpResponse<CustomerUsage, ApiResponseUnauthorized | ApiResponseNotFound>>;
@@ -1595,7 +1653,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1595
1653
  per_page?: number;
1596
1654
  /**
1597
1655
  * External customer ID
1598
- * @example 12345
1656
+ * @example "12345"
1599
1657
  */
1600
1658
  external_customer_id: string;
1601
1659
  }, params?: RequestParams) => Promise<HttpResponse<Subscriptions, ApiResponseUnauthorized | ApiResponseNotFound>>;
@@ -1695,7 +1753,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1695
1753
  per_page?: number;
1696
1754
  /**
1697
1755
  * External customer ID
1698
- * @example 12345
1756
+ * @example "12345"
1699
1757
  */
1700
1758
  external_customer_id?: string;
1701
1759
  /**
@@ -1715,6 +1773,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1715
1773
  status?: string;
1716
1774
  }, params?: RequestParams) => Promise<HttpResponse<Invoices, ApiResponseUnauthorized>>;
1717
1775
  };
1776
+ fees: {
1777
+ /**
1778
+ * @description Return a single fee
1779
+ *
1780
+ * @tags fees
1781
+ * @name FindFee
1782
+ * @summary Find fee by ID
1783
+ * @request GET:/fees/{id}
1784
+ * @secure
1785
+ */
1786
+ findFee: (id: string, params?: RequestParams) => Promise<HttpResponse<FeeObject, ApiResponseUnauthorized | ApiResponseNotFound>>;
1787
+ };
1718
1788
  wallets: {
1719
1789
  /**
1720
1790
  * @description Create a new wallet
@@ -1778,7 +1848,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1778
1848
  per_page?: number;
1779
1849
  /**
1780
1850
  * External customer ID
1781
- * @example 12345
1851
+ * @example "12345"
1782
1852
  */
1783
1853
  external_customer_id: string;
1784
1854
  }, params?: RequestParams) => Promise<HttpResponse<Wallets, ApiResponseUnauthorized>>;
@@ -1899,7 +1969,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1899
1969
  per_page?: number;
1900
1970
  /**
1901
1971
  * External customer ID
1902
- * @example 12345
1972
+ * @example "12345"
1903
1973
  */
1904
1974
  external_customer_id?: string;
1905
1975
  }, params?: RequestParams) => Promise<HttpResponse<CreditNotes, ApiResponseUnauthorized>>;