Skip to content

Commit

Permalink
Update generated code for v1533
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Mar 7, 2025
1 parent b810e01 commit 85b1081
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 44 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1532
v1533
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su

/**
* Whether this subscription will (if {@code status=active}) or did (if {@code status=canceled})
* cancel at the end of the current billing period.
* cancel at the end of the current billing period. This field is deprecated in a new version,
* please use {@code cancel_at} instead.
*/
@SerializedName("cancel_at_period_end")
Boolean cancelAtPeriodEnd;
Expand Down
21 changes: 0 additions & 21 deletions src/main/java/com/stripe/param/SubscriptionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ public class SubscriptionCreateParams extends ApiRequestParams {
@SerializedName("cancel_at")
Long cancelAt;

/**
* Indicate whether this subscription should cancel at the end of the current period ({@code
* current_period_end}). Defaults to {@code false}.
*/
@SerializedName("cancel_at_period_end")
Boolean cancelAtPeriodEnd;

/**
* Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically,
* Stripe will attempt to pay this subscription at the end of the cycle using the default source
Expand Down Expand Up @@ -329,7 +322,6 @@ private SubscriptionCreateParams(
BillingCycleAnchorConfig billingCycleAnchorConfig,
Object billingThresholds,
Long cancelAt,
Boolean cancelAtPeriodEnd,
CollectionMethod collectionMethod,
String coupon,
String currency,
Expand Down Expand Up @@ -366,7 +358,6 @@ private SubscriptionCreateParams(
this.billingCycleAnchorConfig = billingCycleAnchorConfig;
this.billingThresholds = billingThresholds;
this.cancelAt = cancelAt;
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
this.collectionMethod = collectionMethod;
this.coupon = coupon;
this.currency = currency;
Expand Down Expand Up @@ -418,8 +409,6 @@ public static class Builder {

private Long cancelAt;

private Boolean cancelAtPeriodEnd;

private CollectionMethod collectionMethod;

private String coupon;
Expand Down Expand Up @@ -487,7 +476,6 @@ public SubscriptionCreateParams build() {
this.billingCycleAnchorConfig,
this.billingThresholds,
this.cancelAt,
this.cancelAtPeriodEnd,
this.collectionMethod,
this.coupon,
this.currency,
Expand Down Expand Up @@ -642,15 +630,6 @@ public Builder setCancelAt(Long cancelAt) {
return this;
}

/**
* Indicate whether this subscription should cancel at the end of the current period ({@code
* current_period_end}). Defaults to {@code false}.
*/
public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) {
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
return this;
}

/**
* Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically,
* Stripe will attempt to pay this subscription at the end of the cycle using the default source
Expand Down
21 changes: 0 additions & 21 deletions src/main/java/com/stripe/param/SubscriptionUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ public class SubscriptionUpdateParams extends ApiRequestParams {
@SerializedName("cancel_at")
Object cancelAt;

/**
* Indicate whether this subscription should cancel at the end of the current period ({@code
* current_period_end}). Defaults to {@code false}.
*/
@SerializedName("cancel_at_period_end")
Boolean cancelAtPeriodEnd;

/** Details about why this subscription was cancelled. */
@SerializedName("cancellation_details")
CancellationDetails cancellationDetails;
Expand Down Expand Up @@ -309,7 +302,6 @@ private SubscriptionUpdateParams(
BillingCycleAnchor billingCycleAnchor,
Object billingThresholds,
Object cancelAt,
Boolean cancelAtPeriodEnd,
CancellationDetails cancellationDetails,
CollectionMethod collectionMethod,
Object coupon,
Expand Down Expand Up @@ -344,7 +336,6 @@ private SubscriptionUpdateParams(
this.billingCycleAnchor = billingCycleAnchor;
this.billingThresholds = billingThresholds;
this.cancelAt = cancelAt;
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
this.cancellationDetails = cancellationDetails;
this.collectionMethod = collectionMethod;
this.coupon = coupon;
Expand Down Expand Up @@ -392,8 +383,6 @@ public static class Builder {

private Object cancelAt;

private Boolean cancelAtPeriodEnd;

private CancellationDetails cancellationDetails;

private CollectionMethod collectionMethod;
Expand Down Expand Up @@ -459,7 +448,6 @@ public SubscriptionUpdateParams build() {
this.billingCycleAnchor,
this.billingThresholds,
this.cancelAt,
this.cancelAtPeriodEnd,
this.cancellationDetails,
this.collectionMethod,
this.coupon,
Expand Down Expand Up @@ -604,15 +592,6 @@ public Builder setCancelAt(EmptyParam cancelAt) {
return this;
}

/**
* Indicate whether this subscription should cancel at the end of the current period ({@code
* current_period_end}). Defaults to {@code false}.
*/
public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) {
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
return this;
}

/** Details about why this subscription was cancelled. */
public Builder setCancellationDetails(
SubscriptionUpdateParams.CancellationDetails cancellationDetails) {
Expand Down

0 comments on commit 85b1081

Please sign in to comment.