Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #54

Merged
merged 1 commit into from
Sep 5, 2024
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: 93
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-3a9214e6a8bf5952997fd2a3b6521804ab82d2cff40ed2ecb3b3cb512fe3bf35.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-4df283466fdce46e787565c6480138896b1d7ed98d68a79d5eb3438bed191276.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ constructor(
fun alignBillingWithSubscriptionStartDate(): Boolean? =
alignBillingWithSubscriptionStartDate

/**
* Determines whether issued invoices for this subscription will automatically be charged
* with the saved payment method on the due date. If not specified, this defaults to the
* behavior configured for this customer.
*/
@JsonProperty("auto_collection") fun autoCollection(): Boolean? = autoCollection

@JsonProperty("aws_region") fun awsRegion(): String? = awsRegion
Expand All @@ -177,13 +182,22 @@ constructor(
fun billingCycleAnchorConfiguration(): BillingCycleAnchorConfiguration? =
billingCycleAnchorConfiguration

/**
* Redemption code to be used for this subscription. If the coupon cannot be found by its
* redemption code, or cannot be redeemed, an error response will be returned and the
* subscription creation or plan change will not be scheduled.
*/
@JsonProperty("coupon_redemption_code")
fun couponRedemptionCode(): String? = couponRedemptionCode

@JsonProperty("credits_overage_rate") fun creditsOverageRate(): Double? = creditsOverageRate

@JsonProperty("customer_id") fun customerId(): String? = customerId

/**
* Determines the default memo on this subscription's invoices. Note that if this is not
* provided, it is determined by the plan configuration.
*/
@JsonProperty("default_invoice_memo") fun defaultInvoiceMemo(): String? = defaultInvoiceMemo

@JsonProperty("end_date") fun endDate(): OffsetDateTime? = endDate
Expand All @@ -202,8 +216,14 @@ constructor(
*/
@JsonProperty("external_plan_id") fun externalPlanId(): String? = externalPlanId

/** The phase of the plan to start with */
@JsonProperty("initial_phase_order") fun initialPhaseOrder(): Long? = initialPhaseOrder

/**
* When this subscription's accrued usage reaches this threshold, an invoice will be issued
* for the subscription. If not specified, invoices will only be issued at the end of the
* billing period.
*/
@JsonProperty("invoicing_threshold") fun invoicingThreshold(): String? = invoicingThreshold

/**
Expand All @@ -213,6 +233,11 @@ constructor(
*/
@JsonProperty("metadata") fun metadata(): Metadata? = metadata

/**
* The net terms determines the difference between the invoice date and the issue date for
* the invoice. If you intend the invoice to be due on issue, set this to 0. If not
* provided, this defaults to the value specified in the plan.
*/
@JsonProperty("net_terms") fun netTerms(): Long? = netTerms

@JsonProperty("per_credit_overage_amount")
Expand Down Expand Up @@ -366,6 +391,11 @@ constructor(
this.alignBillingWithSubscriptionStartDate = alignBillingWithSubscriptionStartDate
}

/**
* Determines whether issued invoices for this subscription will automatically be
* charged with the saved payment method on the due date. If not specified, this
* defaults to the behavior configured for this customer.
*/
@JsonProperty("auto_collection")
fun autoCollection(autoCollection: Boolean) = apply {
this.autoCollection = autoCollection
Expand All @@ -379,6 +409,11 @@ constructor(
billingCycleAnchorConfiguration: BillingCycleAnchorConfiguration
) = apply { this.billingCycleAnchorConfiguration = billingCycleAnchorConfiguration }

/**
* Redemption code to be used for this subscription. If the coupon cannot be found by
* its redemption code, or cannot be redeemed, an error response will be returned and
* the subscription creation or plan change will not be scheduled.
*/
@JsonProperty("coupon_redemption_code")
fun couponRedemptionCode(couponRedemptionCode: String) = apply {
this.couponRedemptionCode = couponRedemptionCode
Expand All @@ -392,6 +427,10 @@ constructor(
@JsonProperty("customer_id")
fun customerId(customerId: String) = apply { this.customerId = customerId }

/**
* Determines the default memo on this subscription's invoices. Note that if this is not
* provided, it is determined by the plan configuration.
*/
@JsonProperty("default_invoice_memo")
fun defaultInvoiceMemo(defaultInvoiceMemo: String) = apply {
this.defaultInvoiceMemo = defaultInvoiceMemo
Expand Down Expand Up @@ -424,11 +463,17 @@ constructor(
this.externalPlanId = externalPlanId
}

/** The phase of the plan to start with */
@JsonProperty("initial_phase_order")
fun initialPhaseOrder(initialPhaseOrder: Long) = apply {
this.initialPhaseOrder = initialPhaseOrder
}

/**
* When this subscription's accrued usage reaches this threshold, an invoice will be
* issued for the subscription. If not specified, invoices will only be issued at the
* end of the billing period.
*/
@JsonProperty("invoicing_threshold")
fun invoicingThreshold(invoicingThreshold: String) = apply {
this.invoicingThreshold = invoicingThreshold
Expand All @@ -442,6 +487,11 @@ constructor(
@JsonProperty("metadata")
fun metadata(metadata: Metadata) = apply { this.metadata = metadata }

/**
* The net terms determines the difference between the invoice date and the issue date
* for the invoice. If you intend the invoice to be due on issue, set this to 0. If not
* provided, this defaults to the value specified in the plan.
*/
@JsonProperty("net_terms")
fun netTerms(netTerms: Long) = apply { this.netTerms = netTerms }

Expand Down Expand Up @@ -649,6 +699,11 @@ constructor(
this.alignBillingWithSubscriptionStartDate = alignBillingWithSubscriptionStartDate
}

/**
* Determines whether issued invoices for this subscription will automatically be charged
* with the saved payment method on the due date. If not specified, this defaults to the
* behavior configured for this customer.
*/
fun autoCollection(autoCollection: Boolean) = apply { this.autoCollection = autoCollection }

fun awsRegion(awsRegion: String) = apply { this.awsRegion = awsRegion }
Expand All @@ -657,6 +712,11 @@ constructor(
billingCycleAnchorConfiguration: BillingCycleAnchorConfiguration
) = apply { this.billingCycleAnchorConfiguration = billingCycleAnchorConfiguration }

/**
* Redemption code to be used for this subscription. If the coupon cannot be found by its
* redemption code, or cannot be redeemed, an error response will be returned and the
* subscription creation or plan change will not be scheduled.
*/
fun couponRedemptionCode(couponRedemptionCode: String) = apply {
this.couponRedemptionCode = couponRedemptionCode
}
Expand All @@ -667,6 +727,10 @@ constructor(

fun customerId(customerId: String) = apply { this.customerId = customerId }

/**
* Determines the default memo on this subscription's invoices. Note that if this is not
* provided, it is determined by the plan configuration.
*/
fun defaultInvoiceMemo(defaultInvoiceMemo: String) = apply {
this.defaultInvoiceMemo = defaultInvoiceMemo
}
Expand All @@ -691,10 +755,16 @@ constructor(
*/
fun externalPlanId(externalPlanId: String) = apply { this.externalPlanId = externalPlanId }

/** The phase of the plan to start with */
fun initialPhaseOrder(initialPhaseOrder: Long) = apply {
this.initialPhaseOrder = initialPhaseOrder
}

/**
* When this subscription's accrued usage reaches this threshold, an invoice will be issued
* for the subscription. If not specified, invoices will only be issued at the end of the
* billing period.
*/
fun invoicingThreshold(invoicingThreshold: String) = apply {
this.invoicingThreshold = invoicingThreshold
}
Expand All @@ -706,6 +776,11 @@ constructor(
*/
fun metadata(metadata: Metadata) = apply { this.metadata = metadata }

/**
* The net terms determines the difference between the invoice date and the issue date for
* the invoice. If you intend the invoice to be due on issue, set this to 0. If not
* provided, this defaults to the value specified in the plan.
*/
fun netTerms(netTerms: Long) = apply { this.netTerms = netTerms }

fun perCreditOverageAmount(perCreditOverageAmount: Double) = apply {
Expand Down
Loading