Skip to content

Commit 0ec82df

Browse files
release: 0.1.0-alpha.3 (#15)
* feat(api): add 'status' to plan creation params (#14) * chore(docs): document minimum Java version (Java 8) in README (#16) * chore(ci): also run workflows for PRs targeting `next` (#17) * docs(examples): update example values (#18) * chore(docs): minor update to formatting of API link in README (#19) * chore: minor updates (#20) * feat(api): add methods to prices and invoices (#21) * chore(ci): limit release doctor target branches (#22) * chore(internal): refactor release doctor script (#23) * chore(tests): update prism version (#24) * feat(api): add cadence enum value 'custom' (#25) * chore(internal): remove unused test file (#26) * feat(client): improve binary return values (#27) * chore(ci): run tests in CI (#28) * feat(api): deprecate methods 'customers.usage.create' and 'customers.usage.update_by_external_id' (#29) Please use the 'events.backfills.create' instead. See https://docs.withorb.com/reference/create-backfill for more details. * feat(api)!: remove methods 'customers.usage.create' and 'customers.usage.update_by_external_id' (#30) ## Migration The two methods `customers.usage.create` and `customers.usage.update_by_external_id` have been removed from the SDK and the API. Please use 'events.backfills.create' instead. More details for this endpoint can be found at https://docs.withorb.com/reference/create-backfill * release: 0.1.0-alpha.3 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent ce8941f commit 0ec82df

File tree

206 files changed

+17051
-6093
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+17051
-6093
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
branches:
88
- main
9+
- next
910

1011
jobs:
1112
lint:
@@ -33,4 +34,26 @@ jobs:
3334

3435
- name: Run lints
3536
run: ./scripts/lint
37+
test:
38+
name: test
39+
runs-on: ubuntu-latest
40+
if: github.repository == 'orbcorp/orb-java'
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- name: Set up Java
46+
uses: actions/setup-java@v4
47+
with:
48+
distribution: temurin
49+
java-version: |
50+
8
51+
17
52+
cache: gradle
53+
54+
- name: Set up Gradle
55+
uses: gradle/gradle-build-action@v2
56+
57+
- name: Run tests
58+
run: ./scripts/test
3659

.github/workflows/release-doctor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Release Doctor
22
on:
33
pull_request:
4+
branches:
5+
- main
46
workflow_dispatch:
57

68
jobs:

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.2"
2+
".": "0.1.0-alpha.3"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 90
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-75733a914692b0abe72ba99d622fc55b20da1c7fa7f73e2bfee30dfe32b66a51.yml
1+
configured_endpoints: 91
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-83ae433113181f3839cc63db01cc7c815de1fff597a1cbaf8ffda48ba98268c9.yml

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## 0.1.0-alpha.3 (2024-08-02)
4+
5+
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/orbcorp/orb-java/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* **api:** remove methods 'customers.usage.create' and 'customers.usage.update_by_external_id' ([#30](https://github.com/orbcorp/orb-java/issues/30))
10+
11+
### Features
12+
13+
* **api:** add 'status' to plan creation params ([#14](https://github.com/orbcorp/orb-java/issues/14)) ([02ccf47](https://github.com/orbcorp/orb-java/commit/02ccf47af0f4af169c64181f8c2a429c3bd806d5))
14+
* **api:** add cadence enum value 'custom' ([#25](https://github.com/orbcorp/orb-java/issues/25)) ([61cf205](https://github.com/orbcorp/orb-java/commit/61cf205b1471425231e68a84f6fd09aafce2906a))
15+
* **api:** add methods to prices and invoices ([#21](https://github.com/orbcorp/orb-java/issues/21)) ([5dbd997](https://github.com/orbcorp/orb-java/commit/5dbd9976b888c451807d1bc89e4a6648b262ada3))
16+
* **api:** deprecate methods 'customers.usage.create' and 'customers.usage.update_by_external_id' ([#29](https://github.com/orbcorp/orb-java/issues/29)) ([756a150](https://github.com/orbcorp/orb-java/commit/756a1508b262870be8ebccef56e5485655296494))
17+
* **api:** remove methods 'customers.usage.create' and 'customers.usage.update_by_external_id' ([#30](https://github.com/orbcorp/orb-java/issues/30)) ([988218e](https://github.com/orbcorp/orb-java/commit/988218ee7687b8864ebc9efcffd7d790db2cd193))
18+
* **client:** improve binary return values ([#27](https://github.com/orbcorp/orb-java/issues/27)) ([e5abbb9](https://github.com/orbcorp/orb-java/commit/e5abbb9aed50ce44038e3fb3e305283c550411e0))
19+
20+
21+
### Chores
22+
23+
* **ci:** also run workflows for PRs targeting `next` ([#17](https://github.com/orbcorp/orb-java/issues/17)) ([9f47531](https://github.com/orbcorp/orb-java/commit/9f47531a64cd4e8a53d209e4e5b151de480c3fd8))
24+
* **ci:** limit release doctor target branches ([#22](https://github.com/orbcorp/orb-java/issues/22)) ([92f41a2](https://github.com/orbcorp/orb-java/commit/92f41a24e12e4296f8413aa91f754c35bb09eecc))
25+
* **ci:** run tests in CI ([#28](https://github.com/orbcorp/orb-java/issues/28)) ([e4c2eb6](https://github.com/orbcorp/orb-java/commit/e4c2eb6ff95f34422415bf3fb54535da2fdc3d82))
26+
* **docs:** document minimum Java version (Java 8) in README ([#16](https://github.com/orbcorp/orb-java/issues/16)) ([3630a08](https://github.com/orbcorp/orb-java/commit/3630a08e5894b62f238e9531dadcee4a20670cb2))
27+
* **docs:** minor update to formatting of API link in README ([#19](https://github.com/orbcorp/orb-java/issues/19)) ([65f8385](https://github.com/orbcorp/orb-java/commit/65f8385253f16aec74d69690829ce3f3e2c05ca3))
28+
* **internal:** refactor release doctor script ([#23](https://github.com/orbcorp/orb-java/issues/23)) ([c039b0e](https://github.com/orbcorp/orb-java/commit/c039b0ea8b1643d7bcd8d4dc1553bdc6e041f7fe))
29+
* **internal:** remove unused test file ([#26](https://github.com/orbcorp/orb-java/issues/26)) ([71b39db](https://github.com/orbcorp/orb-java/commit/71b39dbe04efeed6d9c20363f00950334266d93e))
30+
* minor updates ([#20](https://github.com/orbcorp/orb-java/issues/20)) ([42c2a5c](https://github.com/orbcorp/orb-java/commit/42c2a5c9bca4a2af016fa724ce78197fc6a05549))
31+
* **tests:** update prism version ([#24](https://github.com/orbcorp/orb-java/issues/24)) ([b14155d](https://github.com/orbcorp/orb-java/commit/b14155d55ee6c312d415037fccce9a90ccd0b58f))
32+
33+
34+
### Documentation
35+
36+
* **examples:** update example values ([#18](https://github.com/orbcorp/orb-java/issues/18)) ([7943f58](https://github.com/orbcorp/orb-java/commit/7943f58bb9615f95d33dba70040c2cfcc4edb7db))
37+
338
## 0.1.0-alpha.2 (2024-06-28)
439

540
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/orbcorp/orb-java/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- x-release-please-start-version -->
44

5-
[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.1.0-alpha.2)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.1.0-alpha.3)
66

77
<!-- x-release-please-end -->
88

@@ -12,7 +12,7 @@ The Orb Java SDK is similar to the Orb Kotlin SDK but with minor differences tha
1212

1313
## Documentation
1414

15-
The REST API documentation can be found [on docs.withorb.com](https://docs.withorb.com/reference/api-reference).
15+
The REST API documentation can be found on [docs.withorb.com](https://docs.withorb.com/reference/api-reference).
1616

1717
---
1818

@@ -25,7 +25,7 @@ The REST API documentation can be found [on docs.withorb.com](https://docs.with
2525
<!-- x-release-please-start-version -->
2626

2727
```kotlin
28-
implementation("com.withorb.api:orb-java:0.1.0-alpha.2")
28+
implementation("com.withorb.api:orb-java:0.1.0-alpha.3")
2929
```
3030

3131
#### Maven
@@ -34,7 +34,7 @@ implementation("com.withorb.api:orb-java:0.1.0-alpha.2")
3434
<dependency>
3535
<groupId>com.withorb.api</groupId>
3636
<artifactId>orb-java</artifactId>
37-
<version>0.1.0-alpha.2</version>
37+
<version>0.1.0-alpha.3</version>
3838
</dependency>
3939
```
4040

@@ -319,3 +319,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
319319
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
320320

321321
We are keen for your feedback; please open an [issue](https://www.github.com/orbcorp/orb-java/issues) with questions, bugs, or suggestions.
322+
323+
## Requirements
324+
325+
This library requires Java 8 or later.

bin/check-release-environment

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
11
#!/usr/bin/env bash
22

3-
warnings=()
43
errors=()
54

65
if [ -z "${SONATYPE_USERNAME}" ]; then
7-
warnings+=("The ORB_SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
6+
errors+=("The ORB_SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
87
fi
98

109
if [ -z "${SONATYPE_PASSWORD}" ]; then
11-
warnings+=("The ORB_SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
10+
errors+=("The ORB_SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
1211
fi
1312

1413
if [ -z "${GPG_SIGNING_KEY}" ]; then
15-
warnings+=("The ORB_SONATYPE_GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
14+
errors+=("The ORB_SONATYPE_GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
1615
fi
1716

1817
if [ -z "${GPG_SIGNING_PASSWORD}" ]; then
19-
warnings+=("The ORB_SONATYPE_GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
20-
fi
21-
22-
lenWarnings=${#warnings[@]}
23-
24-
if [[ lenWarnings -gt 0 ]]; then
25-
echo -e "Found the following warnings in the release environment:\n"
26-
27-
for warning in "${warnings[@]}"; do
28-
echo -e "- $warning\n"
29-
done
18+
errors+=("The ORB_SONATYPE_GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
3019
fi
3120

3221
lenErrors=${#errors[@]}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
allprojects {
66
group = "com.withorb.api"
7-
version = "0.1.0-alpha.2" // x-release-please-version
7+
version = "0.1.0-alpha.3" // x-release-please-version
88
}
99

1010

orb-java-core/src/main/kotlin/com/withorb/api/core/http/BinaryResponseContent.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package com.withorb.api.core.http
22

3-
import java.io.Closeable
43
import java.io.IOException
54
import java.io.InputStream
65
import java.io.OutputStream
6+
import java.lang.AutoCloseable
7+
import java.util.Optional
78

8-
interface BinaryResponseContent : Closeable {
9+
interface BinaryResponseContent : AutoCloseable {
910

10-
fun contentType(): String?
11+
fun contentType(): Optional<String>
1112

1213
fun body(): InputStream
1314

orb-java-core/src/main/kotlin/com/withorb/api/core/http/HttpClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.withorb.api.core.http
22

33
import com.withorb.api.core.RequestOptions
4-
import java.io.Closeable
4+
import java.lang.AutoCloseable
55
import java.util.concurrent.CompletableFuture
66

7-
interface HttpClient : Closeable {
7+
interface HttpClient : AutoCloseable {
88

99
fun execute(
1010
request: HttpRequest,

0 commit comments

Comments
 (0)