Skip to content

Commit 20614df

Browse files
docs: add more documentation (#205)
1 parent c690f41 commit 20614df

80 files changed

Lines changed: 1286 additions & 12 deletions

File tree

Some content is hidden

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

buildSrc/src/main/kotlin/orb.kotlin.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ configure<SpotlessExtension> {
2121

2222
tasks.withType<KotlinCompile>().configureEach {
2323
kotlinOptions {
24-
allWarningsAsErrors = true
25-
freeCompilerArgs = listOf("-Xjvm-default=all", "-Xjdk-release=1.8")
24+
freeCompilerArgs = listOf(
25+
"-Xjvm-default=all",
26+
"-Xjdk-release=1.8",
27+
// Suppress deprecation warnings because we may still reference and test deprecated members.
28+
"-Xsuppress-warning=DEPRECATION"
29+
)
2630
jvmTarget = "1.8"
2731
}
2832
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ private constructor(
915915
"Threshold{value=$value, additionalProperties=$additionalProperties}"
916916
}
917917

918+
/** The type of alert. This must be a valid alert type. */
918919
class Type
919920
@JsonCreator
920921
private constructor(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ constructor(
414414
)
415415
}
416416

417+
/** The type of alert to create. This must be a valid alert type. */
417418
class Type
418419
@JsonCreator
419420
private constructor(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ constructor(
423423
)
424424
}
425425

426+
/** The type of alert to create. This must be a valid alert type. */
426427
class Type
427428
@JsonCreator
428429
private constructor(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ constructor(
534534
"Threshold{value=$value, additionalProperties=$additionalProperties}"
535535
}
536536

537+
/** The type of alert to create. This must be a valid alert type. */
537538
class Type
538539
@JsonCreator
539540
private constructor(

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ import java.util.Optional
1919
import java.util.stream.Stream
2020
import java.util.stream.StreamSupport
2121

22+
/**
23+
* This endpoint returns a list of alerts within Orb.
24+
*
25+
* The request must specify one of `customer_id`, `external_customer_id`, or `subscription_id`.
26+
*
27+
* If querying by subscripion_id, the endpoint will return the subscription level alerts as well as
28+
* the plan level alerts associated with the subscription.
29+
*
30+
* The list of alerts is ordered starting from the most recently created alert. This endpoint
31+
* follows Orb's [standardized pagination format](../reference/pagination).
32+
*/
2233
class AlertListPage
2334
private constructor(
2435
private val alertsService: AlertService,

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ import java.util.concurrent.CompletableFuture
2020
import java.util.concurrent.Executor
2121
import java.util.function.Predicate
2222

23+
/**
24+
* This endpoint returns a list of alerts within Orb.
25+
*
26+
* The request must specify one of `customer_id`, `external_customer_id`, or `subscription_id`.
27+
*
28+
* If querying by subscripion_id, the endpoint will return the subscription level alerts as well as
29+
* the plan level alerts associated with the subscription.
30+
*
31+
* The list of alerts is ordered starting from the most recently created alert. This endpoint
32+
* follows Orb's [standardized pagination format](../reference/pagination).
33+
*/
2334
class AlertListPageAsync
2435
private constructor(
2536
private val alertsService: AlertServiceAsync,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ import java.util.Optional
1919
import java.util.stream.Stream
2020
import java.util.stream.StreamSupport
2121

22+
/**
23+
* This endpoint returns a list of all coupons for an account in a list format.
24+
*
25+
* The list of coupons is ordered starting from the most recently created coupon. The response also
26+
* includes `pagination_metadata`, which lets the caller retrieve the next page of results if they
27+
* exist. More information about pagination can be found in the Pagination-metadata schema.
28+
*/
2229
class CouponListPage
2330
private constructor(
2431
private val couponsService: CouponService,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ import java.util.concurrent.CompletableFuture
2020
import java.util.concurrent.Executor
2121
import java.util.function.Predicate
2222

23+
/**
24+
* This endpoint returns a list of all coupons for an account in a list format.
25+
*
26+
* The list of coupons is ordered starting from the most recently created coupon. The response also
27+
* includes `pagination_metadata`, which lets the caller retrieve the next page of results if they
28+
* exist. More information about pagination can be found in the Pagination-metadata schema.
29+
*/
2330
class CouponListPageAsync
2431
private constructor(
2532
private val couponsService: CouponServiceAsync,

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ import java.util.Optional
1919
import java.util.stream.Stream
2020
import java.util.stream.StreamSupport
2121

22+
/**
23+
* This endpoint returns a list of all subscriptions that have redeemed a given coupon as a
24+
* [paginated](../reference/pagination) list, ordered starting from the most recently created
25+
* subscription. For a full discussion of the subscription resource, see
26+
* [Subscription](../guides/concepts#subscription).
27+
*/
2228
class CouponSubscriptionListPage
2329
private constructor(
2430
private val subscriptionsService: SubscriptionService,

0 commit comments

Comments
 (0)