From 7ef80b8f0fd5ff133c8bbcea9f6f6ca7669ca84c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 23:54:42 +0000 Subject: [PATCH] Update generated code for v1245 --- OPENAPI_VERSION | 2 +- .../param/billing/AlertCreateParams.java | 35 +++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 02835b06678..5ad854d1466 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1244 \ No newline at end of file +v1245 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/billing/AlertCreateParams.java b/src/main/java/com/stripe/param/billing/AlertCreateParams.java index a5eedc69050..af8441deb1c 100644 --- a/src/main/java/com/stripe/param/billing/AlertCreateParams.java +++ b/src/main/java/com/stripe/param/billing/AlertCreateParams.java @@ -176,9 +176,23 @@ public static class Filter { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Filter(String customer, Map extraParams) { + /** Limit the scope of this rated usage alert to this subscription. */ + @SerializedName("subscription") + String subscription; + + /** Limit the scope of this rated usage alert to this subscription item. */ + @SerializedName("subscription_item") + String subscriptionItem; + + private Filter( + String customer, + Map extraParams, + String subscription, + String subscriptionItem) { this.customer = customer; this.extraParams = extraParams; + this.subscription = subscription; + this.subscriptionItem = subscriptionItem; } public static Builder builder() { @@ -190,9 +204,14 @@ public static class Builder { private Map extraParams; + private String subscription; + + private String subscriptionItem; + /** Finalize and obtain parameter instance from this builder. */ public AlertCreateParams.Filter build() { - return new AlertCreateParams.Filter(this.customer, this.extraParams); + return new AlertCreateParams.Filter( + this.customer, this.extraParams, this.subscription, this.subscriptionItem); } /** Limit the scope to this alert only to this customer. */ @@ -226,6 +245,18 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** Limit the scope of this rated usage alert to this subscription. */ + public Builder setSubscription(String subscription) { + this.subscription = subscription; + return this; + } + + /** Limit the scope of this rated usage alert to this subscription item. */ + public Builder setSubscriptionItem(String subscriptionItem) { + this.subscriptionItem = subscriptionItem; + return this; + } } }