Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.11.0"
".": "0.12.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-77e2e50c9fb438b08736da759f722f9d062ed3fad3183fb951eb1eee93fa93f5.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-908960f165205e2874dd29322cc974df5ab10c7634ab9a342ab22047013de1b4.yml
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 0.12.0 (2024-12-12)

Full Changelog: [v0.11.0...v0.12.0](https://github.com/orbcorp/orb-java/compare/v0.11.0...v0.12.0)

### Features

* **api:** api update ([#152](https://github.com/orbcorp/orb-java/issues/152)) ([80e4392](https://github.com/orbcorp/orb-java/commit/80e4392479ef269e8c2c4fe785fdd4e365ce63fb))


### Chores

* **internal:** remove unused and expand used wildcard imports ([#150](https://github.com/orbcorp/orb-java/issues/150)) ([125239d](https://github.com/orbcorp/orb-java/commit/125239d512c263421213eeb779a114dcaae25032))
* **internal:** remove unused and expand used wildcard imports ([#151](https://github.com/orbcorp/orb-java/issues/151)) ([e31d1ed](https://github.com/orbcorp/orb-java/commit/e31d1ed415f6f2f3eecd33bb198d1b93cd59c4fb))
* **internal:** remove unused imports ([#147](https://github.com/orbcorp/orb-java/issues/147)) ([fbafbb5](https://github.com/orbcorp/orb-java/commit/fbafbb58161b70959c6ac9a3e484478571633619))
* **test:** remove unused imports ([#148](https://github.com/orbcorp/orb-java/issues/148)) ([b170c90](https://github.com/orbcorp/orb-java/commit/b170c90db37d08d16ea65b4e9650c6281dc65124))
* **test:** use `JsonValue` instead of `JsonString` ([#149](https://github.com/orbcorp/orb-java/issues/149)) ([b177193](https://github.com/orbcorp/orb-java/commit/b177193c824bb6c6a3e80e1c6248b5f87b51be90))
* update example values in tests and docs ([#143](https://github.com/orbcorp/orb-java/issues/143)) ([3ae9d16](https://github.com/orbcorp/orb-java/commit/3ae9d16e54069c512ca6afcc912ebd4522428d92))


### Styles

* **internal:** make enum value definitions less verbose ([#145](https://github.com/orbcorp/orb-java/issues/145)) ([618c1a3](https://github.com/orbcorp/orb-java/commit/618c1a3ccf88c313d9fff21ee49520f638cd49d2))
* **internal:** move enum identity methods to bottom of class ([#146](https://github.com/orbcorp/orb-java/issues/146)) ([8a9c393](https://github.com/orbcorp/orb-java/commit/8a9c3931e848d900c5d915329919e5a7f1164d08))

## 0.11.0 (2024-12-03)

Full Changelog: [v0.10.0...v0.11.0](https://github.com/orbcorp/orb-java/compare/v0.10.0...v0.11.0)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

[![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.11.0)
[![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.12.0)

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

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

```kotlin
implementation("com.withorb.api:orb-java:0.11.0")
implementation("com.withorb.api:orb-java:0.12.0")
```

#### Maven
Expand All @@ -34,7 +34,7 @@ implementation("com.withorb.api:orb-java:0.11.0")
<dependency>
<groupId>com.withorb.api</groupId>
<artifactId>orb-java</artifactId>
<version>0.11.0</version>
<version>0.12.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

allprojects {
group = "com.withorb.api"
version = "0.11.0" // x-release-please-version
version = "0.12.0" // x-release-please-version
}


15 changes: 13 additions & 2 deletions orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@

package com.withorb.api.client

import com.withorb.api.models.*
import com.withorb.api.services.blocking.*
import com.withorb.api.services.blocking.AlertService
import com.withorb.api.services.blocking.CouponService
import com.withorb.api.services.blocking.CreditNoteService
import com.withorb.api.services.blocking.CustomerService
import com.withorb.api.services.blocking.EventService
import com.withorb.api.services.blocking.InvoiceLineItemService
import com.withorb.api.services.blocking.InvoiceService
import com.withorb.api.services.blocking.ItemService
import com.withorb.api.services.blocking.MetricService
import com.withorb.api.services.blocking.PlanService
import com.withorb.api.services.blocking.PriceService
import com.withorb.api.services.blocking.SubscriptionService
import com.withorb.api.services.blocking.TopLevelService

interface OrbClient {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@

package com.withorb.api.client

import com.withorb.api.models.*
import com.withorb.api.services.async.*
import com.withorb.api.services.async.AlertServiceAsync
import com.withorb.api.services.async.CouponServiceAsync
import com.withorb.api.services.async.CreditNoteServiceAsync
import com.withorb.api.services.async.CustomerServiceAsync
import com.withorb.api.services.async.EventServiceAsync
import com.withorb.api.services.async.InvoiceLineItemServiceAsync
import com.withorb.api.services.async.InvoiceServiceAsync
import com.withorb.api.services.async.ItemServiceAsync
import com.withorb.api.services.async.MetricServiceAsync
import com.withorb.api.services.async.PlanServiceAsync
import com.withorb.api.services.async.PriceServiceAsync
import com.withorb.api.services.async.SubscriptionServiceAsync
import com.withorb.api.services.async.TopLevelServiceAsync

interface OrbClientAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,32 @@ package com.withorb.api.client

import com.withorb.api.core.ClientOptions
import com.withorb.api.core.getPackageVersion
import com.withorb.api.models.*
import com.withorb.api.services.async.*
import com.withorb.api.services.async.AlertServiceAsync
import com.withorb.api.services.async.AlertServiceAsyncImpl
import com.withorb.api.services.async.CouponServiceAsync
import com.withorb.api.services.async.CouponServiceAsyncImpl
import com.withorb.api.services.async.CreditNoteServiceAsync
import com.withorb.api.services.async.CreditNoteServiceAsyncImpl
import com.withorb.api.services.async.CustomerServiceAsync
import com.withorb.api.services.async.CustomerServiceAsyncImpl
import com.withorb.api.services.async.EventServiceAsync
import com.withorb.api.services.async.EventServiceAsyncImpl
import com.withorb.api.services.async.InvoiceLineItemServiceAsync
import com.withorb.api.services.async.InvoiceLineItemServiceAsyncImpl
import com.withorb.api.services.async.InvoiceServiceAsync
import com.withorb.api.services.async.InvoiceServiceAsyncImpl
import com.withorb.api.services.async.ItemServiceAsync
import com.withorb.api.services.async.ItemServiceAsyncImpl
import com.withorb.api.services.async.MetricServiceAsync
import com.withorb.api.services.async.MetricServiceAsyncImpl
import com.withorb.api.services.async.PlanServiceAsync
import com.withorb.api.services.async.PlanServiceAsyncImpl
import com.withorb.api.services.async.PriceServiceAsync
import com.withorb.api.services.async.PriceServiceAsyncImpl
import com.withorb.api.services.async.SubscriptionServiceAsync
import com.withorb.api.services.async.SubscriptionServiceAsyncImpl
import com.withorb.api.services.async.TopLevelServiceAsync
import com.withorb.api.services.async.TopLevelServiceAsyncImpl

class OrbClientAsyncImpl
constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,32 @@ package com.withorb.api.client

import com.withorb.api.core.ClientOptions
import com.withorb.api.core.getPackageVersion
import com.withorb.api.models.*
import com.withorb.api.services.blocking.*
import com.withorb.api.services.blocking.AlertService
import com.withorb.api.services.blocking.AlertServiceImpl
import com.withorb.api.services.blocking.CouponService
import com.withorb.api.services.blocking.CouponServiceImpl
import com.withorb.api.services.blocking.CreditNoteService
import com.withorb.api.services.blocking.CreditNoteServiceImpl
import com.withorb.api.services.blocking.CustomerService
import com.withorb.api.services.blocking.CustomerServiceImpl
import com.withorb.api.services.blocking.EventService
import com.withorb.api.services.blocking.EventServiceImpl
import com.withorb.api.services.blocking.InvoiceLineItemService
import com.withorb.api.services.blocking.InvoiceLineItemServiceImpl
import com.withorb.api.services.blocking.InvoiceService
import com.withorb.api.services.blocking.InvoiceServiceImpl
import com.withorb.api.services.blocking.ItemService
import com.withorb.api.services.blocking.ItemServiceImpl
import com.withorb.api.services.blocking.MetricService
import com.withorb.api.services.blocking.MetricServiceImpl
import com.withorb.api.services.blocking.PlanService
import com.withorb.api.services.blocking.PlanServiceImpl
import com.withorb.api.services.blocking.PriceService
import com.withorb.api.services.blocking.PriceServiceImpl
import com.withorb.api.services.blocking.SubscriptionService
import com.withorb.api.services.blocking.SubscriptionServiceImpl
import com.withorb.api.services.blocking.TopLevelService
import com.withorb.api.services.blocking.TopLevelServiceImpl

class OrbClientImpl
constructor(
Expand Down
34 changes: 17 additions & 17 deletions orb-java-core/src/main/kotlin/com/withorb/api/models/Alert.kt
Original file line number Diff line number Diff line change
Expand Up @@ -672,29 +672,17 @@ private constructor(

@com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField<String> = value

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()

override fun toString() = value.toString()

companion object {

@JvmField val USAGE_EXCEEDED = Type(JsonField.of("usage_exceeded"))
@JvmField val USAGE_EXCEEDED = of("usage_exceeded")

@JvmField val COST_EXCEEDED = Type(JsonField.of("cost_exceeded"))
@JvmField val COST_EXCEEDED = of("cost_exceeded")

@JvmField val CREDIT_BALANCE_DEPLETED = Type(JsonField.of("credit_balance_depleted"))
@JvmField val CREDIT_BALANCE_DEPLETED = of("credit_balance_depleted")

@JvmField val CREDIT_BALANCE_DROPPED = Type(JsonField.of("credit_balance_dropped"))
@JvmField val CREDIT_BALANCE_DROPPED = of("credit_balance_dropped")

@JvmField val CREDIT_BALANCE_RECOVERED = Type(JsonField.of("credit_balance_recovered"))
@JvmField val CREDIT_BALANCE_RECOVERED = of("credit_balance_recovered")

@JvmStatic fun of(value: String) = Type(JsonField.of(value))
}
Expand Down Expand Up @@ -737,6 +725,18 @@ private constructor(
}

fun asString(): String = _value().asStringOrThrow()

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()

override fun toString() = value.toString()
}

override fun equals(other: Any?): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers
import com.withorb.api.core.http.QueryParams
import com.withorb.api.core.toImmutable
import com.withorb.api.errors.OrbInvalidDataException
import com.withorb.api.models.*
import java.util.Objects
import java.util.Optional

Expand Down Expand Up @@ -350,29 +349,17 @@ constructor(

@com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField<String> = value

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()

override fun toString() = value.toString()

companion object {

@JvmField val USAGE_EXCEEDED = Type(JsonField.of("usage_exceeded"))
@JvmField val USAGE_EXCEEDED = of("usage_exceeded")

@JvmField val COST_EXCEEDED = Type(JsonField.of("cost_exceeded"))
@JvmField val COST_EXCEEDED = of("cost_exceeded")

@JvmField val CREDIT_BALANCE_DEPLETED = Type(JsonField.of("credit_balance_depleted"))
@JvmField val CREDIT_BALANCE_DEPLETED = of("credit_balance_depleted")

@JvmField val CREDIT_BALANCE_DROPPED = Type(JsonField.of("credit_balance_dropped"))
@JvmField val CREDIT_BALANCE_DROPPED = of("credit_balance_dropped")

@JvmField val CREDIT_BALANCE_RECOVERED = Type(JsonField.of("credit_balance_recovered"))
@JvmField val CREDIT_BALANCE_RECOVERED = of("credit_balance_recovered")

@JvmStatic fun of(value: String) = Type(JsonField.of(value))
}
Expand Down Expand Up @@ -415,6 +402,18 @@ constructor(
}

fun asString(): String = _value().asStringOrThrow()

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()

override fun toString() = value.toString()
}

/** Thresholds are used to define the conditions under which an alert will be triggered. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers
import com.withorb.api.core.http.QueryParams
import com.withorb.api.core.toImmutable
import com.withorb.api.errors.OrbInvalidDataException
import com.withorb.api.models.*
import java.util.Objects
import java.util.Optional

Expand Down Expand Up @@ -360,29 +359,17 @@ constructor(

@com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField<String> = value

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()

override fun toString() = value.toString()

companion object {

@JvmField val USAGE_EXCEEDED = Type(JsonField.of("usage_exceeded"))
@JvmField val USAGE_EXCEEDED = of("usage_exceeded")

@JvmField val COST_EXCEEDED = Type(JsonField.of("cost_exceeded"))
@JvmField val COST_EXCEEDED = of("cost_exceeded")

@JvmField val CREDIT_BALANCE_DEPLETED = Type(JsonField.of("credit_balance_depleted"))
@JvmField val CREDIT_BALANCE_DEPLETED = of("credit_balance_depleted")

@JvmField val CREDIT_BALANCE_DROPPED = Type(JsonField.of("credit_balance_dropped"))
@JvmField val CREDIT_BALANCE_DROPPED = of("credit_balance_dropped")

@JvmField val CREDIT_BALANCE_RECOVERED = Type(JsonField.of("credit_balance_recovered"))
@JvmField val CREDIT_BALANCE_RECOVERED = of("credit_balance_recovered")

@JvmStatic fun of(value: String) = Type(JsonField.of(value))
}
Expand Down Expand Up @@ -425,6 +412,18 @@ constructor(
}

fun asString(): String = _value().asStringOrThrow()

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()

override fun toString() = value.toString()
}

/** Thresholds are used to define the conditions under which an alert will be triggered. */
Expand Down
Loading
Loading