Skip to content

Commit 49d3777

Browse files
feat(api): api update
1 parent 1b2c527 commit 49d3777

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb/orb-5192a1b7cab269d33dbc3c9eb75994d41880eff1694900232b99f4cc30ae5710.yml
3-
openapi_spec_hash: 1bcfe26f0efab1f1287195a45074fae5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb/orb-0b931ef1842e244faf237ea9dd3f8be2cadf24410a1cbb0bdae6f1f03fd1067d.yml
3+
openapi_spec_hash: b704b2673cb93856fd500e61301c661c
44
config_hash: c01c1191b1cd696c7ca855ff6d28a8df

orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ import kotlin.jvm.optionals.getOrNull
128128
* all usage is billed for in the corresponding billing period.
129129
*
130130
* In general, Orb does not expect events with future dated timestamps. In cases where the timestamp
131-
* is at least 24 hours ahead of the current time, the event will not be accepted as a valid event,
132-
* and will throw validation errors.
131+
* is 5 minutes ahead of the current time, the event will not be accepted as a valid event, and will
132+
* throw validation errors.
133133
*
134134
* ## Event validation
135135
*
@@ -142,7 +142,7 @@ import kotlin.jvm.optionals.getOrNull
142142
* - If the `external_customer_id` is specified, the customer in Orb does not need to exist. Events
143143
* will be attributed to any future customers with the `external_customer_id` on subscription
144144
* creation.
145-
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 1 hour in the future.
145+
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 5 minutes in the future.
146146
* This timestamp should be sent in UTC timezone (no timezone offset).
147147
*
148148
* ## Idempotency and retry semantics

orb-java-core/src/main/kotlin/com/withorb/api/services/async/EventServiceAsync.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ interface EventServiceAsync {
289289
* and ensure that all usage is billed for in the corresponding billing period.
290290
*
291291
* In general, Orb does not expect events with future dated timestamps. In cases where the
292-
* timestamp is at least 24 hours ahead of the current time, the event will not be accepted as a
293-
* valid event, and will throw validation errors.
292+
* timestamp is 5 minutes ahead of the current time, the event will not be accepted as a valid
293+
* event, and will throw validation errors.
294294
*
295295
* ## Event validation
296296
*
@@ -303,7 +303,7 @@ interface EventServiceAsync {
303303
* - If the `external_customer_id` is specified, the customer in Orb does not need to exist.
304304
* Events will be attributed to any future customers with the `external_customer_id` on
305305
* subscription creation.
306-
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 1 hour in the
306+
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 5 minutes in the
307307
* future. This timestamp should be sent in UTC timezone (no timezone offset).
308308
*
309309
* ## Idempotency and retry semantics

orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/EventService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ interface EventService {
285285
* and ensure that all usage is billed for in the corresponding billing period.
286286
*
287287
* In general, Orb does not expect events with future dated timestamps. In cases where the
288-
* timestamp is at least 24 hours ahead of the current time, the event will not be accepted as a
289-
* valid event, and will throw validation errors.
288+
* timestamp is 5 minutes ahead of the current time, the event will not be accepted as a valid
289+
* event, and will throw validation errors.
290290
*
291291
* ## Event validation
292292
*
@@ -299,7 +299,7 @@ interface EventService {
299299
* - If the `external_customer_id` is specified, the customer in Orb does not need to exist.
300300
* Events will be attributed to any future customers with the `external_customer_id` on
301301
* subscription creation.
302-
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 1 hour in the
302+
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 5 minutes in the
303303
* future. This timestamp should be sent in UTC timezone (no timezone offset).
304304
*
305305
* ## Idempotency and retry semantics

0 commit comments

Comments
 (0)