Skip to content

Commit fe540ce

Browse files
Update to 2025-04-30.basil + 2025-04-30.preview (#1334)
* Update to 2025-04-30.basil * Update spec3.v2.sdk.preview.json and re-run `make resource` --------- Co-authored-by: etsai2-stripe <[email protected]>
1 parent 90ec7a4 commit fe540ce

File tree

7 files changed

+1155
-371
lines changed

7 files changed

+1155
-371
lines changed

api/ZOOLANDER_SHA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
03c37b440624d8cd1e07f5af7088af35b1167876
1+
fd2d3c700fac6d03a02403a915d72eebaeba299e

api/openapi-spec/spec3.v2.sdk.json

Lines changed: 56 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url" : "https://stripe.com",
1010
"email" : "[email protected]"
1111
},
12-
"version" : "2025-03-31.basil",
12+
"version" : "2025-04-30.basil",
1313
"x-stripeSpecFilename" : "spec3.v2.cli"
1414
},
1515
"servers" : [ {
@@ -1007,7 +1007,7 @@
10071007
"enum" : [ "v1.billing.meter.error_report_triggered" ]
10081008
}
10091009
},
1010-
"description" : "This event occurs when there are invalid async usage events for a given meter.",
1010+
"description" : "Occurs when a Meter has invalid async usage events.",
10111011
"x-stripeEvent" : {
10121012
"kind" : "thin",
10131013
"type" : "v1.billing.meter.error_report_triggered"
@@ -1099,7 +1099,7 @@
10991099
"enum" : [ "v1.billing.meter.no_meter_found" ]
11001100
}
11011101
},
1102-
"description" : "This event occurs when async usage events have missing or invalid meter ids.",
1102+
"description" : "Occurs when a Meter's id is missing or invalid in async usage events.",
11031103
"x-stripeEvent" : {
11041104
"kind" : "thin",
11051105
"type" : "v1.billing.meter.no_meter_found"
@@ -1122,10 +1122,6 @@
11221122
"type" : "string",
11231123
"description" : "A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period."
11241124
},
1125-
"livemode" : {
1126-
"type" : "boolean",
1127-
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
1128-
},
11291125
"object" : {
11301126
"type" : "string",
11311127
"description" : "String representing the object's type. Objects of the same type share the same value of the object field.",
@@ -1142,6 +1138,10 @@
11421138
"type" : "string",
11431139
"description" : "The time of the event. Must be within the past 35 calendar days or up to\n5 minutes in the future. Defaults to current timestamp if not specified.",
11441140
"format" : "date-time"
1141+
},
1142+
"livemode" : {
1143+
"type" : "boolean",
1144+
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
11451145
}
11461146
},
11471147
"description" : "Fix me empty_doc_string.",
@@ -1186,10 +1186,6 @@
11861186
"type" : "string",
11871187
"description" : "The unique id of this meter event adjustment."
11881188
},
1189-
"livemode" : {
1190-
"type" : "boolean",
1191-
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
1192-
},
11931189
"object" : {
11941190
"type" : "string",
11951191
"description" : "String representing the object's type. Objects of the same type share the same value of the object field.",
@@ -1204,6 +1200,10 @@
12041200
"type" : "string",
12051201
"description" : "Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.",
12061202
"enum" : [ "cancel" ]
1203+
},
1204+
"livemode" : {
1205+
"type" : "boolean",
1206+
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
12071207
}
12081208
},
12091209
"x-resourceId" : "v2.billing.meter_event_adjustment",
@@ -1241,14 +1241,14 @@
12411241
"type" : "string",
12421242
"description" : "The unique id of this auth session."
12431243
},
1244-
"livemode" : {
1245-
"type" : "boolean",
1246-
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
1247-
},
12481244
"object" : {
12491245
"type" : "string",
12501246
"description" : "String representing the object's type. Objects of the same type share the same value of the object field.",
12511247
"enum" : [ "v2.billing.meter_event_session" ]
1248+
},
1249+
"livemode" : {
1250+
"type" : "boolean",
1251+
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
12521252
}
12531253
},
12541254
"x-resourceId" : "v2.billing.meter_event_session",
@@ -1284,10 +1284,6 @@
12841284
"type" : "string",
12851285
"description" : "Unique identifier for the event."
12861286
},
1287-
"livemode" : {
1288-
"type" : "boolean",
1289-
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
1290-
},
12911287
"object" : {
12921288
"type" : "string",
12931289
"description" : "String representing the object's type. Objects of the same type share the same value of the object field.",
@@ -1342,6 +1338,10 @@
13421338
"type" : {
13431339
"type" : "string",
13441340
"description" : "The type of the event."
1341+
},
1342+
"livemode" : {
1343+
"type" : "boolean",
1344+
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
13451345
}
13461346
},
13471347
"description" : "Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload.",
@@ -1401,10 +1401,6 @@
14011401
"type" : "string",
14021402
"description" : "Unique identifier for the object."
14031403
},
1404-
"livemode" : {
1405-
"type" : "boolean",
1406-
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
1407-
},
14081404
"metadata" : {
14091405
"type" : "object",
14101406
"additionalProperties" : {
@@ -1458,6 +1454,10 @@
14581454
"description" : "Time at which the object was last updated.",
14591455
"format" : "date-time"
14601456
},
1457+
"livemode" : {
1458+
"type" : "boolean",
1459+
"description" : "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode."
1460+
},
14611461
"amazon_eventbridge" : {
14621462
"required" : [ "aws_account_id", "aws_event_source_arn", "aws_event_source_status" ],
14631463
"type" : "object",
@@ -1549,6 +1549,39 @@
15491549
"path" : "/v2/core/event_destinations/{id}/ping"
15501550
} ]
15511551
},
1552+
"v2.core.event_destination.ping" : {
1553+
"required" : [ "data", "related_object", "type" ],
1554+
"type" : "object",
1555+
"properties" : {
1556+
"data" : {
1557+
"type" : "object",
1558+
"properties" : { },
1559+
"description" : "Additional data about the event."
1560+
},
1561+
"related_object" : {
1562+
"required" : [ "type" ],
1563+
"type" : "object",
1564+
"properties" : {
1565+
"type" : {
1566+
"type" : "string",
1567+
"description" : "Object tag of the resource relevant to the event.",
1568+
"enum" : [ "v2.core.event_destination" ]
1569+
}
1570+
},
1571+
"description" : "Object containing the reference to API resource relevant to the event."
1572+
},
1573+
"type" : {
1574+
"type" : "string",
1575+
"description" : "The type of the event.",
1576+
"enum" : [ "v2.core.event_destination.ping" ]
1577+
}
1578+
},
1579+
"description" : "A ping event used to test the connection to an event destination.",
1580+
"x-stripeEvent" : {
1581+
"kind" : "thin",
1582+
"type" : "v2.core.event_destination.ping"
1583+
}
1584+
},
15521585
"v2.deleted_object" : {
15531586
"required" : [ "id" ],
15541587
"type" : "object",

0 commit comments

Comments
 (0)