Skip to content

Commit

Permalink
Update generated code for v1245
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Sep 4, 2024
1 parent 356ac8d commit 7ef80b8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1244
v1245
35 changes: 33 additions & 2 deletions src/main/java/com/stripe/param/billing/AlertCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,23 @@ public static class Filter {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

private Filter(String customer, Map<String, Object> 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<String, Object> extraParams,
String subscription,
String subscriptionItem) {
this.customer = customer;
this.extraParams = extraParams;
this.subscription = subscription;
this.subscriptionItem = subscriptionItem;
}

public static Builder builder() {
Expand All @@ -190,9 +204,14 @@ public static class Builder {

private Map<String, Object> 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. */
Expand Down Expand Up @@ -226,6 +245,18 @@ public Builder putAllExtraParam(Map<String, Object> 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;
}
}
}

Expand Down

0 comments on commit 7ef80b8

Please sign in to comment.