|
9 | 9 | "url" : "https://stripe.com", |
10 | 10 | |
11 | 11 | }, |
12 | | - "version" : "2025-03-31.basil", |
| 12 | + "version" : "2025-04-30.basil", |
13 | 13 | "x-stripeSpecFilename" : "spec3.v2.cli" |
14 | 14 | }, |
15 | 15 | "servers" : [ { |
|
1007 | 1007 | "enum" : [ "v1.billing.meter.error_report_triggered" ] |
1008 | 1008 | } |
1009 | 1009 | }, |
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.", |
1011 | 1011 | "x-stripeEvent" : { |
1012 | 1012 | "kind" : "thin", |
1013 | 1013 | "type" : "v1.billing.meter.error_report_triggered" |
|
1099 | 1099 | "enum" : [ "v1.billing.meter.no_meter_found" ] |
1100 | 1100 | } |
1101 | 1101 | }, |
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.", |
1103 | 1103 | "x-stripeEvent" : { |
1104 | 1104 | "kind" : "thin", |
1105 | 1105 | "type" : "v1.billing.meter.no_meter_found" |
|
1122 | 1122 | "type" : "string", |
1123 | 1123 | "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." |
1124 | 1124 | }, |
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 | | - }, |
1129 | 1125 | "object" : { |
1130 | 1126 | "type" : "string", |
1131 | 1127 | "description" : "String representing the object's type. Objects of the same type share the same value of the object field.", |
|
1142 | 1138 | "type" : "string", |
1143 | 1139 | "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.", |
1144 | 1140 | "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." |
1145 | 1145 | } |
1146 | 1146 | }, |
1147 | 1147 | "description" : "Fix me empty_doc_string.", |
|
1186 | 1186 | "type" : "string", |
1187 | 1187 | "description" : "The unique id of this meter event adjustment." |
1188 | 1188 | }, |
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 | | - }, |
1193 | 1189 | "object" : { |
1194 | 1190 | "type" : "string", |
1195 | 1191 | "description" : "String representing the object's type. Objects of the same type share the same value of the object field.", |
|
1204 | 1200 | "type" : "string", |
1205 | 1201 | "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.", |
1206 | 1202 | "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." |
1207 | 1207 | } |
1208 | 1208 | }, |
1209 | 1209 | "x-resourceId" : "v2.billing.meter_event_adjustment", |
|
1241 | 1241 | "type" : "string", |
1242 | 1242 | "description" : "The unique id of this auth session." |
1243 | 1243 | }, |
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 | | - }, |
1248 | 1244 | "object" : { |
1249 | 1245 | "type" : "string", |
1250 | 1246 | "description" : "String representing the object's type. Objects of the same type share the same value of the object field.", |
1251 | 1247 | "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." |
1252 | 1252 | } |
1253 | 1253 | }, |
1254 | 1254 | "x-resourceId" : "v2.billing.meter_event_session", |
|
1284 | 1284 | "type" : "string", |
1285 | 1285 | "description" : "Unique identifier for the event." |
1286 | 1286 | }, |
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 | | - }, |
1291 | 1287 | "object" : { |
1292 | 1288 | "type" : "string", |
1293 | 1289 | "description" : "String representing the object's type. Objects of the same type share the same value of the object field.", |
|
1342 | 1338 | "type" : { |
1343 | 1339 | "type" : "string", |
1344 | 1340 | "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." |
1345 | 1345 | } |
1346 | 1346 | }, |
1347 | 1347 | "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 | 1401 | "type" : "string", |
1402 | 1402 | "description" : "Unique identifier for the object." |
1403 | 1403 | }, |
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 | | - }, |
1408 | 1404 | "metadata" : { |
1409 | 1405 | "type" : "object", |
1410 | 1406 | "additionalProperties" : { |
|
1458 | 1454 | "description" : "Time at which the object was last updated.", |
1459 | 1455 | "format" : "date-time" |
1460 | 1456 | }, |
| 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 | + }, |
1461 | 1461 | "amazon_eventbridge" : { |
1462 | 1462 | "required" : [ "aws_account_id", "aws_event_source_arn", "aws_event_source_status" ], |
1463 | 1463 | "type" : "object", |
|
1549 | 1549 | "path" : "/v2/core/event_destinations/{id}/ping" |
1550 | 1550 | } ] |
1551 | 1551 | }, |
| 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 | + }, |
1552 | 1585 | "v2.deleted_object" : { |
1553 | 1586 | "required" : [ "id" ], |
1554 | 1587 | "type" : "object", |
|
0 commit comments