Skip to content

Commit

Permalink
Update generated code for v1021 (#1801)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed May 9, 2024
1 parent 835cc11 commit 4474c5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v1019
v1021
37 changes: 0 additions & 37 deletions src/main/java/com/stripe/param/SubscriptionCreateParams.java
Expand Up @@ -254,13 +254,6 @@ public class SubscriptionCreateParams extends ApiRequestParams {
@SerializedName("pending_invoice_item_interval")
Object pendingInvoiceItemInterval;

/**
* How to handle a customer's pending invoice items if an invoice will be generated. Defaults to
* {@code include} if the parameter is omitted.
*/
@SerializedName("pending_invoice_items_behavior")
PendingInvoiceItemsBehavior pendingInvoiceItemsBehavior;

/**
* The ID of a promotion code to apply to this subscription. A promotion code applied to a
* subscription will only affect invoices created for that particular subscription. This field has
Expand Down Expand Up @@ -349,7 +342,6 @@ private SubscriptionCreateParams(
PaymentBehavior paymentBehavior,
PaymentSettings paymentSettings,
Object pendingInvoiceItemInterval,
PendingInvoiceItemsBehavior pendingInvoiceItemsBehavior,
String promotionCode,
ProrationBehavior prorationBehavior,
TransferData transferData,
Expand Down Expand Up @@ -386,7 +378,6 @@ private SubscriptionCreateParams(
this.paymentBehavior = paymentBehavior;
this.paymentSettings = paymentSettings;
this.pendingInvoiceItemInterval = pendingInvoiceItemInterval;
this.pendingInvoiceItemsBehavior = pendingInvoiceItemsBehavior;
this.promotionCode = promotionCode;
this.prorationBehavior = prorationBehavior;
this.transferData = transferData;
Expand Down Expand Up @@ -459,8 +450,6 @@ public static class Builder {

private Object pendingInvoiceItemInterval;

private PendingInvoiceItemsBehavior pendingInvoiceItemsBehavior;

private String promotionCode;

private ProrationBehavior prorationBehavior;
Expand Down Expand Up @@ -507,7 +496,6 @@ public SubscriptionCreateParams build() {
this.paymentBehavior,
this.paymentSettings,
this.pendingInvoiceItemInterval,
this.pendingInvoiceItemsBehavior,
this.promotionCode,
this.prorationBehavior,
this.transferData,
Expand Down Expand Up @@ -1044,16 +1032,6 @@ public Builder setPendingInvoiceItemInterval(EmptyParam pendingInvoiceItemInterv
return this;
}

/**
* How to handle a customer's pending invoice items if an invoice will be generated. Defaults to
* {@code include} if the parameter is omitted.
*/
public Builder setPendingInvoiceItemsBehavior(
SubscriptionCreateParams.PendingInvoiceItemsBehavior pendingInvoiceItemsBehavior) {
this.pendingInvoiceItemsBehavior = pendingInvoiceItemsBehavior;
return this;
}

/**
* The ID of a promotion code to apply to this subscription. A promotion code applied to a
* subscription will only affect invoices created for that particular subscription. This field
Expand Down Expand Up @@ -5568,21 +5546,6 @@ public enum PaymentBehavior implements ApiRequestParams.EnumParam {
}
}

public enum PendingInvoiceItemsBehavior implements ApiRequestParams.EnumParam {
@SerializedName("exclude")
EXCLUDE("exclude"),

@SerializedName("include")
INCLUDE("include");

@Getter(onMethod_ = {@Override})
private final String value;

PendingInvoiceItemsBehavior(String value) {
this.value = value;
}
}

public enum ProrationBehavior implements ApiRequestParams.EnumParam {
@SerializedName("always_invoice")
ALWAYS_INVOICE("always_invoice"),
Expand Down

0 comments on commit 4474c5a

Please sign in to comment.