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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49642,13 +49642,17 @@ private constructor(

/**
* The start date of the adjustment interval. This is the date that the adjustment will
* start affecting prices on the subscription.
* start affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `start_date`. This `start_date` is treated as inclusive for
* in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(): StartDate = startDate.getRequired("start_date")

/**
* The end date of the adjustment interval. This is the date that the adjustment will stop
* affecting prices on the subscription.
* affecting prices on the subscription. The adjustment will apply to invoice dates that
* overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
* prices, and inclusive for in-arrears prices.
*/
fun endDate(): Optional<EndDate> = Optional.ofNullable(endDate.getNullable("end_date"))

Expand All @@ -49659,15 +49663,19 @@ private constructor(

/**
* The start date of the adjustment interval. This is the date that the adjustment will
* start affecting prices on the subscription.
* start affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `start_date`. This `start_date` is treated as inclusive for
* in-advance prices, and exclusive for in-arrears prices.
*/
@JsonProperty("start_date")
@ExcludeMissing
fun _startDate(): JsonField<StartDate> = startDate

/**
* The end date of the adjustment interval. This is the date that the adjustment will stop
* affecting prices on the subscription.
* affecting prices on the subscription. The adjustment will apply to invoice dates that
* overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
* prices, and inclusive for in-arrears prices.
*/
@JsonProperty("end_date") @ExcludeMissing fun _endDate(): JsonField<EndDate> = endDate

Expand Down Expand Up @@ -49750,56 +49758,74 @@ private constructor(

/**
* The start date of the adjustment interval. This is the date that the adjustment will
* start affecting prices on the subscription.
* start affecting prices on the subscription. The adjustment will apply to invoice
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
* for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(startDate: StartDate) = startDate(JsonField.of(startDate))

/**
* The start date of the adjustment interval. This is the date that the adjustment will
* start affecting prices on the subscription.
* start affecting prices on the subscription. The adjustment will apply to invoice
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
* for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(startDate: JsonField<StartDate>) = apply { this.startDate = startDate }

/**
* The start date of the adjustment interval. This is the date that the adjustment will
* start affecting prices on the subscription.
* start affecting prices on the subscription. The adjustment will apply to invoice
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
* for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(dateTime: OffsetDateTime) = startDate(StartDate.ofDateTime(dateTime))

/**
* The start date of the adjustment interval. This is the date that the adjustment will
* start affecting prices on the subscription.
* start affecting prices on the subscription. The adjustment will apply to invoice
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
* for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(billingCycleRelative: BillingCycleRelativeDate) =
startDate(StartDate.ofBillingCycleRelative(billingCycleRelative))

/**
* The end date of the adjustment interval. This is the date that the adjustment will
* stop affecting prices on the subscription.
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
* in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(endDate: EndDate?) = endDate(JsonField.ofNullable(endDate))

/**
* The end date of the adjustment interval. This is the date that the adjustment will
* stop affecting prices on the subscription.
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
* in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(endDate: Optional<EndDate>) = endDate(endDate.getOrNull())

/**
* The end date of the adjustment interval. This is the date that the adjustment will
* stop affecting prices on the subscription.
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
* in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(endDate: JsonField<EndDate>) = apply { this.endDate = endDate }

/**
* The end date of the adjustment interval. This is the date that the adjustment will
* stop affecting prices on the subscription.
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
* in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(dateTime: OffsetDateTime) = endDate(EndDate.ofDateTime(dateTime))

/**
* The end date of the adjustment interval. This is the date that the adjustment will
* stop affecting prices on the subscription.
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
* in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(billingCycleRelative: BillingCycleRelativeDate) =
endDate(EndDate.ofBillingCycleRelative(billingCycleRelative))
Expand Down Expand Up @@ -51651,7 +51677,9 @@ private constructor(

/**
* The start date of the adjustment interval. This is the date that the adjustment will
* start affecting prices on the subscription.
* start affecting prices on the subscription. The adjustment will apply to invoice dates
* that overlap with this `start_date`. This `start_date` is treated as inclusive for
* in-advance prices, and exclusive for in-arrears prices.
*/
@JsonDeserialize(using = StartDate.Deserializer::class)
@JsonSerialize(using = StartDate.Serializer::class)
Expand Down Expand Up @@ -51795,7 +51823,9 @@ private constructor(

/**
* The end date of the adjustment interval. This is the date that the adjustment will stop
* affecting prices on the subscription.
* affecting prices on the subscription. The adjustment will apply to invoice dates that
* overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
* prices, and inclusive for in-arrears prices.
*/
@JsonDeserialize(using = EndDate.Deserializer::class)
@JsonSerialize(using = EndDate.Serializer::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CustomerCreateParamsTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -106,7 +106,7 @@ class CustomerCreateParamsTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -186,7 +186,7 @@ class CustomerCreateParamsTest {
.excluded(true)
.build()
)
assertThat(body.additionalEmails()).contains(listOf("string"))
assertThat(body.additionalEmails()).contains(listOf("dev@stainless.com"))
assertThat(body.autoCollection()).contains(true)
assertThat(body.billingAddress())
.contains(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -184,7 +184,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -283,7 +283,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -382,7 +382,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -481,7 +481,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -580,7 +580,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -679,7 +679,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -778,7 +778,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down Expand Up @@ -877,7 +877,7 @@ class ErrorHandlingTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal class ServiceParamsTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CustomerServiceAsyncTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CustomerServiceTest {
.excluded(true)
.build()
)
.addAdditionalEmail("string")
.addAdditionalEmail("dev@stainless.com")
.autoCollection(true)
.billingAddress(
CustomerCreateParams.BillingAddress.builder()
Expand Down