Skip to content

Commit 05b24db

Browse files
authored
Merge pull request #409 from orbcorp/release-please--branches--main--changes--next
release: 1.4.0
2 parents 8dd2d4b + bfd6209 commit 05b24db

File tree

48 files changed

+1009
-134
lines changed

Some content is hidden

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

48 files changed

+1009
-134
lines changed

.github/workflows/publish-sonatype.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818

1919
- name: Set up Java
20-
uses: actions/setup-java@v3
20+
uses: actions/setup-java@v4
2121
with:
2222
distribution: temurin
2323
java-version: |
@@ -33,7 +33,7 @@ jobs:
3333
export -- GPG_SIGNING_KEY_ID
3434
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
3535
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
36-
./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
36+
./gradlew publishAndReleaseToMavenCentral -Dorg.gradle.jvmargs="-Xmx8g" --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
3737
env:
3838
SONATYPE_USERNAME: ${{ secrets.ORB_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
3939
SONATYPE_PASSWORD: ${{ secrets.ORB_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}

.release-please-manifest.json

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

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-0db984d367f9ae04249fb6c72789b0a38ef1785d156b438fe03290fa4e262a7d.yml
3-
openapi_spec_hash: c901c8b4fc2b0399a33b1346f8521850
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e79a36262fa3c577305a43717398fb70482bb2dca47cdb3e201cbb2a590c359c.yml
3+
openapi_spec_hash: 1e04880dccbcc082ba451083e421a471
44
config_hash: 3c3524be9607afb24d2139ce26ce5389

CHANGELOG.md

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

3+
## 1.4.0 (2025-07-16)
4+
5+
Full Changelog: [v1.3.0...v1.4.0](https://github.com/orbcorp/orb-java/compare/v1.3.0...v1.4.0)
6+
7+
### Features
8+
9+
* **api:** api update ([b80c170](https://github.com/orbcorp/orb-java/commit/b80c170203b1bbe44da7121d69d245ca6b5db2b8))
10+
* **api:** api update ([52612a7](https://github.com/orbcorp/orb-java/commit/52612a73768f17c76ccfff8e5dacf9457dd08c0d))
11+
12+
13+
### Chores
14+
15+
* **ci:** bump `actions/setup-java` to v4 ([ee43b24](https://github.com/orbcorp/orb-java/commit/ee43b240c6ca6968cca70b7c6db999c7de19b2bd))
16+
* **ci:** ensure docs generation always succeeds ([00866a5](https://github.com/orbcorp/orb-java/commit/00866a557ba12a39d7899bc3bc0a2950094ad355))
17+
318
## 1.3.0 (2025-07-08)
419

520
Full Changelog: [v1.2.0...v1.3.0](https://github.com/orbcorp/orb-java/compare/v1.2.0...v1.3.0)

README.md

Lines changed: 3 additions & 3 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/1.3.0)
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/1.4.0)
66

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

@@ -19,7 +19,7 @@ The REST API documentation can be found on [docs.withorb.com](https://docs.witho
1919
### Gradle
2020

2121
```kotlin
22-
implementation("com.withorb.api:orb-java:1.3.0")
22+
implementation("com.withorb.api:orb-java:1.4.0")
2323
```
2424

2525
### Maven
@@ -28,7 +28,7 @@ implementation("com.withorb.api:orb-java:1.3.0")
2828
<dependency>
2929
<groupId>com.withorb.api</groupId>
3030
<artifactId>orb-java</artifactId>
31-
<version>1.3.0</version>
31+
<version>1.4.0</version>
3232
</dependency>
3333
```
3434

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
allprojects {
22
group = "com.withorb.api"
3-
version = "1.3.0" // x-release-please-version
3+
version = "1.4.0" // x-release-please-version
44
}

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

Lines changed: 105 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,8 @@ private constructor(
824824
private val subtotal: JsonField<String>,
825825
private val taxAmounts: JsonField<List<TaxAmount>>,
826826
private val discounts: JsonField<List<Discount>>,
827+
private val endTimeExclusive: JsonField<OffsetDateTime>,
828+
private val startTimeInclusive: JsonField<OffsetDateTime>,
827829
private val additionalProperties: MutableMap<String, JsonValue>,
828830
) {
829831

@@ -845,6 +847,12 @@ private constructor(
845847
@JsonProperty("discounts")
846848
@ExcludeMissing
847849
discounts: JsonField<List<Discount>> = JsonMissing.of(),
850+
@JsonProperty("end_time_exclusive")
851+
@ExcludeMissing
852+
endTimeExclusive: JsonField<OffsetDateTime> = JsonMissing.of(),
853+
@JsonProperty("start_time_inclusive")
854+
@ExcludeMissing
855+
startTimeInclusive: JsonField<OffsetDateTime> = JsonMissing.of(),
848856
) : this(
849857
id,
850858
amount,
@@ -854,6 +862,8 @@ private constructor(
854862
subtotal,
855863
taxAmounts,
856864
discounts,
865+
endTimeExclusive,
866+
startTimeInclusive,
857867
mutableMapOf(),
858868
)
859869

@@ -921,6 +931,24 @@ private constructor(
921931
*/
922932
fun discounts(): Optional<List<Discount>> = discounts.getOptional("discounts")
923933

934+
/**
935+
* The end time of the service period for this credit note line item.
936+
*
937+
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
938+
* server responded with an unexpected value).
939+
*/
940+
fun endTimeExclusive(): Optional<OffsetDateTime> =
941+
endTimeExclusive.getOptional("end_time_exclusive")
942+
943+
/**
944+
* The start time of the service period for this credit note line item.
945+
*
946+
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
947+
* server responded with an unexpected value).
948+
*/
949+
fun startTimeInclusive(): Optional<OffsetDateTime> =
950+
startTimeInclusive.getOptional("start_time_inclusive")
951+
924952
/**
925953
* Returns the raw JSON value of [id].
926954
*
@@ -981,6 +1009,26 @@ private constructor(
9811009
@ExcludeMissing
9821010
fun _discounts(): JsonField<List<Discount>> = discounts
9831011

1012+
/**
1013+
* Returns the raw JSON value of [endTimeExclusive].
1014+
*
1015+
* Unlike [endTimeExclusive], this method doesn't throw if the JSON field has an unexpected
1016+
* type.
1017+
*/
1018+
@JsonProperty("end_time_exclusive")
1019+
@ExcludeMissing
1020+
fun _endTimeExclusive(): JsonField<OffsetDateTime> = endTimeExclusive
1021+
1022+
/**
1023+
* Returns the raw JSON value of [startTimeInclusive].
1024+
*
1025+
* Unlike [startTimeInclusive], this method doesn't throw if the JSON field has an
1026+
* unexpected type.
1027+
*/
1028+
@JsonProperty("start_time_inclusive")
1029+
@ExcludeMissing
1030+
fun _startTimeInclusive(): JsonField<OffsetDateTime> = startTimeInclusive
1031+
9841032
@JsonAnySetter
9851033
private fun putAdditionalProperty(key: String, value: JsonValue) {
9861034
additionalProperties.put(key, value)
@@ -1023,6 +1071,8 @@ private constructor(
10231071
private var subtotal: JsonField<String>? = null
10241072
private var taxAmounts: JsonField<MutableList<TaxAmount>>? = null
10251073
private var discounts: JsonField<MutableList<Discount>>? = null
1074+
private var endTimeExclusive: JsonField<OffsetDateTime> = JsonMissing.of()
1075+
private var startTimeInclusive: JsonField<OffsetDateTime> = JsonMissing.of()
10261076
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
10271077

10281078
@JvmSynthetic
@@ -1035,6 +1085,8 @@ private constructor(
10351085
subtotal = lineItem.subtotal
10361086
taxAmounts = lineItem.taxAmounts.map { it.toMutableList() }
10371087
discounts = lineItem.discounts.map { it.toMutableList() }
1088+
endTimeExclusive = lineItem.endTimeExclusive
1089+
startTimeInclusive = lineItem.startTimeInclusive
10381090
additionalProperties = lineItem.additionalProperties.toMutableMap()
10391091
}
10401092

@@ -1172,6 +1224,49 @@ private constructor(
11721224
}
11731225
}
11741226

1227+
/** The end time of the service period for this credit note line item. */
1228+
fun endTimeExclusive(endTimeExclusive: OffsetDateTime?) =
1229+
endTimeExclusive(JsonField.ofNullable(endTimeExclusive))
1230+
1231+
/**
1232+
* Alias for calling [Builder.endTimeExclusive] with `endTimeExclusive.orElse(null)`.
1233+
*/
1234+
fun endTimeExclusive(endTimeExclusive: Optional<OffsetDateTime>) =
1235+
endTimeExclusive(endTimeExclusive.getOrNull())
1236+
1237+
/**
1238+
* Sets [Builder.endTimeExclusive] to an arbitrary JSON value.
1239+
*
1240+
* You should usually call [Builder.endTimeExclusive] with a well-typed [OffsetDateTime]
1241+
* value instead. This method is primarily for setting the field to an undocumented or
1242+
* not yet supported value.
1243+
*/
1244+
fun endTimeExclusive(endTimeExclusive: JsonField<OffsetDateTime>) = apply {
1245+
this.endTimeExclusive = endTimeExclusive
1246+
}
1247+
1248+
/** The start time of the service period for this credit note line item. */
1249+
fun startTimeInclusive(startTimeInclusive: OffsetDateTime?) =
1250+
startTimeInclusive(JsonField.ofNullable(startTimeInclusive))
1251+
1252+
/**
1253+
* Alias for calling [Builder.startTimeInclusive] with
1254+
* `startTimeInclusive.orElse(null)`.
1255+
*/
1256+
fun startTimeInclusive(startTimeInclusive: Optional<OffsetDateTime>) =
1257+
startTimeInclusive(startTimeInclusive.getOrNull())
1258+
1259+
/**
1260+
* Sets [Builder.startTimeInclusive] to an arbitrary JSON value.
1261+
*
1262+
* You should usually call [Builder.startTimeInclusive] with a well-typed
1263+
* [OffsetDateTime] value instead. This method is primarily for setting the field to an
1264+
* undocumented or not yet supported value.
1265+
*/
1266+
fun startTimeInclusive(startTimeInclusive: JsonField<OffsetDateTime>) = apply {
1267+
this.startTimeInclusive = startTimeInclusive
1268+
}
1269+
11751270
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
11761271
this.additionalProperties.clear()
11771272
putAllAdditionalProperties(additionalProperties)
@@ -1219,6 +1314,8 @@ private constructor(
12191314
checkRequired("subtotal", subtotal),
12201315
checkRequired("taxAmounts", taxAmounts).map { it.toImmutable() },
12211316
(discounts ?: JsonMissing.of()).map { it.toImmutable() },
1317+
endTimeExclusive,
1318+
startTimeInclusive,
12221319
additionalProperties.toMutableMap(),
12231320
)
12241321
}
@@ -1238,6 +1335,8 @@ private constructor(
12381335
subtotal()
12391336
taxAmounts().forEach { it.validate() }
12401337
discounts().ifPresent { it.forEach { it.validate() } }
1338+
endTimeExclusive()
1339+
startTimeInclusive()
12411340
validated = true
12421341
}
12431342

@@ -1264,7 +1363,9 @@ private constructor(
12641363
(if (quantity.asKnown().isPresent) 1 else 0) +
12651364
(if (subtotal.asKnown().isPresent) 1 else 0) +
12661365
(taxAmounts.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
1267-
(discounts.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0)
1366+
(discounts.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
1367+
(if (endTimeExclusive.asKnown().isPresent) 1 else 0) +
1368+
(if (startTimeInclusive.asKnown().isPresent) 1 else 0)
12681369

12691370
class Discount
12701371
private constructor(
@@ -1836,17 +1937,17 @@ private constructor(
18361937
return true
18371938
}
18381939

1839-
return /* spotless:off */ other is LineItem && id == other.id && amount == other.amount && itemId == other.itemId && name == other.name && quantity == other.quantity && subtotal == other.subtotal && taxAmounts == other.taxAmounts && discounts == other.discounts && additionalProperties == other.additionalProperties /* spotless:on */
1940+
return /* spotless:off */ other is LineItem && id == other.id && amount == other.amount && itemId == other.itemId && name == other.name && quantity == other.quantity && subtotal == other.subtotal && taxAmounts == other.taxAmounts && discounts == other.discounts && endTimeExclusive == other.endTimeExclusive && startTimeInclusive == other.startTimeInclusive && additionalProperties == other.additionalProperties /* spotless:on */
18401941
}
18411942

18421943
/* spotless:off */
1843-
private val hashCode: Int by lazy { Objects.hash(id, amount, itemId, name, quantity, subtotal, taxAmounts, discounts, additionalProperties) }
1944+
private val hashCode: Int by lazy { Objects.hash(id, amount, itemId, name, quantity, subtotal, taxAmounts, discounts, endTimeExclusive, startTimeInclusive, additionalProperties) }
18441945
/* spotless:on */
18451946

18461947
override fun hashCode(): Int = hashCode
18471948

18481949
override fun toString() =
1849-
"LineItem{id=$id, amount=$amount, itemId=$itemId, name=$name, quantity=$quantity, subtotal=$subtotal, taxAmounts=$taxAmounts, discounts=$discounts, additionalProperties=$additionalProperties}"
1950+
"LineItem{id=$id, amount=$amount, itemId=$itemId, name=$name, quantity=$quantity, subtotal=$subtotal, taxAmounts=$taxAmounts, discounts=$discounts, endTimeExclusive=$endTimeExclusive, startTimeInclusive=$startTimeInclusive, additionalProperties=$additionalProperties}"
18501951
}
18511952

18521953
/** The maximum amount applied on the original invoice */

0 commit comments

Comments
 (0)