Skip to content

Commit 85abb4b

Browse files
Update generated code for v1232
1 parent 41a5b6a commit 85abb4b

File tree

5 files changed

+128
-4
lines changed

5 files changed

+128
-4
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1230
1+
v1232
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// File generated from our OpenAPI spec
2+
3+
declare module 'stripe' {
4+
namespace Stripe {
5+
namespace Billing {
6+
/**
7+
* The MeterErrorReport object.
8+
*/
9+
interface MeterErrorReport {
10+
/**
11+
* Unique identifier for the object.
12+
*/
13+
id: string;
14+
15+
/**
16+
* String representing the object's type. Objects of the same type share the same value.
17+
*/
18+
object: 'billing.meter_error_report';
19+
20+
reason: MeterErrorReport.Reason;
21+
22+
/**
23+
* The related objects about the error
24+
*/
25+
related_object: MeterErrorReport.RelatedObject | null;
26+
27+
/**
28+
* Summary of invalid events
29+
*/
30+
summary: string;
31+
32+
/**
33+
* Time when validation ended. Measured in seconds since the Unix epoch
34+
*/
35+
validation_end: number;
36+
37+
/**
38+
* Time when validation started. Measured in seconds since the Unix epoch
39+
*/
40+
validation_start: number;
41+
}
42+
43+
namespace MeterErrorReport {
44+
interface Reason {
45+
/**
46+
* The number of errors generated
47+
*/
48+
error_count: number;
49+
50+
/**
51+
* More information about errors
52+
*/
53+
error_types: Array<Reason.ErrorType>;
54+
}
55+
56+
namespace Reason {
57+
interface ErrorType {
58+
sample_errors: Array<ErrorType.SampleError>;
59+
}
60+
61+
namespace ErrorType {
62+
interface SampleError {
63+
api_request: SampleError.ApiRequest | null;
64+
65+
/**
66+
* message of the error
67+
*/
68+
error_message: string;
69+
}
70+
71+
namespace SampleError {
72+
interface ApiRequest {
73+
/**
74+
* Unique identifier for the object.
75+
*/
76+
id: string;
77+
78+
/**
79+
* idempotency_key of the request
80+
*/
81+
idempotency_key: string;
82+
}
83+
}
84+
}
85+
}
86+
87+
interface RelatedObject {
88+
/**
89+
* Unique identifier for the object.
90+
*/
91+
id: string;
92+
93+
/**
94+
* The type of meter error related object. Should be 'meter'
95+
*/
96+
object: string;
97+
98+
/**
99+
* The url of the meter object
100+
*/
101+
url: string;
102+
}
103+
}
104+
}
105+
}
106+
}

types/EventTypes.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare module 'stripe' {
1414
| ApplicationFeeRefundedEvent
1515
| BalanceAvailableEvent
1616
| BillingAlertTriggeredEvent
17+
| BillingMeterErrorReportTriggeredEvent
1718
| BillingPortalConfigurationCreatedEvent
1819
| BillingPortalConfigurationUpdatedEvent
1920
| BillingPortalSessionCreatedEvent
@@ -417,6 +418,22 @@ declare module 'stripe' {
417418
}
418419
}
419420

421+
/**
422+
* Notifies of errors on a billing meter
423+
*/
424+
interface BillingMeterErrorReportTriggeredEvent extends EventBase {
425+
type: 'billing.meter_error_report.triggered';
426+
data: BillingMeterErrorReportTriggeredEvent.Data;
427+
}
428+
429+
namespace BillingMeterErrorReportTriggeredEvent {
430+
interface Data extends Stripe.Event.Data {
431+
object: Stripe.Billing.MeterErrorReport;
432+
433+
previous_attributes?: Partial<Stripe.Billing.MeterErrorReport>;
434+
}
435+
}
436+
420437
/**
421438
* Occurs whenever a portal configuration is created.
422439
*/

types/InvoicesResource.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ declare module 'stripe' {
17531753
expand?: Array<string>;
17541754

17551755
/**
1756-
* List of invoice items to add or update in the upcoming invoice preview.
1756+
* List of invoice items to add or update in the upcoming invoice preview (up to 250).
17571757
*/
17581758
invoice_items?: Array<InvoiceCreatePreviewParams.InvoiceItem>;
17591759

@@ -2867,7 +2867,7 @@ declare module 'stripe' {
28672867
expand?: Array<string>;
28682868

28692869
/**
2870-
* List of invoice items to add or update in the upcoming invoice preview.
2870+
* List of invoice items to add or update in the upcoming invoice preview (up to 250).
28712871
*/
28722872
invoice_items?: Array<InvoiceListUpcomingLinesParams.InvoiceItem>;
28732873

@@ -4253,7 +4253,7 @@ declare module 'stripe' {
42534253
expand?: Array<string>;
42544254

42554255
/**
4256-
* List of invoice items to add or update in the upcoming invoice preview.
4256+
* List of invoice items to add or update in the upcoming invoice preview (up to 250).
42574257
*/
42584258
invoice_items?: Array<InvoiceRetrieveUpcomingParams.InvoiceItem>;
42594259

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
///<reference path='./BankAccounts.d.ts' />
138138
///<reference path='./Billing/AlertTriggereds.d.ts' />
139139
///<reference path='./Billing/Alerts.d.ts' />
140+
///<reference path='./Billing/MeterErrorReports.d.ts' />
140141
///<reference path='./Billing/MeterEventAdjustments.d.ts' />
141142
///<reference path='./Billing/MeterEventSummaries.d.ts' />
142143
///<reference path='./Billing/MeterEvents.d.ts' />

0 commit comments

Comments
 (0)