Skip to content

Commit 85b1081

Browse files
Update generated code for v1533
1 parent b810e01 commit 85b1081

File tree

4 files changed

+3
-44
lines changed

4 files changed

+3
-44
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1532
1+
v1533

src/main/java/com/stripe/model/Subscription.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su
7878

7979
/**
8080
* Whether this subscription will (if {@code status=active}) or did (if {@code status=canceled})
81-
* cancel at the end of the current billing period.
81+
* cancel at the end of the current billing period. This field is deprecated in a new version,
82+
* please use {@code cancel_at} instead.
8283
*/
8384
@SerializedName("cancel_at_period_end")
8485
Boolean cancelAtPeriodEnd;

src/main/java/com/stripe/param/SubscriptionCreateParams.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ public class SubscriptionCreateParams extends ApiRequestParams {
8080
@SerializedName("cancel_at")
8181
Long cancelAt;
8282

83-
/**
84-
* Indicate whether this subscription should cancel at the end of the current period ({@code
85-
* current_period_end}). Defaults to {@code false}.
86-
*/
87-
@SerializedName("cancel_at_period_end")
88-
Boolean cancelAtPeriodEnd;
89-
9083
/**
9184
* Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically,
9285
* Stripe will attempt to pay this subscription at the end of the cycle using the default source
@@ -329,7 +322,6 @@ private SubscriptionCreateParams(
329322
BillingCycleAnchorConfig billingCycleAnchorConfig,
330323
Object billingThresholds,
331324
Long cancelAt,
332-
Boolean cancelAtPeriodEnd,
333325
CollectionMethod collectionMethod,
334326
String coupon,
335327
String currency,
@@ -366,7 +358,6 @@ private SubscriptionCreateParams(
366358
this.billingCycleAnchorConfig = billingCycleAnchorConfig;
367359
this.billingThresholds = billingThresholds;
368360
this.cancelAt = cancelAt;
369-
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
370361
this.collectionMethod = collectionMethod;
371362
this.coupon = coupon;
372363
this.currency = currency;
@@ -418,8 +409,6 @@ public static class Builder {
418409

419410
private Long cancelAt;
420411

421-
private Boolean cancelAtPeriodEnd;
422-
423412
private CollectionMethod collectionMethod;
424413

425414
private String coupon;
@@ -487,7 +476,6 @@ public SubscriptionCreateParams build() {
487476
this.billingCycleAnchorConfig,
488477
this.billingThresholds,
489478
this.cancelAt,
490-
this.cancelAtPeriodEnd,
491479
this.collectionMethod,
492480
this.coupon,
493481
this.currency,
@@ -642,15 +630,6 @@ public Builder setCancelAt(Long cancelAt) {
642630
return this;
643631
}
644632

645-
/**
646-
* Indicate whether this subscription should cancel at the end of the current period ({@code
647-
* current_period_end}). Defaults to {@code false}.
648-
*/
649-
public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) {
650-
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
651-
return this;
652-
}
653-
654633
/**
655634
* Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically,
656635
* Stripe will attempt to pay this subscription at the end of the cycle using the default source

src/main/java/com/stripe/param/SubscriptionUpdateParams.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ public class SubscriptionUpdateParams extends ApiRequestParams {
6363
@SerializedName("cancel_at")
6464
Object cancelAt;
6565

66-
/**
67-
* Indicate whether this subscription should cancel at the end of the current period ({@code
68-
* current_period_end}). Defaults to {@code false}.
69-
*/
70-
@SerializedName("cancel_at_period_end")
71-
Boolean cancelAtPeriodEnd;
72-
7366
/** Details about why this subscription was cancelled. */
7467
@SerializedName("cancellation_details")
7568
CancellationDetails cancellationDetails;
@@ -309,7 +302,6 @@ private SubscriptionUpdateParams(
309302
BillingCycleAnchor billingCycleAnchor,
310303
Object billingThresholds,
311304
Object cancelAt,
312-
Boolean cancelAtPeriodEnd,
313305
CancellationDetails cancellationDetails,
314306
CollectionMethod collectionMethod,
315307
Object coupon,
@@ -344,7 +336,6 @@ private SubscriptionUpdateParams(
344336
this.billingCycleAnchor = billingCycleAnchor;
345337
this.billingThresholds = billingThresholds;
346338
this.cancelAt = cancelAt;
347-
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
348339
this.cancellationDetails = cancellationDetails;
349340
this.collectionMethod = collectionMethod;
350341
this.coupon = coupon;
@@ -392,8 +383,6 @@ public static class Builder {
392383

393384
private Object cancelAt;
394385

395-
private Boolean cancelAtPeriodEnd;
396-
397386
private CancellationDetails cancellationDetails;
398387

399388
private CollectionMethod collectionMethod;
@@ -459,7 +448,6 @@ public SubscriptionUpdateParams build() {
459448
this.billingCycleAnchor,
460449
this.billingThresholds,
461450
this.cancelAt,
462-
this.cancelAtPeriodEnd,
463451
this.cancellationDetails,
464452
this.collectionMethod,
465453
this.coupon,
@@ -604,15 +592,6 @@ public Builder setCancelAt(EmptyParam cancelAt) {
604592
return this;
605593
}
606594

607-
/**
608-
* Indicate whether this subscription should cancel at the end of the current period ({@code
609-
* current_period_end}). Defaults to {@code false}.
610-
*/
611-
public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) {
612-
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
613-
return this;
614-
}
615-
616595
/** Details about why this subscription was cancelled. */
617596
public Builder setCancellationDetails(
618597
SubscriptionUpdateParams.CancellationDetails cancellationDetails) {

0 commit comments

Comments
 (0)